If i use the SUM function to sum those node with d.p. value....the output in sometimes are look strange......

XML File
<group_1 id="1">
<group_1 id="2">
<group_1 id="3">
<group_1 id="4">
<group_1 id="5">

XSL File
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output encoding='utf-8'/>
<xsl:template match="allgroup">
<xsl:element name="TEST_SUM">
<xsl:value-of select="sum(/allgroup/group_1/salary)"/>

<?xml version="1.0" encoding="utf-8"?><TEST_SUM>456000.14999999996</TEST_SUM>

How can i get the result as 456000.15? Need to use the function format-number? format-number will round the value?

What processor are you using? Using xsltproc as my stylesheet processor the expected result was returned.

This also worked using xsltproc:

<xsl:element name="TEST_SUM">
        <xsl:variable name="fpm" select='sum(/allgroup/group_1/salary)' />
        <xsl:value-of select='format-number($fpm, "#.00")' />