functx:min-node

The XML node whose typed value is the minimum

Description

The functx:min-node function returns the node(s) that contains the minimum value, based on typed value. Unlike the built-in fn:min function, it returns the node itself, not its atomic value.

Parameters

Description

nodes:node()

the sequence of nodes to test

Examples

XPath

Results

functx:min-node($in-xml//int)

<int>1</int>

See Also