[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Repeating something "n" times.
> given a number how do I generate a node set with that many elements? try this: <template name="generate-nodes"/> <param name="node"/> <param name="times"/> <if test="times > 0"> <copy-of select="$node"/> <call-template name="generate-nodes"> <with-param name="node"> <copy-of select="$node"/> </with-param> <with-param name="times"> <value-of select="$times - 1"/> </with-param> </call-template> </if> </template> Cu, Goetz. Attachment:
pgp00002.pgp
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|