[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Loop control

Subject: RE: Loop control
From: Linda van den Brink <lvdbrink@xxxxxxx>
Date: Tue, 7 Mar 2000 08:35:44 +0100
xsl 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@xxxxxxxxxxxx]
Sent: Tuesday, March 07, 2000 12:27 AM
To: XSL-List@xxxxxxxxxxxxxxxx
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


Current Thread
  • Loop control
    • Paul Bell - Mon, 6 Mar 2000 18:27:20 -0500
      • <Possible follow-ups>
      • Linda van den Brink - Tue, 7 Mar 2000 08:35:44 +0100 <=
      • Kay Michael - Tue, 7 Mar 2000 10:27:37 -0000

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.