[xsl] increment variable with xsl:for-each

Subject: [xsl] increment variable with xsl:for-each
From: "Tuan Luu" <tuanluu@xxxxxx>
Date: Fri, 26 Mar 2004 18:59:12 +0100 (MET)
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

Current Thread