W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > May 2007

Re: Propose to add 'group-by' option to p:wrap and p:wrap-sequence

From: Jeni Tennison <jeni@jenitennison.com>
Date: Thu, 24 May 2007 19:34:01 +0100
Message-ID: <4655DA99.4000302@jenitennison.com>
To: public-xml-processing-model-wg <public-xml-processing-model-wg@w3.org>

Henry S. Thompson wrote:
> For p:wrap, 'adjacent' matches of the 'match' option which have the
> same string value for the 'group-by' expression, given the matched
> node as context node, are wrapped together in a single 'wrapper'
> element.  Matches are 'adjacent' if they are siblings, and nothing
> intervenes between them except all-white text nodes, comment nodes and
> processing instruction nodes (but see below under 'ignore').

This sounds like what <xsl:for-each-group group-adjacent="XPath"> does. 
Could we call the option 'group-adjacent' rather than 'group-by' to be 
consistent with XSLT?

Jeni Tennison
Received on Thursday, 24 May 2007 18:34:10 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:43 UTC