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

Re: for-each-group and result-document splitting to le

Subject: Re: for-each-group and result-document splitting to less files.
From: "James Cummings" <cummings.james@xxxxxxxxx>
Date: Mon, 8 Sep 2008 13:02:55 +0100
Re:  for-each-group and result-document splitting to le
On Fri, Sep 5, 2008 at 14:19, Michael Kay <mike@xxxxxxxxxxxx> wrote:
>> I want to break it into 5 files for punctuation&numbers, a-f,
>> g-l, m-r, and s-z.
> Part of the solution might be to use a grouping key created using
> translate(., 'abcdefghijklmnopqrstuvwxyz', 'aaaaaaggggggmmmmmmssssssss')

Having had a chance to play with this on the outer xsl:for-each-group I did:

 <xsl:for-each-group select="$persNamesWithoutKey"
', 'aaaaaaggggggmmmmmmssssssss999999999---------') ">

and with some minor cosmetic changes through the rest that did it
absolutely perfectly for my needs.

I post this just for posterity (i.e. anyone else searching for a
similar answer and in several months when I've forgotten how/why I did
something like this!)   ;-)

Many thanks,


Current Thread


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.
First Name
Last Name
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.