<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>29822</bug_id>
          
          <creation_ts>2016-09-14 09:42:48 +0000</creation_ts>
          <short_desc>[SER31] Adaptive output method, xs:anyURI</short_desc>
          <delta_ts>2016-09-23 09:33:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Serialization 3.1</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://www.w3.org/XML/Group/qtspecs/specifications/xslt-xquery-serialization-31/html/Overview.html#adaptive-output</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Mills">tim</reporter>
          <assigned_to name="C. M. Sperberg-McQueen">cmsmcq</assigned_to>
          <cc>andrew_coleman</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>127386</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-09-14 09:42:48 +0000</bug_when>
    <thetext>The specification reads:

&quot;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.&quot;

...

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

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

xs:anyURI(&apos;&quot;&apos;)

will be output as

xs:anyURI(&quot;&quot;&quot;)

Personally, I&apos;d like to see xs:anyURI be treated just like xs:string and xs:untypedAtomic.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127443</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2016-09-20 15:34:56 +0000</bug_when>
    <thetext>If the text says &quot;enclosing the value in double quotation marks and doubling any quotes within the value&quot;, surely a URI consisting of a single double-quotation mark would be serialized as 

  xs:anyURI(&quot;&quot;&quot;&quot;)

not as

  xs:anyURI(&quot;&quot;&quot;)

or am I missing something?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127444</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2016-09-20 15:36:24 +0000</bug_when>
    <thetext>Ah.  Sorry for the confusion in comment 1.  I now see what you&apos;re saying.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127514</commentid>
    <comment_count>3</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2016-09-23 09:33:46 +0000</bug_when>
    <thetext>At the meeting on 2016-09-20, the WG agreed to handle xs:anyURI the same as xs:string.

This change has been applied to the spec.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>