[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Re: Creating a number new nodes in a tree based up

Subject: RE: Re: Creating a number new nodes in a tree based upon a numeric value
From: Robert Goheen <RobertG@xxxxxxxxxxx>
Date: Tue, 9 Jan 2001 09:06:13 -0800
creating a number tree
Thanks!  I can't believe I didn't think of the recursive solution.  I'm
having a hard time with this XSLT way of thinking; my old programming biases
keep poping up.

> -----Original Message-----
> From: Dimitre Novatchev [mailto:dnovatchev@xxxxxxxxx]
> Sent: Monday, January 08, 2001 11:18 PM
> To: Robert Goheen
> Cc: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Re: Creating a number new nodes in a tree based upon a
> numeric value
> 
> 
> Robert,
> 
> Call a (recursive) named template that has a parameter the number of
> nodes to be created. It will create just one node and in case more
> nodes need to be created -- will call itself with the parameter
> decreased by one.
> 
> In case a maximum value limiting the possible number of nodes to be
> created is known in advance, then a non-recursive solution can be
> applied. It is similar to the solution of the sting-padding problem,
> but uses a pre-defined tree containing the maximum nodes rather than a
> predefined string containing the maximum number of spaces.
> 
> Dimitre Novatchev.
> 
> Robert Goheen wrote:
> 
> > 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.  
> > 
> > ... I was wondering if there was any way to do this via the standard
> functionality
> > set.
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Photos - Share your holiday photos online!
> http://photos.yahoo.com/
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.