<?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>25187</bug_id>
          
          <creation_ts>2014-03-28 07:28:46 +0000</creation_ts>
          <short_desc>[XSLT30] Stylesheet for converting XML to JSON has static errors</short_desc>
          <delta_ts>2014-08-02 13:56:27 +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>Working drafts</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>25196</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>mmh</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>abel.braaksma</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>103068</commentid>
    <comment_count>0</comment_count>
    <who name="">mmh</who>
    <bug_when>2014-03-28 07:28:46 +0000</bug_when>
    <thetext>The stylesheet presented at http://www.w3.org/TR/xslt-30/#xml-to-json-stylesheet has some simple errors:

It says:

&lt;xsl:param name=&quot;j:array-separator&quot; as=&quot;xs:string&quot; select=&quot;$j:comma&quot;/&gt;

but $j:comma does not exist, it was probably meant to be $j:entry-separator

It says:

&lt;xsl:template name=&quot;j:map-separator&quot;&gt;
  &lt;xsl:value-of select=&quot;$j:map-separator&quot;/&gt;
&lt;/xsl:template&gt;

but the definition of $j:map-separator is missing and might be 

&lt;xsl:param name=&quot;j:map-separator&quot; as=&quot;xs:string&quot; select=&quot;$j:entry-separator&quot;/&gt;

It uses:

&lt;xsl:call-template name=&quot;j:entry-separator&quot;/&gt;

but that template is not (yet) defined. It might be

&lt;xsl:template name=&quot;j:entry-separator&quot;&gt;
  &lt;xsl:value-of select=&quot;$j:entry-separator&quot;/&gt;
&lt;/xsl:template&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103099</commentid>
    <comment_count>1</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2014-03-28 15:36:40 +0000</bug_when>
    <thetext>Thanks for your bug report (I believe you are Michael Müller-Hillebrand from the xsl list). Your report led me to a few other issues, please see bug 25196 also, the two are dependent on each other.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109645</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-07-31 13:06:37 +0000</bug_when>
    <thetext>This is overtaken by events, we have rewritten the stylesheet.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>