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

Re: [XSLT2] Some common, generic grouping problems

Subject: Re: [XSLT2] Some common, generic grouping problems
From: "Christian Roth" <roth@xxxxxxxxxxxxxx>
Date: Fri, 30 Jun 2006 12:44:36 +0200
christian roth
andrew welch wrote:

><root>
>   <arbitrary />
>   <elem       color="dark-red" />
>   <elem       color="red" />
>   <arbitrary  color="none" />
>   <elem       color="red" />
>   <elem       color="light-red" />
>   <arbitrary />
>   <elem       color="dark-red" />
>   <elem       color="red" />
>   <arbitrary  color="none" />
>   <elem       color="red" />
>   <elem       color="light-red" />
>   <arbitrary />
></root>
[...]
>That is of course if I've scaled up the input correctly, no comment
>from the OP so far.

Yes, this is how the input would scale. I'm sorry for not replying
earlier to the solutions given so far (Andrew, David) - I must admit
that I am still digesting the code given to extract and understand the
underlying idea(s).

For your (Andrew's) solution to example #1, am I right that the
underlying idea could be paraphrased as:

"Group by start, then tail-trim the resulting groups to end (using a
nested grouping from end)"?

I hope I can give a verbal write-up of the ideas behind the solutions
for the other cases as well as soon as I have fully grasped them myself...

-Christian

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.