Standard: http://www.w3.org/TR/xpath#function-sum

number sum (node-set)

Standard excerpt:

The sum function returns the sum, for each node in the argument node-set, of the result of converting the string-values of the node to a number.