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

Re: Display Tree Nodes Incrementally based on ID.

Subject: Re: Display Tree Nodes Incrementally based on ID.
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 14 Feb 2005 11:15:30 GMT
display tree
> The template below appears to go some way to achieving this, however it
> displays all nodes at once.

No, that template does nothing except on the top level tree_node and the
tre__node with the specified id. If you get other things in the output
they are being generated by other templates. perhaps the default
template. You need to show your stylesheet.
Almost certainly you don't need to match on all tree_nodes and then to
an xsl:if test that does nothing on all but two of them.


> 1) If node with id=7 is selected, it childrens are displayed.

As to be expected as you make a new table for every tree__node that has 
an ancestor with id=7 and that is all tree_nodes. So this is what you'd
get if the template that you showed was the only template.


> 2) If node with 10 is selected, Nodes with id 10,9,8,7 are display. Node 
> With id=12 is not.

However I can't guess what other templates you could have to generate
this. 11 and 12 have an ancestor with id=10 so should generate tables
(and nodes 8 and 9 do not have) so presumably teh template that you
showed was not being used in this case, and some other template in your
styleseet was being applied.


David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.