This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Equivalent of a Global Counter
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Equivalent of a Global Counter
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Tue, 14 Nov 2000 09:16:41 -0000
- Reply-To: xsl-list at mulberrytech dot com
> I thought about using parameters for this, but it wouldn't work.
> I need to generate some data in tags, and the data is a
> number which needs to increment for every element encountered.
you can usually achieve this using some combination of position(), count(),
or xsl:number. If not, you need a recursive template that calls itself with
a parameter that is incremented on each call.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list