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

Re: mixed content grouping by whitespace

Subject: Re: mixed content grouping by whitespace
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 13 Apr 2010 17:19:31 +0100
Re:  mixed content grouping by whitespace
On 13/04/2010 16:47, Wendell Piez wrote:

It's really helpful to keep this distinction in mind. One sort of
grouping works with a key; @group-by or @group-adjacent calculates that
key. The other sort simply applies a match criterion to each node in the
group to determine whether it's the particular sort of node
(group-starting or group-ending) of interest for that sort of grouping.

Is it just me?
this is one of the few distinctions in xslt for which I can never find a mental model (so I can never remember) I always have to look this up (or more exactly I don't look it up and get it wrong half the time).
the use of match expression sseem completely arbitrary, Why didn't they always make them xpath expressions? It would mean you had to use
self::h1 instead of h1 to trigger grouping on an h1 element, but it would seem to be a lot more consistent and more powerful as the match versions of grouping are restricted to nodes, so you can't for example group a sequence of integers with group-starting with specifying some condition on integers...

rant not particular;y aimed at Wendell:-)

The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________

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.