Bug #2190
closedNPE using xsl:use-package
100%
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:
-
add
package-version=".*"
to anyxsl:use-package
lacking that attribute. -
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
Updated by O'Neil Delpratt about 10 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.
Updated by O'Neil Delpratt about 9 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