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

Re: Recursion (I think)

Subject: Re: Recursion (I think)
From: Nicholas Orr <nick@xxxxxxxxxxx>
Date: Mon, 26 Sep 2005 20:52:37 +1000
Re:  Recursion (I think)
On 26/09/2005, at 6:04 PM, Michael Kay wrote:


I've used a set of templates that call each other and work their way down the list, and use parameters to keep the id and name fields that I need. I think it works, and I'll test it on some bigger data sets and see how I go.


That's the right approach. But you don't need to pass parameters for the id
and name fields: you can always navigate back up to them using the parent
and ancestor axes.

How do you do that if you don't know how far back up the tree they are?


I know how to do a path like "../../../" that goes up the tree, but if you've got multiple nested levels and you don't know how far back they are, is it possible to do something like :

"go up the tree until you hit a 'Object' node"

Thanks,
Nick

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.