xsl-list
[Top] [All Lists]

Re: [xsl] Duplicate Elimination

2014-03-13 06:56:58
On 13/03/2014 11:38, Ihe Onwuka wrote:
By all means reply but from an educational perspective point out that
your preference for for-each-group,  has no set-theoretic
interpretation,

It's iterating through representatives of the quotient set if you factor
by the relation implied by the group-by clause.


will not work for anybody restricted to XSLT 1.0

It's easy to rewrite any such use of for-each-group as xsl-for-each plus
a filter using a key (look up muenchian grouping for the details)

and does not port to XPATH or XQuery.

For xquery you can use the similar group-by clause so long as you
are using V3 http://www.w3.org/TR/xquery-30/#id-group-by

David



________________________________________________________________________
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. ________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--