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

RE: Passing in a node value

Subject: RE: Passing in a node value
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Mon, 21 Apr 2003 15:15:37 -0400
pass value in menuitem
First you have to come up with the html structures that you want to use.
Then you can work out how to create them.  As for id values, you can
always concatenate the menu names as you construct the source xml, or do
it programatically -

id='root_item_sub_item1_sub_sub_item1'
 
That should be enough to let you identify them. 

Cheers,

Tom P

[ Gregory Propf ]
> 
> I am trying to create an XML-XSL based menu system for a website.  I 
> want to be able to designate some menu items as "expanded" 
> and others as 
> not.  The idea is that a user clicks a menu link and the 
> frame reloads 
> with that menu node expanded to show the subitems.  I have XML that 
> looks like this.
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <Menuitem Name="Root_item" expanded="false">
>    <Menuitem Name="sub_item1" expanded="false">subitem1</Menuitem>
>    <Menuitem Name="sub_item2" expanded="false">subitem2</Menuitem>
>    <Menuitem Name="sub_item3" expanded="false">subitem3</Menuitem>
>    <Menuitem Name="sub_item4" expanded="false">subitem4
>      <Menuitem Name="sub_sub_item1" 
> expanded="false">sub_sub_item1</Menuitem>
>      <Menuitem Name="sub_sub_item2" 
> expanded="false">sub_sub_item2</Menuitem>
>      <Menuitem Name="sub_sub_item3" 
> expanded="false">sub_sub_item3</Menuitem>
>    </Menuitem>
> </Menuitem>
> 
> The idea is that I want to set the expanded values to true 
> dynamically 
> as people hit the site and want to see the subnodes.  I'll 
> probably be 
> using Xalan called from a servlet (Java).  I initially 
> thought I could 
> just create a hash with node names as keys.  Apparently XSL doesn't 
> support hashes though.  Anyone know how to do this or something that 
> will be equivalent.  Also Can anyone recommend a good xsl-xpath 
> reference, preferable free and online.
> 
> 
> -- 
> "Firing people can give you a pretty good buzz, but it's a poor, poor 
> substitute for killing.  I realize that now" - Dale Gribble
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 

 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.