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: David Carlisle <davidc at nag dot co dot uk>
- Date: Fri, 11 May 2001 00:39:15 +0100
- References: <NABBJDOPDKGCDCNBNEDOIEOPIGAA.jwynacht@cisco.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> It was my understanding that you can increment a variable in xsl by 1, say
> during each pass of a for loop. Is this true and if not, what's the best way
> to achieve this?
It's not true so you can't achieve it. (In particuar you shouldn't
assume that a for-each is a "loop" that is executed sequentially,
it's better to think of it as acting in parallel (even though
implementations may be sequential today).
If you said what you were trying to do then someone could probably tell
you how to do it in XSL, but variable,s once bound, don't change their
values.
nDavid
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list