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 .
Arguments and Return TypeName | Type | Description |
$arg |
xs:string? |
the string to test |
$searchStrings |
xs:string* |
the strings to look for |
return value |
xs:boolean |
XSLT Function DeclarationSee XQuery definition. | <xsl:function name="functx:contains-any-of" as="xs:boolean"
xmlns:functx="http://www.functx.com">
<xsl:param name="arg" as="xs:string?"/>
<xsl:param name="searchStrings" as="xs:string*"/>
<xsl:sequence select="
some $searchString in $searchStrings
satisfies contains($arg,$searchString)
"/>
</xsl:function>
|
ExamplesXPath Example | Results |
---|
functx:contains-any-of('abc',('bc','xy')) |
true |
functx:contains-any-of('abc',('de','xy')) |
false |
See AlsoHistory |
Recommended Reading:
|