Project

Profile

Help

Bug #5468

closed

NPE in SimpleType.isIdRefType()

Added by Octavian Nadolu almost 2 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Schema-Aware processing
Sprint/Milestone:
-
Start date:
2022-05-02
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
10, 11, trunk
Fix Committed on Branch:
10, 11, trunk
Fixed in Maintenance Release:
Platforms:

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>
Actions #1

Updated by Michael Kay almost 2 years ago

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).

Actions #2

Updated by Michael Kay almost 2 years ago

Added XSLT3 tests attribute-1501 to 1506 to exercise validation against the built-in schema for the XML namespace.

Actions #3

Updated by Michael Kay almost 2 years ago

  • 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.

Actions #4

Updated by Debbie Lockett over 1 year ago

  • 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.)

Actions #5

Updated by O'Neil Delpratt over 1 year ago

  • 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.)

Actions #6

Updated by O'Neil Delpratt about 1 year ago

  • 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