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]

A Counter Variable in XSLT?


Greetings,

I want to create a "counter variable" - one that I can increment
within a stylesheet.  Something like:

  <xsl:variable name="matchNumber" select="'0'"/>

		(and later...)

  <xsl:value-of select="$matchNumber++"/>

I know $matchNumber++ won't work, but is there anyway to do this
in XSLT, or do I have to use an extension?  (I am currently using
Xalan)

Thank you,

Grant Mc Auley


 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]