xsl-list
[Top] [All Lists]

Re: [xsl] Finding Duplicates with XPath

2006-12-04 10:23:42
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>


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--