xsl-list
[Top] [All Lists]

increment variable with xsl:for-each

2004-03-26 10:59:12
hello 
I'm looking for a code to increment a variable in xsl:for-each loop

I ended up here: 

<xsl:variable name="a">1</xsl:variable>

<xsl:for-each select="name">

<xsl:value of select="{$a+1}"/>
<xsl:value of select="{$a}"/>

</xsl:for-each>


thanks for any answer


-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz



<Prev in Thread] Current Thread [Next in Thread>