Bug #3270
closedNullPointerException with missing xsl:namespace-alias/@stylesheet-prefix
100%
Description
I get a NullPointerException when running this test file:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:myxsl="http://www.myxsl.com">
<xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
<xsl:namespace-alias result-prefix="xsl"/>
</xsl:stylesheet>
Here is the stack dump:
net.sf.saxon.style.PrincipalStylesheetModule.collectNamespaceAliases(PrincipalStylesheetModule.java:1061)
net.sf.saxon.style.PrincipalStylesheetModule.preprocess(PrincipalStylesheetModule.java:379)
net.sf.saxon.style.Compilation.compilePackage(Compilation.java:224)
net.sf.saxon.style.StylesheetModule.loadStylesheet(StylesheetModule.java:260)
net.sf.saxon.style.Compilation.compileSingletonPackage(Compilation.java:101)
net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:858)
XMLBlueprintS9APIXSLTProcessor.transform(XMLBlueprintS9APIXSLTProcessor.java:39)
I am using SaxonHE9-7-0-18J
Please register to edit this issue