|
Subject: Re: Iteration in XSLT From: Scott_Boag@xxxxxxxxx Date: Fri, 17 Mar 2000 12:07:59 -0500 |
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: How do I output an ampersand?, David Carlisle | Thread | conditional processing, Kari M. Scott |
| Re: what processor is using this st, Steve Tinney | Date | conditional processing, Kari M. Scott |
| Month |