Go to standardXPath function: 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.
Examples (xslt:xml): Overview
1:1
Interactive xlab: [xsl:value-of] [xsl:template]