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

RE: Creating Hierachial menu

Subject: RE: Creating Hierachial menu
From: "Terry Clark" <tclark@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 17 Jul 2002 17:25:40 +0100
ajwa rmti
Thanks Tom

That looks like a good start, although it seems to be setting up the
keys based on the fact that the number of sub levels is predetermined
whereas in my case it is unknown. I could always try and get the
cataloguer to limit the number

Well I feel better now than I did this morning

terry

-----Original Message-----
From: TSchutzerWeissmann@xxxxxxxxxxxxxxxx
[mailto:TSchutzerWeissmann@xxxxxxxxxxxxxxxx] 
Sent: 17 July 2002 16:04
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Creating Hierachial menu


Hello Terry,
	
> I have done simiar things in the past where one of the generated nodes

> is a category and using  keys() and generate-id() etc  (the Meunchian?

> technique I think they call it) I have created a menu based on these 
> categories, however this has always been  a top level menu. Now I am 
> trying to create a multi level menu system and I can't seem to make 
> the logical leap using the  same approach. Each image can be in more 
> than one category - hence the duplicate resourceID's in the XML
> 
> - <MenuRoot>
> - <menu resourceID="2">
>   <menuItem hierLevel="1">Ajwa</menuItem> 
>   <menuItem hierLevel="2">RMTI</menuItem> 
>   </menu>
> - <menu resourceID="2">
>   <menuItem hierLevel="1">Hardcopy_Available</menuItem> 
>   <menuItem hierLevel="2">Photograph</menuItem> 
>   </menu>
> - <menu resourceID="2">
>   <menuItem hierLevel="1">High_Res_CD_Library</menuItem> 
>   <menuItem hierLevel="2">AJ/RM_001</menuItem>

It sounds like what you want is multi-level grouping - see this:
http://www.biglist.com/lists/xsl-list/archives/200101/msg00070.html.

hope it helps - it's basically the same as simple grouping only the
value for the 'use' part of the key is a concatenation of values, one
for each level - like numbering sections 1, 1.1, 1.2, 2, 2.1 etc.

Tom Weissmann

 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.