This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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>
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.
This is overtaken by events, we have rewritten the stylesheet.