fn:contains-token
Determines whether or not any of the supplied strings, when tokenized at whitespace boundaries, contains the supplied token, under the rules of the supplied collation.
contains-token($value as xs:string*, $token as xs:string, $collation as xs:string?:=fn:default-collation()) ➔ xs:boolean
Arguments | ||||
| $value | xs:string* | The input string | |
| $token | xs:string | The token | |
| $collation | xs:string? | := fn:default-collation() | The collation used for comparing strings |
Result | xs:boolean | |||
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. Available in all Saxon editions. Implemented since Saxon 9.7. Available for all platforms.
Notes on the Saxon implementation
Available since Saxon 9.7.