[xsl] Duplicate Elimination

Subject: [xsl] Duplicate Elimination
From: Ihe Onwuka <ihe.onwuka@xxxxxxxxx>
Date: Wed, 12 Mar 2014 20:34:48 +0000
I have Date elements coming from 2 different parents.



I am doing

<xsl:apply-templates select="A/Date | B/Date>
   <xsl:sort select="." order="ascending"/>


<xsl:template match="Date">

I have noticed that when A and B have a child element of the same date
the Date template gets fired on each occasion, whereas I only want it
fired once

I  thought the union operator in the apply-templates would have the
effect of  eliminating duplicates or aren't they duplicates if they
have the same content but come from different parents.

Current Thread