Bug #4324
closedjava.lang.NullPointerException when attribute xsl:use-package/@name is absent
0%
Description
I get a NullPointerException when running this stylesheet using the Saxon command prompt. I am using SaxonHE9-9-1-5J.
Stylesheet:
<xsl:package version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:use-package package-version="whatever"/> </xsl:package>
XML: same as stylesheet
Stack: java.lang.NullPointerException at net.sf.saxon.style.XSLUsePackage.findUsedPackage(XSLUsePackage.java:44) at net.sf.saxon.style.PrincipalStylesheetModule.gatherOverridingDeclarations(PrincipalStylesheetModule.java:525) at net.sf.saxon.style.PrincipalStylesheetModule.spliceUsePackages(PrincipalStylesheetModule.java:487) at net.sf.saxon.style.PrincipalStylesheetModule.preprocess(PrincipalStylesheetModule.java:331) at net.sf.saxon.style.Compilation.compilePackage(Compilation.java:286) at net.sf.saxon.style.StylesheetModule.loadStylesheet(StylesheetModule.java:222) at net.sf.saxon.style.Compilation.compileSingletonPackage(Compilation.java:107) at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:785) at net.sf.saxon.Transform.doTransform(Transform.java:741) at net.sf.saxon.Transform.main(Transform.java:80) Fatal error during transformation: java.lang.NullPointerException: (no message)
Files
Please register to edit this issue