This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Incrementing a Variable



> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]