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

Re: Iteration in XSLT

Subject: Re: Iteration in XSLT
From: Scott_Boag@xxxxxxxxx
Date: Fri, 17 Mar 2000 12:07:59 -0500
xslt list iteration
Unless you use an extension, you have to do it via recursion.  Call a named
template from the main template, passing in zero as param, then, if the
counter argument is less than 5, call the same template passing in the
counter param + 1.

A lot of people want a looping mechanism in XSLT, but that would make
incremental processing almost impossible.

-scott




                                                                                                                                 
                    "Chowdhury, Anisuzzaman"                                                                                     
                    <Anisuzzaman.Chowdhury@west        To:     "'xsl-list@xxxxxxxxxxxxxxxx'" <xsl-list@xxxxxxxxxxxxxxxx>         
                    group.com>                         cc:     (bcc: Scott Boag/CAM/Lotus)                                       
                    Sent by:                           Subject:     Iteration in XSLT                                            
                    owner-xsl-list@mulberrytech                                                                                  
                    .com                                                                                                         
                                                                                                                                 
                                                                                                                                 
                    03/17/00 10:47 AM                                                                                            
                    Please respond to xsl-list                                                                                   
                                                                                                                                 
                                                                                                                                 




I went through some XSL books and XSLT 1.0 documentation but cannot find
anything except the command <xsl:for-each> on iteration in Stylesheet.
Please consider the following XML document:

<count>5</count>
<Hello>Hello, World!</Hello>

Is it possible to display the text(Hello, World!) five times using XSLT
processor?


Thanks for your responses in advance.

- Anis Chowdhury


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





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


Current Thread

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.