Project

Profile

Help

Bug #2190

closed

NPE using xsl:use-package

Added by John Lumley over 9 years ago. Updated over 8 years ago.

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

100%

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

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.


Files

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

Updated by O'Neil Delpratt over 9 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.

Actions #2

Updated by O'Neil Delpratt over 8 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