This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: counting loop in xslt
- From: David Carlisle <davidc at nag dot co dot uk>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 28 May 2002 10:01:11 +0100
- Subject: Re: [xsl] counting loop in xslt
- References: <36885FC2A38EEA4098A91C29117F00370972AD@Z1IN054H.hdi.de>
- Reply-to: xsl-list at lists dot mulberrytech dot com
> is there a possibility to implement a counting loop without using an extension in xslt??
you don't need an extension for that,
You can use a recursive template, or if you just want to iterate over
the integers, use
<xsl:for-each select="//*[position() <= 10]">
... then position() will go from 1 to 10 in this code.
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.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list