Visit Mozilla.org

EXSLT:math:max

Un article de MDC.

Cette page est en cours de traduction, son contenu peut donc être incomplet ou contenir des parties en anglais. N'hésitez pas à participer à sa traduction à partir de EXSLT:math:max
Référence XSLT/XPath : Éléments XSLT, Fonctions EXSLT, Fonctions XPath, Axes XPath

Cet article traite de fonctionnalités introduites dans Firefox 3

Sommaire


math:max() returns the maximum value of a node-set.

To compute the maximum value of the node-set, the node set is sorted into descending order as it would be using xsl:sort() with a data type of number. The maximum value is then the first node in the sorted list, converted into a number.

Note : If the node-set is empty or the result of converting any of its string values to numbers is NaN, this function returns NaN.

[modifier] Syntax

math:max(nodeSet)

[modifier] Arguments

nodeSet
The node-set whose highest value is to be returned.

[modifier] Returns

A result tree fragment representing the highest valued node's numeric value as a string.

[modifier] Defined

EXSLT - MATH:MAX

[modifier] Gecko support

Supported in Gecko 1.9 and later.