[Bug 3051] [Ser] undeclare-prefixes=no unspecified

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3051

           Summary: [Ser]  undeclare-prefixes=no  unspecified
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Serialization
        AssignedTo: scott_boag@us.ibm.com
        ReportedBy: davidc@nag.co.uk
         QAContact: public-qt-comments@w3.org


http://www.w3.org/TR/xslt-xquery-serialization/#xml-undeclare-NS

only specifies the behaviour if undeclare-prefixes=yes. The behaviour if this
parameter is set to no is unspecified.

One interpretation is that if it is no, XML Namespaces 1.1 prefix
undeclarations should not be used. However if the version parameter is greater
than 1.0, another interpretation would be that namespace undeclarations MAY or
MAY NOT be used, depending on the implementation, as this is unspecified.

I think that it would be least confusing if the undeclare-prefixes section
specified that if the parameter is set to no then prefix undeclarations may not
be used.

This report is prompted by Constr-namespace-13 in the XQuery test suite which
has an expected result file using prefix undeclarations even though the test
suite is specified as using serialisation options including
undeclare-prefixes=no  
see bug #3409

David

Received on Monday, 27 March 2006 10:45:03 UTC