Visit Mozilla.org

XPath:Functions:sum

From MDC

XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes

Contents


The sum function returns a number that is the sum of the numeric values of each node in a given node-set.

[edit] Syntax

sum( node-set )

[edit] Arguments

node-set
The node-set to be evaluated. Each node in this node-set is evaluated as if it were passed to the number() function, and a sum of the resulting numbers is returned.

[edit] Returns

A number.

[edit] Notes

(None)

[edit] Defined

XPath 1.0 4.3

[edit] Gecko support

Supported.