The min() Function
Release 2.0 - ...
Syntax
|
|
|
|---|---|
number min(node-set) |
|
Description
Function min() returns the minimum value of the result of converting the string-values of each node in the argument node-set to a number. "Minimum" is determined with the < operator. If the parameter is an empty node-set, or if any of the nodes evaluate to NaN, the return value is NaN.
Example
| XML |
|
|---|---|
<xforms:model>
<xforms:instance xmlns:ex="http://example.org">>
<ex:root>
<ex:value>2</ex:value>
<ex:value>6</ex:value>
</ex:root>
</xforms:instance>
</xforms:model>
...
<xforms:group>
<xforms:output value="min(ex:value)">
<xforms:label>Minium : </xforms:label>
</xforms:output>
</xforms:group>
|
|
The above example will return 2.
Specification
Link to the XForms specification: the min() function.