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

RE: dynamic grouping assignment

Subject: RE: dynamic grouping assignment
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 16 Jul 2007 09:27:29 +0100
RE:  dynamic grouping assignment
As with dynamic sorting: if you know that the dynamic keys will be simple
element names, you can use *[name()=$key]. For anything more complex, you
need xx:evaluate(). If you can't get this to work you'll need to show us
what you did before we can tell you what you did wrong.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: christoph.klocker@xxxxxx [mailto:christoph.klocker@xxxxxx] 
> Sent: 16 July 2007 06:49
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  dynamic grouping assignment
> 
> Hi,
> How can I dynamically assing a grouping key, where I provide 
> some of the grouping keys as parameters.
> 
> I have the parameters
> 
>   <xsl:param name="groupingKeys" >
>         <key>order_typ</key>
>         <key>ordr_block</key>
>     </xsl:param > 
> 
> I would like to add to the group-by evaluation.
> 
>  <xsl:for-each-group select="result" 
> group-by="concat(receiver, operation, data, prev_bus_state, 
> string-join(for $x in $groupingKeys return $x/key, ','))">
> 
> I guess I need to use the saxon:evaluate() extension, but I 
> couldn't get it right.
> 
> thanks
> 
> 
> This message and any attachment ("the Message") are 
> confidential. If you are not the intended recipient any use 
> is strictly prohibited. If you have received the Message in 
> error, please notify the sender immediately and delete the 
> Message from your system, any use is forbidden. 
> Correspondence via e-mail is primarily for information 
> purposes. KAG/RVV/RIFA/ImmoKAG neither makes nor accepts 
> legally binding statements unless otherwise agreed to the contrary.

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.