Subject:iterate in a for-each element Author:marla marla Date:07 Jul 2005 08:26 AM Originally Posted: 07 Jul 2005 08:21 AM
Hi, I understand you can't assign variables. I wonder how you can iterate with an index in a for loop, and to make it even more complex i need this index so i can change the name of the input according to the iterator, such that each row will have a name concated with an incremented number
The following of course does NOT work:
<xsl:variable name="iLineNumber" select="1"/>
<input type="hidden" name=concat("line","$iLineNumber") value="10"/>
<input type="text" name=concat("tbRemark","$iLineNumber") size="50" />
[some sort of: $iLineNumber++]
Any ideas on how I can achieve some this stuff?