<?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>29178</bug_id>
          
          <creation_ts>2015-10-05 21:42:13 +0000</creation_ts>
          <short_desc>[XSLT30] (editorial) texts says json-to-xml returns a map</short_desc>
          <delta_ts>2015-10-29 12:42:33 +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>XSLT 3.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Abel Braaksma">abel.braaksma</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          
          
          <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>123488</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-10-05 21:42:13 +0000</bug_when>
    <thetext>Under Section 22.2 fn:json-to-xml we write the following example:

&lt;quote&gt;
The expression json-to-xml(&apos;{&quot;x&quot;: &quot;\\&quot;, &quot;y&quot;: &quot;\u0025&quot;}&apos;) returns one of the following: &lt;map xmlns=&quot;http://www.w3.org/2013/XSL/json&quot;&gt; &lt;string key=&quot;x&quot;&gt;\&lt;/string&gt; &lt;string key=&quot;y&quot;&gt;%&lt;/string&gt; &lt;/map&gt; or map{&quot;x&quot;: &quot;\&quot;,&quot;y&quot;: &quot;%&quot;}.
&lt;/quote&gt;

It is about the last part:

&gt; or map{&quot;x&quot;: &quot;\&quot;,&quot;y&quot;: &quot;%&quot;}.
But the signature of fn:json-to-xml only allows returning a document node. I don&apos;t think we allow it to return a map.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123604</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-10-07 21:32:50 +0000</bug_when>
    <thetext>Note also that the namespace http://www.w3.org/2013/XSL/json needs updating.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123655</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-10-12 09:00:45 +0000</bug_when>
    <thetext>The changes have been applied (the examples have been refreshed from the XPath 3.1 version of the specification).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>