Here are examples using either translate()
or replace()
XSLT 1.0/2.0
<xsl:value-of select="translate(/subTotal/@formattedValue,'$.','')"/>
XSLT 2.0 only
<xsl:value-of select="replace(/subTotal/@formattedValue,'[^d]','')"/>
Either one of these applied to:
<subTotal formattedValue="$50.50"/>
produces:
5050
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…