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

Creating lists and sublists from a level attribute

Subject: Creating lists and sublists from a level attribute
From: Andrew Brothwell <ANBROTH@xxxxxxxxxx>
Date: Wed, 1 Sep 2004 14:16:27 +0100
lists and sublists
Hi,

I currently have a series of <heading> tags in the xml file. These are not 

embedded within each other, but have a level attribute to indicate which 
ones are sub headings of others. For instance:

<heading level="1">A main Heading</heading>
<heading level="2">Sub heading of main heading</heading>
<heading level="2">another sub heading of main heading</heading>
<heading level="1">Another main Heading</heading> 

There can be up to 4 levels.

What I am trying to achieve is a "document outline" at the top of the page 

that takes each heading and puts it in a list, with sub headings being 
sublists of their parent headings. I am struggling to find a way to 
arrange the <ul> and <li> tags to achieve this, and any help would be much 

appreciated.

thanks, 

Andy

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.