min
EXSLT
math
min
minimum
public domain
1
Jeni Tennison
2001-03-28
Returns the minimum value from a node-set.
1.1
Jeni Tennison
2001-04-28
- Added condition that
`math:min()`

must return `NaN`

if any of the values of the nodes in the node set passed as the argument have a numerical value of `NaN`

.
- Changed the definition of the minimum to be the value of the first node in the node list when sorted as with
`xsl:sort`

with a data type of `number`

in `descending`

order.

1.2
Jeni Tennison
2001-05-22
- Added vendor implementations in Saxon and 4XSLT
- Changed status to stable

1.3
Jeni Tennison
2001-06-11
Added vendor implementation in jd.xslt.
1.4
Jeni Tennison
2001-08-23
Added vendor implementation in libxslt.
1.5
Craig Stewart
2002-08-20
Added Xalan-J implementation to the list.
1.6
Craig Stewart
2002-11-12
Updated 4XSLT version to 0.12.0a3.
The math:min function returns the minimum value of the nodes passed as the argument. The minimum value is defined as follows. The node set passed as an argument is sorted in ascending order as it would be by xsl:sort with a data type of number. The minimum is the result of converting the string value of the first node in this sorted list to a number using the number function.
If the node set is empty, or if the result of converting the string values of any of the nodes to a number is NaN, then NaN is returned.
The math:min template returns a result tree fragment whose string value is the result of turning the number returned by the function into a string.
This use case shows an error when the function is passed a
number as the value of the first argument.
This use case shows an error when the function is passed a
number as the value of the nodes
parameter.
EXSLT
maths
min
use case
1
Mike Kay
2001-04-28
Tests functionality of math:max() and math:min().