RE: [xsl] Incrementing a Variable

Subject: RE: [xsl] Incrementing a Variable
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 11 May 2001 10:06:00 +0100
> 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


Current Thread