[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Cascading Menu (with Open/Closed Icons) and displ

Subject: Re: Cascading Menu (with Open/Closed Icons) and displayed children
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Mon, 31 Mar 2003 12:37:30 -0500
cascading menu
Brian,

I looked at your problem, and while I dare say your code could be debugged, I'm sort of disinclined to do this since there's a far easier way. *If*, that is, your output, instead of a flat table structure (with depth indicated by indentation from spacer images), could be rendered as a nested structure of some kind, like

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

...which could format as nicely as the tables in HTML (in modern browsers).

Is this an option for you?

Cheers,
Wendell

At 06:57 PM 3/27/2003, you wrote:
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
======================================================================


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.