functx:contains-any-of

Whether a string contains any of a sequence of strings

Description

The functx:contains-any-of function performs the fn:contains function on a sequence of strings, returning true if $arg contains any one of the values in $searchStrings.

Parameters

Description

arg:string()

the string to test

searchStrings:string()

the strings to look for

Examples

XPath

Results

functx:contains-any-of(‘abc’,(‘bc’,’xy’))

true

functx:contains-any-of(‘abc’,(‘de’,’xy’))

false

See Also