Since you are using XSLT 1.0, you can use a combination of substring-after()and translate()to not only get the text after #, but also to remove any unwanted characters.
Example...
<xsl:template match="name">
<xsl:value-of select="translate(substring-after(.,'#'),translate(substring-after(.,'#'),'0123456789',''),'')"/>
</xsl:template>
Here you can see the full working example: http://xsltfiddle.liberty-development.net/gWcDMes/1
source
share