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 30288 - [XSLT30] Error in xml-to-json stylesheet in Appendix B.2
Summary: [XSLT30] Error in xml-to-json stylesheet in Appendix B.2
Status: NEW
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Recommendation
Hardware: PC 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:
 
Reported: 2018-09-25 14:44 UTC by Michael Kay
Modified: 2019-02-20 00:30 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2018-09-25 14:44:04 UTC
The published xml-to-json.xsl stylesheet in Appendix B2 contains an error.

The xsl:package element specifies default-mode="j:xml-to-json" but there is no xsl:mode declaration for this mode. By default, declare-packages="yes", so all mode names in the stylesheet must be explicitly declared.

Workaround: add an xsl:mode declaration

<xsl:mode name="j:xml-to-json"/>
Comment 1 Michael Kay 2019-02-20 00:30:06 UTC
Covered by draft erratum E30