Hello.
I'm trying to make a left column menu.
I want to use an XML like this:

<menus>
    <menu>
        <texto>Spain</texto>
        <link> www.spain.com</link>
        <menu>
            <texto>Valencia</texto>
            <link>www.valencia.com</link>
        </menu>
        <menu>
            <texto>Madrid</texto>
            <link>www.madrid.com</link>
        </menu>
    </menu>
    <menu>
        <texto>France</texto>
        <link>www.france.com</link>
        <menu>
            <texto>Paris</texto>
            <link> www.paris.com</link>
        </menu>
        <menu>
            <texto>Versailles</texto>
            <link> www.versailles.com</link>
        </menu>
    </menu>
</menus>


And tried to use this laszlo code tho show all the menu entries

<dataset name="dsMenu" src=" menu.xml"/>
<simplelayout axis="y" spacing="4"/>

<class name="menu" extends="view">
    <simplelayout axis="y"/>
    <text datapath="texto/text"/>
    <menu x="${parent.x+5}" datapath="menu"/>                          <!-- 
ADVERT THE RECURSIVITY -->
</class>

<view datapath="dsMenu:menues" >
    <menu datapath="menu"/>
</menu>

But when I run the code my browser hangs (Firefox) or closes (IExplore).
If I remove the recursive call, the first level shows ok.
Anyone knows the right way to do this? I don't know how much levels the XML 
tree will have.

Thank you

Javier Carrasco
Ingeniero de Aplicaciones

Tel: +34 963510612
Fax: +34 963510968
e-mail: [EMAIL PROTECTED]
Web: www.prodevelop.es



Reply via email to