Subject: A Counter Variable in XSLT?
From: "Grant Mc Auley" <gmcauley@xxxxxxxxxxx>
Date: Thu, 4 Oct 2001 17:55:05 -0700
|
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
|