Re: [xsl] Duplicate Elimination

Subject: Re: [xsl] Duplicate Elimination
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 13 Mar 2014 11:56:39 +0000
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. ________________________________________________________________________


Current Thread