NPE using xsl:use-package
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 188.8.131.52 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:
xsl:use-packagelacking 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.
Please register to edit this issue