Incrementing a variable value in XSL and storing in hidden control
Posted on 2003-03-26
I have a requirement wherein a variable has to be incremented based on a condition and store the result in a hidden control. To put in simple VB flow...
Dim x as integer
While(condition is true)
If (1 < 2) then
<Store the value of X in a hidden control>
Can I have the equivalent code in XSL please?
<Increment the value here>
<!-- storing in a hidden control-->
<input type="hidden" name="xyz">
<xsl:attribute name="value"><xsl:value-of select="$VariableName"/></xsl:attribute>
Well, I am aware that variable value, once assigned cannot be modified in XSL. But, I vaguely know that it can achieved using parameters. Please help me to solve this.
Any help on this would be greatly appreciated.
Thanks in advance but points will be awarded after solving the problem.