On Thu, Jan 30, 2014 at 04:38:49PM -0800, Dimitre Novatchev scripsit:
<xsl:key name="person" match="a" use="@href"/>
<xsl:template match="person">
<duplicate>
<xsl:copy-of select="a[key('person',@href)[2]]"/>
</duplicate>
</xsl:template>
</xsl:stylesheet>
Can I note that the [2] would appear to suppose that there's only ever
one duplicate?
not(position() eq 1) is likely safer.
-- Graydon
--~------------------------------------------------------------------
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>
--~--