Im quite new to XSLT and looking at the decimal-format function im still having trouble trying to format a passed in amount to X decimal places?
Can anyone help me with this?
Thanks
<xsl:template match="AverageQuote">
<xsl:value-of select='format-number( ?????? , "###,###.000000")'/>
Where ive put the question marks im trying to pass in the value of the context node (AverageQuote) . I tried '.' and [.] but i cannot get the correct syntax.
Try . instead of '.' that is, just a dot, nothing more:
<xsl:value-of select="format-number(., '###,###.000000')" />
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.