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: Creating a number new nodes in a tree based upon a numeric value


> 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


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