[Bug 2697] [Ser] xml version not supported by serializer


           Summary: [Ser]  xml version not supported by serializer
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Serialization
        AssignedTo: joannet@ca.ibm.com
        ReportedBy: joannet@ca.ibm.com
         QAContact: public-qt-comments@w3.org

The fourth paragraph in section 16.1 (XML Output Method) in XSLT 1.0 
specification reads:

"The version attribute specifies the version of XML to be used for outputting 
the result tree. If the XSLT processor does not support this version of XML, 
it should use a version of XML that it does support. ..."

The description of the version attribute in XSLT 2.0 section 20 reads:

"The value of the version attribute provides the value of the version 
parameter to the serialization method. The set of permitted values, and the 
default value, are implementation-defined. A serialization error will be 
reported if the requested version is not supported by the implementation."

The serialization specification defines no such error code when the version 
requested is not supported by the serializer.

I can think of 3 possible solutions: 
1:  XML version value is silently ignored if not supported (align with XSLT 
2:  add a new error code in Serialization when the XML version value is not 
supported (align with XSLT 2.0) 
3:  add a sentence in Serialization that it's up to the host language whether 
an error is thrown if the XML version value is not supported. 

original comment raised in the members mailing list:

Received on Wednesday, 11 January 2006 18:49:49 UTC