In my case,
I have to use a variable outside loop with some default values and in loop I have to set it to some values.
How do I achieve this? Please let me know the solution.
Sample code(that I have used):
<xsl:variable name="flagforselectedOption" select="'true'"/>
<xsl:for-each>
<xsl:if test="">
<xsl:variable name="flagforselectedOption" select="'true'"/>
</xsl:if>
</xsl:for-each>
</xsl:variable>
It doesn't work for me. Please let me know how to do this.