Description
The functx:contains-case-insensitive function returns true if $substring is contained in $arg. It is case insensitive; it matches a word even if the case is different.
Arguments and Return Type| Name | Type | Description |
$arg |
xs:string? |
the string to search |
$substring |
xs:string |
the substring to find |
| return value |
xs:boolean? |
XSLT Function Declaration| See XQuery definition. | | XSLT 2.0 Syntax: |
|---|
<xsl:function name="functx:contains-case-insensitive" as="xs:boolean?"
xmlns:functx="http://www.functx.com" >
<xsl:param name="arg" as="xs:string?"/>
<xsl:param name="substring" as="xs:string"/>
<xsl:sequence select="
contains(upper-case($arg), upper-case($substring))
"/>
</xsl:function>
|
Examples| XSLT Example | Results |
|---|
functx:contains-case-insensitive(
'abcdef', 'def')
|
true
|
functx:contains-case-insensitive(
'abcdEF', 'def')
|
true
|
See AlsoHistory |
|