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

interating through tree structure

Subject: interating through tree structure
From: jim mcgovern <jim_mcgovern@xxxxxxxxxxxxx>
Date: Tue, 31 Mar 2009 11:18:31 +0100
 interating through tree structure
Hi there

Hopefully someone can help me with something that I thought was going to be
straight forward but has been giving me a few problems!

I'm trying to generate site navigation from an xml file which is pretty much
as below:-





















The above is a snapshot as it can go down "n" levels.  If I'm at page6 then my
navigation needs to be:-


  dir1
  dir2
  dir4


  dir5
  dir6


What I'm having difficulty with is how to close the opening ul and open a new
ul when I'm a directory up from the directory level I'm actully on.

A stripped down but working version of What I'm trying is:-



























Can anyone advise me on how to achieve the formatting where I have 2 sets of
ULs? Any pointers much appreciated.

Jim
_________________________________________________________________
All your Twitter and other social updates in one place
http://clk.atdmt.com/UKM/go/137984870/direct/01/

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-2011 All Rights Reserved.