Bug #5468
closed
NPE in SimpleType.isIdRefType()
Category:
Schema-Aware processing
Applies to branch:
10, 11, trunk
Fix Committed on Branch:
10, 11, trunk
Fixed in Maintenance Release:
Description
If I try to transform the following files using strict validation I get a NPE in SimpleType.isIdRefType().
java -jar saxon-ee-10.8.jar -s:"test.xml" -xsl:"test.xsl" -sa -val:strict
<?xml version="1.0" encoding="UTF-8"?>
<root>
<note xml:lang="fr-FR"></note>
</root>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:template match="note">
</xsl:template>
</xsl:stylesheet>
Problem reproduced. An error has been reported that no element declaration for the root element was found, but validation continues in lax mode to catch as many errors as possible. The @xml:lang
attribute is therefore being subjected to lax validation; an attribute declaration has been located in the built-in schema model for the XML namespace, but it has not been fully fixed up. (Perhaps because this built-in schema is being used in isolation, with no user-defined schema referencing it).
Added XSLT3 tests attribute-1501 to 1506 to exercise validation against the built-in schema for the XML namespace.
- Category set to Schema-Aware processing
- Status changed from New to Resolved
- Assignee set to Michael Kay
- Priority changed from Low to Normal
- Applies to branch trunk added
- Fix Committed on Branch 10, 11, trunk added
Fixed in XMLNamespaceSchema.buildSchema()
. It looks as if validation against the xml:lang type would always crash.
- Fixed in Maintenance Release 11.4 added
Bug fix applied in the Saxon 11.4 maintenance release. (Issue remains open awaiting Saxon 10 maintenance release.)
- Fixed in Maintenance Release 12.0 added
Bug fix applied in the Saxon 12.0 major release. (Issue remains open awaiting Saxon 10 maintenance release.)
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
- 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