Project

Profile

Help

Bug #3270

closed

NullPointerException with missing xsl:namespace-alias/@stylesheet-prefix

Added by Gerben Abbink almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Diagnostics
Sprint/Milestone:
-
Start date:
2017-06-13
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.7, 9.8
Fix Committed on Branch:
9.7, 9.8
Fixed in Maintenance Release:
Platforms:

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

Also available in: Atom PDF