This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Incrementing a Variable
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Incrementing a Variable
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Fri, 11 May 2001 10:06:00 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> I loop through the <AvailableField> elements and for each one
> I do some
> nifty HTML and I give that particular element I'm working on
> a number using
> position() - 1 so the number always starts with 0. Each time
> I'm inside the
> <AvailableField> element, I need to step out and check the
> <complexQueryField> elements, compare their id with the Id in
> <AvailableField> and if they match, do some nifty HTML and
> increment my
> counter.
Why do you need to increment your counter? The value of position() is
incremented automatically.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list