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=25070>. 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=25070 Can not access variables inside of xsl:element Summary: Can not access variables inside of xsl:element Product: XalanJ2 Version: 2.5 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Xalan AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] This xsl works at least for version 2.0.1 and 2.4.1 . It does not work with xalan-2.5.2.jar though. <xsl:for-each select="/root/item"> <xsl:variable name="label" select="substring-before(.,'###')"/> <!-- displaying the value of the variable works --> <xsl:value-of select="$label"/> <xsl:element name="option"> <!-- displaying the value of the variable here does not work --> <xsl:attribute name="value"><xsl:value-of select="$label"/></xsl:attribute> <!-- more code here --> </xsl:element> </xsl:for-each>
