Return smallest value of the argument's numeric value.
min (nodeset[, nodeset])
This function returns the minimum numeric value of the nodes of one or more node sets. If you specify a node set that contains more than one node, all nodes of the set are taken for evaluation.
If necessary, node values are converted to numerical values. If a node value cannot be converted, then NaN is used. This function returns NaN, if at least one argument is NaN.
There is no min
function in XPath.
Retrieve the year of birth of the oldest patient (aggregate all
/patient/born
nodes and determine the minimum numerical
value):
min(/patient/born)