fn:apply

Makes a dynamic call on a function with an argument list supplied in the form of an array.

apply($function as fn(*), $arguments as array(*)) ➔ item()*

Arguments

 

$function

fn(*)

The function to be applied

 

$arguments

array(*)

Array whose members are to be used as arguments to the function

Result

item()*

Namespace

http://www.w3.org/2005/xpath-functions

Links to W3C specifications

XPath 3.1 Functions and Operators

XPath 4.0 Functions and Operators

Saxon availability

Available in XPath 3.1, XSLT 3.0, XQuery 3.1, and later versions. From Saxon 10, available in all editions. Implemented in Saxon-PE and Saxon-EE since Saxon 9.7. Available for all platforms.

Notes on the Saxon implementation

Available since Saxon 9.7. Available in Saxon-HE since 10.