Hi Matts Isuls,
<snip>
<xsl:for-each
select="payments/payment[count(.|key('mkey',date)[1])=1]">
replace this with
<xsl:for-each
select="payment[not(date=preceding-sibling::payment/date)]">
and change the match statement to payment.
<xsl:template match="/">
<xsl:apply-templates select="parcels" />
</xsl:template>
<xsl:template match="parcels">
<xsl:apply-templates select="parcel/payments" />
</xsl:template>
Cheers,
Juergen Zink
*****************************************************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
eMail irrtuemlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren
sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail
in error) please notify the sender immediately and destroy this e-mail.
Any unauthorized copying, disclosure or distribution of the material
in this e-mail is strictly forbidden.
*****************************************************************************
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list