This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: running a for loop (eg.1 to 10) using XSL


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]