Subject: Re: [xsl] Cascading Menu (with Open/Closed Icons) and displayed children From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 31 Mar 2003 12:37:30 -0500 |
<div><span>C item 1</span></div> <div><span>O item 2</span> <div><span>O item 2.1</span> <div><span>C item 2.1.1</span></div> <div><span>C item 2.1.2</span></div> <div><span>C item 2.1.3</span></div> </div> </div> <div><span>C item 3</span></div> <div><span>C item 4</span></div>
Cheers, Wendell
OK, I've been researching this in the archive and I can't find a match and I'm stumped. I want to create a menu of the sort:
Parameter selected (item 2.1) displays:
C item 1 O item 2 O item 2.1 * C item 2.1.1 C item 2.1.2 C item 2.1.3 C item 3 C item 4
Basically, I want to specify a parameter and have it display the cascaded menu for me. I want it to display the menu items at the top level and for any item that is selected (e.g. item 2.1 above), I want it to display the open folder for that item and the closed folder for it's children.
The XSL almost works. I'm able to display the tree, but when the selected item has a sibling with children, I get erroneous results. The selected items children plus it's sibling's children shows up in the view. Can anyone point out why?
If you change the param to 1.1, it works fine. But leaving it at 2.1.1 gives bad results. Thanks.
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XPath & generate-id, Bhandari, Ashish | Thread | [xsl] Don't include JavaScript in H, William Smale |
RE: [xsl] How to change element nod, Americo Albuquerque | Date | Re: [xsl]Passing Parameter to the U, Leonidas Kanellos |
Month |