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

Requesting multiple-level Muenchian examples or explan

Subject: Requesting multiple-level Muenchian examples or explanations
From: Rebecca Downey <rdowney@xxxxxxxxxx>
Date: Sat, 5 Apr 2003 13:14:17 -0500
rebecca downey
Hi.

My question pertains to the Muenchian trick to group XML records by unique
values when the secondary key is optional (in other words it doesn't
necessarily appear in each record).

I have a large amount of xml I wish to sort and group on two keys (named
keyword and keyword02). I have successfully managed to sort and group the
data on keyword, which appears in every record. But I cannot get the data to
then sort and group on keyword02 - which does not appear in every record.

I understand that to add multiple levels with the Muenchian trick, you must
concatenate the first and second keys to make a unique key, but when I try
it the second level is simply not processed. Does the multi-level logic work
when the second key is optional?

I do know this would be easier to do in XLST 2.0, but that is not currently
an option.

Could anyone offer links or examples as to how to sort and group on 1
permanent key and 2 (or more) optional keys?
I've already examined :
	http://www.jenitennison.com/xslt/grouping/muenchian.html (great
articles by the way)
	http://www.biglist.com/lists/xsl-list/archives/ (many searches on
grouping, Muenchian, sorting, ...)
	http://www.dpawson.co.uk/ (specifically: Sorting, Grouping, Sorting
& Grouping)
	and http://www.netcrucible.com/xslt/msxml-faq.htm

Thank you.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rebecca Downey rdowney@xxxxxxxxxx
Give us the money. You get the truck. No one gets hurt.
- Hummer Ad
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

 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.