This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25187 - [XSLT30] Stylesheet for converting XML to JSON has static errors
Summary: [XSLT30] Stylesheet for converting XML to JSON has static errors
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Working drafts
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 25196
  Show dependency treegraph
 
Reported: 2014-03-28 07:28 UTC by mmh
Modified: 2014-08-02 13:56 UTC (History)
1 user (show)

See Also:


Attachments

Description mmh 2014-03-28 07:28:46 UTC
The stylesheet presented at http://www.w3.org/TR/xslt-30/#xml-to-json-stylesheet has some simple errors:

It says:

<xsl:param name="j:array-separator" as="xs:string" select="$j:comma"/>

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

It says:

<xsl:template name="j:map-separator">
  <xsl:value-of select="$j:map-separator"/>
</xsl:template>

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

<xsl:param name="j:map-separator" as="xs:string" select="$j:entry-separator"/>

It uses:

<xsl:call-template name="j:entry-separator"/>

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

<xsl:template name="j:entry-separator">
  <xsl:value-of select="$j:entry-separator"/>
</xsl:template>
Comment 1 Abel Braaksma 2014-03-28 15:36:40 UTC
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.
Comment 2 Michael Kay 2014-07-31 13:06:37 UTC
This is overtaken by events, we have rewritten the stylesheet.