For replace function, I have given a sample. Look at this and let me know if any.
HTML Code:
<xsl:template match="//textDescription">
<xsl:variable name="a" select="."/>
<xsl:value-of select="replace($a, '&', 'and')"/>
<p><xsl:apply-templates/></p>
</xsl:template>