lhedgecoth
asked on
How do you create nested navigation with XML?
I am new to XML and I need to create a simple left navigation bar that is nested, but I can't seem to get it to work. I have attached my incomplete code, but I'm not sure if you need anything else. I need this as soon as possible please!
<?xml version="1.0" encoding="utf-8" ?>
- <navigation>
- <elements>
- <navigation>
<name>Info</name>
- <elements>
- <page>
<name>Overview</name>
<uri>${LINK}</uri>
</page>
- <navigation>
<!--Start sub menu-->
<name>Sub Menu Title</name>
- <elements>
- <link>
<name>Sub Menu Link 1</name>
<href>http://www.link.com</href>
<target>_new</target>
</link>
- <link>
<name>Sub Menu Link 2</name>
<href>http://www.link.com</href>
<target>_new</target>
</link>
- <link>
<name>Sub Menu Link 3</name>
<href>http://www.link.com</href>
<target>_new</target>
</link>
</elements>
</navigation>
<!--end sub menu-->
- <link>
<name>Menu Link</name>
<href>http://www.link.com</href>
<target>_new</target>
</link>
- <link>
<name>Website</name>
<href>http://www.link.com</href>
<target>_new</target>
</link>
- <link>
<name>Stories</name>
<href>http://www.link.com</href>
<target>_new</target>
</link>
</elements>
<displayMode>ONE_COLUMN</displayMode>
</navigation>
XML is just data! What language are you using to transform this into a menu? XSLT? ASP.Net? Java? Perl? Python?
ASKER
Sorry, like I said I'm new to this....we are using the xml navigation in Alfresco and I believe it uses JSP. I hope that's what you needed to know.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you for your explanation, I really appreciate it!
Glad it helped. Thanks for the point and good luck!.