我想你在找这样的东西:
<fo:block>
<xsl:variable name="orignumber" select="'Rs 148573769277.60'"/>
<!-- filter only the numbers and the '.' from the text -->
<xsl:variable name="number" select="translate($orignumber, translate($orignumber, '0123456789,.', ''), '')"/>
<!-- this sets the format to 2 decimals - the multiplication is based on your text. -->
<!-- concat just adds your chosen text(unit) to the number/string -->
<xsl:value-of select="concat('Rs ', format-number(number($number) * 0.0000000001,'##.##'), ' (Crores)')"/>
</fo:block>
或者,您可以只过滤数字并自己设置“.”。