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
Please register to edit this issue