xsl-list
[Top] [All Lists]

[xsl] Need Help

2006-12-08 12:06:49
I am trying to create a 3 tier menu using xml and xslt.  I am very new to t=his 
and am having a lot of trouble.
Here is my XML:
<?xml version=3D"1.0" encoding=3D"UTF-8" ?>
<menu>   
 <item url="#" title="Home"></item>   
 <item url="#" title="My Stuff">      
  <item url="#" title="Backgrounds"></item>      
  <item url="#" title="Flyers" ></i=tem>
        <item url="#" title="Posters" ></item>
 </item>   
 <item url=="#" title="Portfolio">      
  <item url="#" title="Backgrounds" ></i=tem>      
  <item url="#" title="Flyers" ></item>      
  <item url="#" title="Posters" ></item>      
  <item url="#" title="More Information"> 
   <item url="#" title="Resume"></item>         
   <item url="#" tit=le="Contact Me"></item>      
  </item>   
 </item>
</menu>
I want to transform it to this
<ul>   
 <li><a href="#">Home</li>   
 <li><a href="#">My Stuff      
  <ul>           
       <li><a href="#">Backgrounds</li>              
       <li><a href="#">Flyers</li>            
       <li><a href="#">Posters</li>      
  </ul>   
 </li>   
 <li><a href="#">Portfolio      
  <ul>           
       <li><a href="#">Backgrounds</li>           
       <li><a href="#">Flyers</li>           
       <li><a href="#">Posters</li>           
       <li><a href="#">More Information               
   <ul>
    <li><a href="#">Resume</li>
    <li><a href="#">Contact Me</li>               
   </ul>           
       </li>
         </ul>   
 </li>
</ul>
Is this possible?  Also I would like to apply CSS Classes to certain nodes 
depending if they are selected or not.  And can I hide child nodes if the 
p=arent node is not selected? Any help would be appreciated.  I am using 
ASP.Net 2.0 to do this and it is for site I would like to use to display my 
school work and resume.  If it can't be done that is fine I wanted a dynamic 
menu using XML.
Thanks
Brant


 
____________________________________________________________________________________
Any questions? Get answers on any topic at www.Answers.yahoo.com.  Try it now.

--~------------------------------------------------------------------
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>