[xsl] Indented HTML Lists > Multiple Levels

Subject: [xsl] Indented HTML Lists > Multiple Levels
From: "Gogo Estragon" <g_estragon@xxxxxxxxxxx>
Date: Mon, 31 Oct 2005 18:39:07 +1000
Hi all,

I would like to call on your expert minds to solve what ought to be a simple query (but for the life of me, I can't figure it out). I'm using PHP4/Sabletron/etc

I'm after a "html menu" created from XML listed below:

xxxxxxxxxxxxx

<?xml version="1.0" encoding="iso-8859-1"?>
<site>
	<page name="home" id="1">
		<title>Welcome to our Website</title>
		<page name="products" id="2">
			<title>Welcome to our Website</title>
			<page name="wig" id="3">
				<title>Welcome to our Website</title>
				<page name="tool" id="4">
					<title>Welcome to our Website</title>
				</page>
				<page name="wig tool" id="5">
					<title>Welcome to our Website</title>
				</page>
			</page>
		</page>
		<page name="faq" id="6">
			<title>Welcome to our Website</title>
		</page>
	</page>
</site>

xxxxxxxxxxxxx

So, what I need is something like:

xxxxxxxxxxxxx

<ul>
 <li>home</li>
 <ul>
   <li>products</li>
   <ul>
     <li>wig</li>
     <ul>
       <li>wig tool</li>
     </ul>
   </ul>
 </ul>
 <ul>
   <li>faq</li>
 </ul>
</ul>

xxxxxxxxxxxxx

Any help would be greatly appreciated.

<estragon>

_________________________________________________________________
Sell your car for $9 on carpoint.com.au http://www.carpoint.com.au/sellyourcar


Current Thread