You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2003/08/27 20:36:16 UTC
DO NOT REPLY [Bug 22769] New: -
variable reference from imported stylesheet causes null pointer exception
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22769>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22769
variable reference from imported stylesheet causes null pointer exception
Summary: variable reference from imported stylesheet causes null
pointer exception
Product: XalanJ2
Version: 2.5
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Critical
Priority: Other
Component: Xalan-Xsltc
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: chris_mccabe@choicehotels.com
Compile and run A.xsl (see below) with any input XML and the following exception
results:
java.lang.NullPointerException
at A.topLevel()
at A.transform()
at
org.apache.xalan.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:533)
at org.apache.xalan.xsltc.cmdline.Transform.doTransform(Transform.java:189)
at org.apache.xalan.xsltc.cmdline.Transform.main(Transform.java:337)
============
A.xsl
============
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="B.xsl"/>
<xsl:import href="C.xsl"/>
</xsl:stylesheet>
============
B.xsl
============
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="C.xsl"/>
<xsl:import href="D.xsl"/>
</xsl:stylesheet>
=============
C.xsl
=============
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:variable name="foo">x</xsl:variable>
</xsl:stylesheet>
=============
D.xsl
=============
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:variable name="bar" select="concat('x',$foo)"/>
</xsl:stylesheet>