Please try this XSL. The stylesheet uses identity template. Appropriate
person elements are eliminated.
<?xml version="1.0"?>
<xsl:stylesheet xmlns

sl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl

utput method="xml" indent="yes" />
<xsl:template match="node() | @*">
<xsl:copy>
<xsl:apply-templates select="node() | @*" />
</xsl:copy>
</xsl:template>
<xsl:template match="person">
<xsl:if test="not(name = preceding-sibling:

erson/name)">
<xsl:copy-of select="." />
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Regards,
Mukul