RE: [xsl] Variables

Subject: RE: [xsl] Variables
From: Bedwell Tom <Tom.Bedwell@xxxxxxx>
Date: Thu, 12 Jul 2001 17:00:46 +0100


  <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


Current Thread