I have a xsl file that is grabbing variables from xml and they seem to not be able to see each other. I know it is a scope issue, I just do not know what I am doing wrong.
<xsl:template match='one'> <xsl:variable name='varOne' select='@count' /> </xsl:template> <xsl:template match='two'> <xsl:if test='$varOne = 'Y''> <xsl:value-of select='varTwo'/> </xsl:if> </xsl:template>
This has been simplified for here.
Any help is appreciated.
Remembering that xsl variables are immutable…