A RESTful browser for eXist Java-Based Function Modules


http://www.w3.org/2005/xpath-functions
A module with the XQuery/XPath Core Library Functions

sum($arg as xdt:anyAtomicType*) xdt:anyAtomicType
Returns a value obtained by adding together the values in $arg. If $arg is the the empty sequence the xs:double value 0.0e0 is returned.
$argThe sequence of numbers to be summed up

Returns the sum of all numbers in $arg

sum($arg as xdt:anyAtomicType*, $default as xdt:anyAtomicType?) xdt:anyAtomicType
Returns a value obtained by adding together the values in $arg. If $arg is the the empty sequence then $default is returned.
$argThe sequence of numbers to be summed up
$defaultThe default value if $arg computes to the empty sequence

Returns the sum of all numbers in $arg
Return to list of all modules