This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Creating a number new nodes in a tree based upon a numeric value
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Creating a number new nodes in a tree based upon a numeric value
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Tue, 9 Jan 2001 09:13:28 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
> Ok, I think the answer is "no", but I'm still curious to ask.
No, the answer is yes. Makes a pleasant change.
>
>
> In other words, I want to create a set of new nodes, the
> count of which is
> based upon a *value* contained in the document.
Write a named template that takes the value as a parameter; within the
template, if the parameter is greater than zero, output one node, and make a
recursive call on the template to output the remaining N-1 nodes.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list