Project

Profile

Help

Bug #2190

NPE using xsl:use-package

Added by John Lumley about 5 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
Start date:
2014-10-20
Due date:
% Done:

100%

Legacy ID:
Applies to branch:
9.6
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:

Description

Dimitre Novatchev reported an NPE from PackageLibrary.getPackage() using the attached files and the command line:

java -jar saxon9ee.jar -t dummy.xml complex-arithmetic.xsl;using-package.xsl

The root cause is that a default package-version for a xsl:use-package is not being generated within the 9.6.0.1 distribution. Currently the package-version in a request is treated as a RegEx against the package version declared on searched packages. The interim solution is to:

  1. add package-version=".*" to any xsl:use-package lacking that attribute.

  2. make the principal stylesheet the last in the semicolon-separated list of stylesheet/packages, rather than the first as given in current documentation. This ensures the principal stylesheet is compiled last after all possible packages.

The next maintenance release will support default package version requests, as well as comforming to the package-version syntax of the specification.

using-package.xsl (609 Bytes) John Lumley, 2014-10-20 11:40 using-package.xsl
complex-arithmetic.xsl (1.8 KB) John Lumley, 2014-10-20 11:40 complex-arithmetic.xsl

History

#1 Updated by O'Neil Delpratt almost 5 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Found in version changed from 9.6.0.1 to 9.6
  • Fixed in version set to 9.6.0.2

Bug fix patch applied in the Saxon 9.6.0.2 maintenance release.

#2 Updated by O'Neil Delpratt almost 4 years ago

  • Sprint/Milestone set to 9.6.0.2
  • Applies to branch 9.6 added
  • Fix Committed on Branch 9.6 added
  • Fixed in Maintenance Release 9.6.0.2 added

Please register to edit this issue

Also available in: Atom PDF