ericchang591
Programmer
How would I, in an XSLT stylesheet, create a variable that would be visible globally, but able to be set to different values multiple times?
For example, I am having this problem:
<xsl:choose>
<xsl:when test="'1'">
<xsl:variable name="var" select="'1'"/>
</xsl:when>
<xsl
therwise>
<xsl:variable name="var" select="'2'"/>
</xsl
therwise>
</xsl:choose>
Here, I want to be able to access "var" outside of the choose block, but apparently, it is only visible inside the choose block.
Is there a way?
Thanks
For example, I am having this problem:
<xsl:choose>
<xsl:when test="'1'">
<xsl:variable name="var" select="'1'"/>
</xsl:when>
<xsl
<xsl:variable name="var" select="'2'"/>
</xsl
</xsl:choose>
Here, I want to be able to access "var" outside of the choose block, but apparently, it is only visible inside the choose block.
Is there a way?
Thanks