Subject: RE: Creating a number new nodes in a tree based upon a numeric value
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Tue, 9 Jan 2001 09:13:28 -0000
|
> 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
|