[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] Finding Duplicates with XPath
Subject: Re: [xsl] Finding Duplicates with XPath
From: Peter Hickman <peter@xxxxxxxxxxxxx>
Date: Mon, 04 Dec 2006 17:23:01 +0000
|
Something like this somewhere in your stylesheet
<xsl:choose>
<xsl:when test="preceding-sibling::newlink/@book = @book">
<xsl:comment>Duplicate</xsl:comment>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="." />
</xsl:otherwise>
</xsl:choose>
|