August 2003
Beginner to intermediate
240 pages
7h 44m
English
max( ) — returns the largest of all the nodes in the node-set operands
| Defined in: XForms 1.0 |
Parameters: node-set operands (required) |
| Return type: number |
The value of each individual node is determined by converting the
string-value to a number (as with number( )). A
node-set that is empty or that includes nodes that evaluate to
NaN will result in a return value of
NaN.
For an XPath data model representing the following XML:
<operands> <operand>3.14</operand> <operand>42</operand> <operand>0</operand> <operand>0.86</operand> </operands>
The following XPath expression returns 42:
max(/operands/operand)
Read now
Unlock full access