This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: running a for loop (eg.1 to 10) using XSL
- To: xsl-list at mulberrytech dot com
- Subject: Re: running a for loop (eg.1 to 10) using XSL
- From: Oliver Becker <obecker at informatik dot hu-berlin dot de>
- Date: Wed, 30 Aug 2000 10:23:42 +0200 (MET DST)
- Reply-To: xsl-list at mulberrytech dot com
Hello,
> I'm trying to run a loop say for Eg. from 1 to 10. in XSL.
as other people already pointed out this can be achieved by recursively
calling named templates. If you frequently need such loops in your
stylesheets, the "XSLT Loop Compiler" may be a useful facility for you.
This is a transformation sheet that translates proprietary loop elements
into pure XSLT.
Check out
http://www.informatik.hu-berlin.de/~obecker/XSLT/#loop-compiler
Cheers,
Oliver
/-------------------------------------------------------------------\
| ob|do Dipl.Inf. Oliver Becker |
| --+-- E-Mail: obecker@informatik.hu-berlin.de |
| op|qo WWW: http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list