Subject:Remove duplicates in a list - Urgent Author:C M Date:25 Aug 2006 01:31 PM
Hi All,
I have the following xml input & the xsl code which is not giving the desired putput. I need to remove the duplicate person with the same id & map only one. Here representedBy is the repeating node.
Subject:Remove duplicates in a list - Urgent Author:James Durning Date:25 Aug 2006 02:33 PM Originally Posted: 25 Aug 2006 02:32 PM
Not sure why it isn't working for you. Try preceding-sibling axis instead?
<ns0:listOfRepresentedBy>
<xsl:copy-of select="ns0:listOfRelationship/ns0:listOfRepresentedBy/ns0:representedBy[not(ns0:person/ns0:id = preceding-sibling::/ns0:representedBy/ns0:person/ns0:id)]">
</ns0:listOfRepresentedBy>