i have tow for-each and one variable witch can be changed if some conditions are true, but after the finish of the for each the variable it is not any more recognized.
please read this code:
<xsl:for-each ....
<xsl:if ..contition1..
<xsl:variable name="var">1</xsl:variable>the variable can be changed here
</xsl:if>
......
<xsl:for-each ....
<xsl:if ..condition2..
<xsl:variable name="var">2</xsl:variable>but also here in the second for-each.
</xsl:if>
</xsl:for-each>
</xsl:for-each>
<xsl:choose>
<xsl:when test="$var=something"> ..... </xsl:when>here is the problem
<xsl
therwise>
........
</xsl
therwise>
</xsl:choose>
there is other solution to implement this? i think using variables will not work. pls help me!
thanks
please read this code:
<xsl:for-each ....
<xsl:if ..contition1..
<xsl:variable name="var">1</xsl:variable>the variable can be changed here
</xsl:if>
......
<xsl:for-each ....
<xsl:if ..condition2..
<xsl:variable name="var">2</xsl:variable>but also here in the second for-each.
</xsl:if>
</xsl:for-each>
</xsl:for-each>
<xsl:choose>
<xsl:when test="$var=something"> ..... </xsl:when>here is the problem
<xsl
........
</xsl
</xsl:choose>
there is other solution to implement this? i think using variables will not work. pls help me!
thanks