XSLT » XPath Core Functions » sum

Syntax:
number = sum(node-set)

The sum function adds and returns the total value of a set of numeric values that are contained in a node-set.