Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » XML » XSLT » Downloads
 
Add your own
alternative version

Using XSLT to generate a multi-level tree menu from XML

, 28 Feb 2002
A simple and generic way to use XSLT to generate a multi-level HTML tree menu from an XML source.
treefromxmlusingxslt.zip
TreeFromXMLUsingXSLT.xsl
<?xml version="1.0"?>
<menu>
 <entry>
  <text>In-House</text>
  <url>InHouse.htm</url>
  <entry>
   <text>Web Development</text>
   <url>WebDev.htm</url>
   <entry>
    <text>Standards</text>
    <url>WebStandards.htm</url>
   </entry>
   <entry>
    <text>FAQ</text>
    <url>WebFAQ.htm</url>
   </entry>
  </entry>
  <entry>
   <text>VB Development</text>
   <url>VBDev.htm</url>
  </entry>
 </entry>
 <entry>
  <text>Microsoft</text>
  <url>http://www.microsoft.com/ms.htm</url>
 </entry>
</menu>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

MS le Roux
Web Developer
South Africa South Africa
I live in the Northern Suburbs of Cape Town (South Africa).

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.1411023.1 | Last Updated 1 Mar 2002
Article Copyright 2002 by MS le Roux
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid