W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2016

[Bug 29822] New: [SER31] Adaptive output method, xs:anyURI

From: <bugzilla@jessica.w3.org>
Date: Wed, 14 Sep 2016 09:42:48 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29822-523@http.www.w3.org/Bugs/Public/>

            Bug ID: 29822
           Summary: [SER31] Adaptive output method, xs:anyURI
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
               URL: https://www.w3.org/XML/Group/qtspecs/specifications/xs
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Serialization 3.1
          Assignee: cmsmcq@blackmesatech.com
          Reporter: tim@cbcl.co.uk
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

The specification reads:

"An instance of xs:string or xs:untypedAtomic is serialized by enclosing the
value in double quotation marks and doubling any quotes within the value; or
optionally by enclosing the value in apostrophes and doubling any apostrophes
within the value. The resulting value is then serialized using the Text output
method described in 8 Text Output Method."


"An atomic value of any other type is serialized using the syntax of a
constructor function: xs:TYPE("VAL") where TYPE is the name of the primitive
type, and VAL is the result of applying the fn:string() function. For example,
xs:date("2015-07-17"). The resulting string is then serialized using the Text
output method described in 8 Text Output Method."

xs:anyURI isn't an xs:string, so it is handled by the final rule.  This means


will be output as


Personally, I'd like to see xs:anyURI be treated just like xs:string and

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 14 September 2016 09:43:00 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:58:02 UTC