array:index-of
Returns a sequence of positive integers giving the positions within the array
$array of members that are equal to $target.
index-of($array as array(*), $target as item()*, $collation as xs:string?:=fn:default-collation()) ➔ xs:integer*
Arguments | ||||
| $array | array(*) | The input array | |
| $target | item()* | The target value | |
| $collation | xs:string? | := fn:default-collation() | The collation used for comparing strings |
Result | xs:integer* | |||
Namespace
http://www.w3.org/2005/xpath-functions/array
Links to W3C specifications
XPath 4.0 Functions and Operators
Saxon availability
Available in XPath 4.0, XSLT 4.0, and XQuery 4.0. Requires Saxon-PE or Saxon-EE. Implemented since Saxon 13. Available for all platforms.