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=6801>. 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=6801 XSLTC: Null pointer exception. Summary: XSLTC: Null pointer exception. Product: XalanJ2 Version: 2.3 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Major Priority: Other Component: org.apache.xalan.xsltc AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] A Null pointer exception occurs when variables used in predicates aren't used in the order in which they were declared. The below stylesheet illustrates this. To make it work switch the <xsl:value-of/>'s around. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/root"> <xsl:variable name="var1"> <xsl:value-of select="'m'"/> </xsl:variable> <xsl:variable name="var2"> <xsl:value-of select="'b_action'"/> </xsl:variable> <xsl:value-of select="/root/env/param[@name = string($var2)]"/> <xsl:value-of select="/root/env/param[@name = string($var1)]"/> </xsl:template> </xsl:stylesheet>
