This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: implement for loop with XSLT
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] implement for loop with XSLT
- From: Oliver Becker <obecker at informatik dot hu-berlin dot de>
- Date: Tue, 20 Mar 2001 15:54:33 +0100 (MET)
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi,
> > I came up with the enclosed code to grab the value of an <n> element
> > and generate a list of integers and their squares between 1 and n:
> > [ ... ]
> > If I am stuck with this recursive solution, is there a way
> Well, recursion is the only way using a functional programming language,
> and there is nothing bad about it.
>
> Somewhere on the web, there is an XSL-T preprocessor that allows you
> write for, while and until loops,
[...]
Just for the sake of completeness - here is the link:
http://www.informatik.hu-berlin.de/~obecker/XSLT/#loop-compiler
(but I never talked about until-loops ;-) maybe someone else?)
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