xsl-list
[Top] [All Lists]

Indented HTML Lists > Multiple Levels

2005-10-31 01:39:07
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>