Bug #5707
closed
xsl:output with json-node-output-method="adaptive" does not work
Applies to branch:
10, 11, trunk
Fix Committed on Branch:
10, 11, trunk
Fixed in Maintenance Release:
Description
It seems that if you set json-node-output-method="adaptive" on an xsl:output element, Saxon displays an error:
Error in xsl:output/@json-node-output-method on line 3 column 67 of jsonAdaptiveoutput.xsl:
XTSE0020 Invalid value (adaptive) for serialization method: must be
xml|html|xhtml|text|json|adaptive, or a QName in 'Q{uri}local' form
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0">
<xsl:output method="json" json-node-output-method="adaptive"/>
</xsl:stylesheet>
I tested with Saxon 10.8, 11.2, and 11.4
- Subject changed from xslLoutout with json-node-output-method="adaptive" does not work to xsl:output with json-node-output-method="adaptive" does not work
Well, it's obviously a bad error message.
The table at the start of section 3 of the serialization spec says the value must be:
An expanded QName with a non-null namespace URI, or with a null namespace URI and a local name equal to one of xml, xhtml, html or text.
So we'll keep the restriction and improve the error message.
- Category set to Diagnostics
- Status changed from New to Resolved
- Assignee set to Michael Kay
- Applies to branch 10, 11, trunk added
- Fix Committed on Branch 10, 11, trunk added
- Platforms .NET, Java added
- % Done changed from 0 to 100
- Fixed in Maintenance Release 12.0 added
Bug issue fix applied in the Saxon 12.0 Major Release.
Leaving this bug marked as Resolved until fix applied
- Fixed in Maintenance Release 11.5 added
Bug fix applied in the Saxon 11.5 maintenance release.
- Status changed from Resolved to Closed
- Fixed in Maintenance Release 10.9 added
Bug fix applied in the Saxon 10.9 maintenance release.
Please register to edit this issue
Also available in: Atom
PDF