xsl-list
[Top] [All Lists]

RE: Cascading Menu (with Open/Closed Icons) and displayed children

2003-04-01 09:04:15
I wouldn't mind having a look at the XSL for this.  I'm doing something
similar and have been banging my head against a wall.

(At least if you could show me some resources on the net which might be
useful, I'd be most grateful)

ChimaI

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com]On Behalf Of 
Wendell Piez
Sent: 31 March 2003 18:38
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Cascading Menu (with Open/Closed Icons) and displayed
children


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(_at_)mulberrytech(_dot_)com
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


This e-mail is confidential and intended for the addressee only. If you have 
received it in error, you are on notice of its status.  Please notify us 
immediately by reply e-mail and then delete this message from your system.  
Please do not copy it or use it for any purpose, or disclose its contents to 
any other person.  Any views or opinions expressed in this e-mail may be solely 
those of the author and are not necessarily those of Chambers and Partners.  
Please e-mail postmaster(_at_)chambersandpartners(_dot_)co(_dot_)uk if you need 
assistance.

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



<Prev in Thread] Current Thread [Next in Thread>
  • RE: Cascading Menu (with Open/Closed Icons) and displayed children, Chima Ijeoma <=