<?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>27360</bug_id>
          
          <creation_ts>2014-11-18 15:29:10 +0000</creation_ts>
          <short_desc>&quot;string value&quot; is not defined for atomic values</short_desc>
          <delta_ts>2014-11-25 16:43:16 +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>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></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="Josh Spiegel">josh.spiegel</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>115058</commentid>
    <comment_count>0</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2014-11-18 15:29:10 +0000</bug_when>
    <thetext>In section 9 it says:

&quot;An atomic valueXP31 in the data model instance of any other type is serialized to a JSON string by outputting the string value of the item.&quot;

Where &quot;string value&quot; is linked to this definition: 

&quot;The term string value is defined in Section 5.12 string-value Accessor DM31. Every node has a string value. For example, the string value of an element is the concatenation of the string values of all its descendant text nodes.&quot;

String value is not defined for atomic values.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115297</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2014-11-21 15:15:50 +0000</bug_when>
    <thetext>Good point.  I propose replacing:

&quot;An atomic valueXP31 in the data model instance of any other type is serialized to a JSON string by outputting the string value of the item.&quot;

with the following:

&quot;An atomic valueXP31 in the data model instance of any other type is serialized to a JSON string by outputting the result of applying the fn:string function to the item.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115301</commentid>
    <comment_count>2</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2014-11-21 16:36:58 +0000</bug_when>
    <thetext>The input is a single atomic value in this case so I think calling fn:string is equivalent to $value cast as xs:string.  So you could be more specific and say &quot;... a JSON string by outputting the result of casting the value to xs:string.&quot;  But this is editorial - I think your proposal is correct.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>