Formating xpath function result number
Hi,
Is there any way to format the xpath function result number?
example:
xml
-------------------------------------------------
<root>
<Prod name="a" cost="29152485" />
<Prod name="b" cost="32036758" />
<Prod name="c" cost="32273716" />
<Prod name="d" cost="27425586" />
<Prod name="e" cost="58829979" />
<Prod name="f" cost="24354292" />
</root>
xslt
-------------------------------------------------------------------
<xsl:stylesheet version="2.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<table border="1">
<tr>
<td><xsl:value-of select="sum(root/Prod/@cost)"/></td>
</tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
The result of the sum function is: 204072816. In the xslt result I can see the result, but I don't like the format:2.04072816E8.
1. is there any way that the result format will be 204072816?
1. is there any way that the result format will be 204,072,816?
Roni.
(using xslt ver 2.0 with saxon)
|