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

Indented HTML Lists > Multiple Levels

Subject: Indented HTML Lists > Multiple Levels
From: "Gogo Estragon" <g_estragon@xxxxxxxxxxx>
Date: Mon, 31 Oct 2005 18:39:07 +1000
html indented lists
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

Back To School Sale!

Save 30% off all Stylus Studio 2008 Products when you purchase from our Online Shop.

Offer ends August 31, 2008.

Coupon Code
TRTY-C4JV-OFF

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