Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] Creating lists and sublists from a level attribute

From: Andrew Brothwell <ANBROTH@---------->
To:
Date: 9/1/2004 1:15:00 PM
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent