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

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

From: Norman Walsh <ndw@nwalsh.com>
Date: Tue, 17 Jul 2007 07:48:29 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <87lkdfz1wy.fsf@nwalsh.com>
/ Jeni Tennison <jeni@jenitennison.com> was heard to say:
| 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?

Works for me.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | The offhand decision of some
http://nwalsh.com/            | commonplace mind high in office at a
                              | critical moment influences the course
                              | of events for a hundred years.--Thomas
                              | Hardy

Received on Tuesday, 17 July 2007 11:48:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:53 GMT