|
Subject: Re: [xsl] xsl:for or xsl:repeat From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 24 May 2006 16:20:31 +0100 |
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()<=$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 ________________________________________________________________________
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] xsl:for or xsl:repeat, Jon Gorman | Thread | Re: [xsl] xsl:for or xsl:repeat, Dimitre Novatchev |
| RE: [xsl] xsl:for or xsl:repeat, Mark Williams | Date | Re: [xsl] xsl:for or xsl:repeat, Jagdishwar B |
| Month |