This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Variables
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Variables
- From: Bedwell Tom <Tom dot Bedwell at icl dot com>
- Date: Thu, 12 Jul 2001 17:00:46 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
<xsl:variable name="temp">
<xsl:value-of select="1"/>
</xsl:variable>
How would I go about incrementing the above variable in a for-each tag
??
Try something like this
<xsl:for-each select="something">
<xsl:variable name="temp" select="position()"/>
<xsl:comment>
<xsl:value-of select="$temp"/>
</xsl:comment>
</xsl:for-each>
Tom
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list