Re: [xsl] Duplicate Elimination

Subject: Re: [xsl] Duplicate Elimination
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 13 Mar 2014 11:22:22 +0000
On 13/03/2014 10:59, Ihe Onwuka wrote:
> ...

we are comparing

<xsl:variable name="aDate" select="A/Date"/> <xsl:apply-templates select="$aDate | B/Date[not($aDate/text() = text())]/>


<xsl:for-each-group select="(A|B)/Date" group-by="."/> <xsl:apply-templates select="."/> </xsl:template>

Personally I find the latter more readable and it is a lot more efficient.


________________________________________________________________________ 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