[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: TSchutzerWeissmann@xxxxxxxxxxxxxxxx
Date: Wed, 17 Jul 2002 17:03:48 +0100
multiple level menu xsl
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


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.