|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: increment variable with xsl:for-each
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.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








