Re: [xml-dev] How to declare a int variable in XSL

From
David Carlisle <>
To
Date
2002-06-07T13:35:39Z
ID
<>
Thread
Re: [xml-dev] How to declare a int variable in XSL
> Not with xsl:for-each, though.  Position() would always be 1.

Yes, with for-each. position() reflects the position in the node list
constructed by the select expression in <xsl:for-each.
Position() is only always 1 if you are iterating over a list of length
1.

David

_____________________________________________________________________
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 or alternatively call
Star Internet for details on the Virus Scanning Service.