[Bug 29296] New: Adaptive Method, Error Recovery

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29296

            Bug ID: 29296
           Summary: Adaptive Method, Error Recovery
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Serialization 3.1
          Assignee: cmsmcq@blackmesatech.com
          Reporter: christian.gruen@gmail.com
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

Sorry for creating so many new bug entries on adaptive serialization...

According to the spec, a "processor SHOULD attempt to recover by inserting an
implementation-defined error indicator into the output [...]". Could an example
be added to the spec how such an error indicator could look like?

Here are two XQuery examples that may lead to an error:

1. Error triggered by the XML output method ('standalone' and
'omit-xml-declaration' conflict):

  declare namespace output =
'http://www.w3.org/2010/xslt-xquery-serialization';
  declare option output:method 'adaptive';
  declare option output:omit-xml-declaration 'yes';
  declare option output:standalone 'yes';
  <x/>

2. Error triggered by the output of a function name (character that cannot be
represented by the chosen encoding):

  declare namespace output =
'http://www.w3.org/2010/xslt-xquery-serialization';
  declare option output:method 'adaptive';
  declare option output:encoding 'US-ASCII';
  declare function local:日本() { '...' };
  local:日本#0

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 16 November 2015 13:42:13 UTC