[Home] [By Thread] [By Date] [Recent Entries]
Tuan Luu wrote:
hello I'm looking for a code to increment a variable in xsl:for-each loop You may be looking for: <xsl:variable name="a" select="count(name)"/> or possibly: <xsl:for-each select="name"> <count><xsl:value-of select="position()"/></count> </xsl:for-each> The kind of information you are probably looking for when you use $a is probably already provided. If not, use a recursive template as mentioned by several other people here.
|

Cart



