Subject: Re: [xsl] for-loop in xslt problem From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx> Date: Sat, 05 Apr 2003 14:48:29 +0000 |
This produces the result: Print thisPrint thisPrint this
From: Frankie Roberto <public@xxxxxxxxxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: "Xsl-List@Lists. Mulberrytech. Com" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: [xsl] for-loop in xslt problem Date: Sat, 5 Apr 2003 02:55:43 +0100
Hi,
I'm having problems trying to implement a 'for' loop in xslt - I haven't seen any syntax so far that can cope with this (and my book doesn't go into it).
To explain, my XML looks something like:
<total>45</total> <skip>20</skip>
The PHP script I am converting would do something like this:
for ($count = 0; $count<=$total; ($count = $count + $skip)) {
echo("Print this");
}
..looping $total/$skip times plus once for the remainder.
But I can't see any way of doing this in xslt so far...
Ta.
Frankie
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
_________________________________________________________________ Hotmail messages direct to your mobile phone http://www.msn.co.uk/mobile
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Limitation of <xsl:result, Michael Kay | Thread | Re: [xsl] for-loop in xslt problem, Ryan Gallagher |
[xsl] Adding Dates and Durations, Stephen Stewart | Date | Re: [xsl] reference external javasc, Mark Griffin |
Month |