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

Re: Group elements by two keys

Subject: Re: Group elements by two keys
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Mon, 21 Sep 2009 09:54:06 +0100
Re:  Group elements by two keys
2009/9/21 Jens Reese <Jens.Reese@xxxxxxxxxxxxxx>:
> Hallo all,
>
> I have a want to group some elements by two keys. My problem is that I don't know how to create the second key which is a combined key. This key should be a string that contains the values of all itemA elements that are children of an info element.
>

> I'd like to know if this is possible and if yes how.
>

Yes its possible, but to show you how you'll need to post back a
simplified sample XML, and expected output that shows exactly what you
want - in the samples you provided your stylesheet contained a lot of
html, but your expected output was plain text.  Also, it would be
worth simplifying the values involved, remove the dashes and
underscores: "aaa" and "bbb" etc are far nicer easier to dubug than:

TEST
COM
N1-N_One, N2-N_Two, N3-N_Three
Info1-1A
N1-N_One, N2-N_Two
Info3-3B

RAF
N1-N_One, N4-N_Four
Info2-2A
N2-N_Two, N4-N_Four
Info5-2A Info4-4B

Basically spend a bit more time on the question, and the answer will
arrive more quickly in the long run.


-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

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.