Hi Scott-
I had thought of that but didn't get very far - but the exact format
doesn't seem to be working out for me. What I need is something like:
<ul>
<li>Main Link
<ul>
<li>SubLink1</li>
<li>SubLink2</li>
</ul>
</li>
<li>Second Main Link
<ul>
<li>Sublink1
<ul>
<li>SubSubLink1</li>
<li>SubSubLink2</li>
</ul>
</li>
<li>Sublink2</li>
</ul>
</li>
<ul>
(Note that each set of child links must be complete with its own
enclosing <ul></ul>)
I just wasn't getting my head around the replacing and recursion
(unknown number of submenus, subsubmenus, etc) and figured it was
better to ask then continue down the path towards migraine!
Thanks-
Jason
-----
Jason Pamental
Director of Web Services
North Sails
Office: 401.643.1415
Fax: 401.643.1420
Mobile: 401.743.4406
Email: [EMAIL PROTECTED]
On Jun 14, 2006, at 3:48 PM, Scott Cadillac wrote:
Hi Jason,
If you have the XML already setup and nested, why not name the XML
nodes just <ul> and <li> (with appropriate attributes) and copy as
is to your output?
Just a thought.
Scott Cadillac,
Email: [EMAIL PROTECTED]
http://scott.cadillac.bz
-----Original Message-----
From: Jason Pamental [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 14, 2006 1:40 PM
To: [email protected]
Subject: Witango-Talk: xml to UL
Hi guys -
I'm looking for a leg up on an XML transformation. I have some good
CSS stuff to create either horizontal or vertical navigation (with
unlimited levels of dropdowns and so far pretty completely cross-
platform), and I also have a good routine to take the navigation
information and create an XML document with things all properly
nested. What I need to sort out is how to most efficiently
create the
nested ul's to make it work. I imagine it would be done with use of
the XSLT tag, but have never tried it before. They way I got it to
work previously was a little ugly and I'd rather learn a better/
cleaner way.
Thanks,
Jason
-----
Jason Pamental
Director of Web Services
North Sails
Office: 401.643.1415
Fax: 401.643.1420
Mobile: 401.743.4406
Email: [EMAIL PROTECTED]
Visit us at http://www.northsails.com
[This E-mail scanned for viruses by Declude Virus]
______________________________________________________________
__________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
______________________________________________________________________
__
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
Visit us at http://www.northsails.com
[This E-mail scanned for viruses by Declude Virus]
Visit us at http://www.northsails.com
[This E-mail scanned for viruses by Declude Virus]
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf