below code will do the work:

<xsl:stylesheet xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"
version="1.0">:
<xsl:template match="*">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates select="*|text()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="text()">
<xsl:call-template name="escape-gt">
<xsl:with-param name="value" select="string(.)"/>
</xsl:call-template>
</xsl:template>
<xsl:template name="escape-gt">
<xsl:param name="value"/>
<xsl:choose>
<xsl:when test="contains ($value, '>')">
<xsl:value-of select="substring-before ($value, '>')"/>
<xsl:text disable-output-escaping="yes">&gt;</xsl:text>
<xsl:call-template name="escape-gt">
<xsl:with-param name="value" select="substring-after ($value, '>')"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$value"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>