This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Loop control


I'm not a programmer (except maybe a bit of an XSLT programmer) so I'll give
you a brief answer; other people can probably explain better. 
No, there's no way of doing iteration in XSLT. You have to use recursion.
Basically, create a named template and have it call itself until some
condition is satisfied (using xsl:choose). There are bound to be examples in
the FAQ! 
Linda

-----Original Message-----
From: Paul Bell [mailto:pbell@syncsort.com]
Sent: Tuesday, March 07, 2000 12:27 AM
To: XSL-List@mulberrytech.com
Subject: Loop control


Hi All,
 
Is there a tried and true method of iterating a specific number of times?
xsl:for-each seems to constrain me to iterating over nodesets.  But I'd like
to be able to loop exactly, say, 256 times - each time generating some
output.
 
Thanks in advance.
 
Cordially,
 
Paul


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]