xsl-list
[Top] [All Lists]

Re: [xsl] xsl:for or xsl:repeat

2006-05-26 01:50:17

in xslt2 you can go

<xsl:for-each select="1 to $n">...

in xslt1 you can either write a simple recursive named template that
decrements a parmeter n times, or if you know there are enough nodes
around you can use the usual cheat suggested on this list and go

<xsl:for-each select="(//node())[position()&lt;=$n]">
....

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--