fn:highest
Returns those items from a supplied sequence that have the highest value of a sort key, where the sort key can be computed using a caller-supplied function.
highest($input as item()*, $collation as xs:string?:=fn:default-collation(), $key as (fn(item()) as xs:anyAtomicType*)?:=fn:data#1) ➔ item()*
Arguments | ||||
| $input | item()* | The input sequence | |
| $collation | xs:string? | := fn:default-collation() | The collation used for comparing strings |
| $key | (fn(item()) as xs:anyAtomicType*)? | := fn:data#1 | A function used for computing sort keys |
Result | item()* | |||
Namespace
http://www.w3.org/2005/xpath-functions
Links to W3C specifications
XPath 4.0 Functions and Operators
Saxon availability
Available in XPath 4.0, XSLT 4.0, and XQuery 4.0, provided that 4.0 features are enabled (see Enabling 4.0 features). Requires Saxon-PE or Saxon-EE. Implemented since Saxon 11. Available for all platforms.
Notes on the Saxon implementation
Available since Saxon 13 in XPath 4.0. Available since Saxon 11 provided that syntax extensions are enabled.