This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Variables





  <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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]