Here is an example with translate() that you can modify so that it fits into your use case:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml"/>
<xsl:template match="*[local-name()='comment']/text()">
<xsl:if test="translate(., '":~%*;', '')">
<xsl:value-of select="translate(., '":~%*;', '')"/>
</xsl:if>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="*|node()">
<xsl:copy>
<xsl:apply-templates select="*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
--HP
#DataPower#Support#SupportMigration