Determines if $string-var1 contains the string specified in $string-var2.
If the value of $string-var1 or $string-var2 is an empty sequence, the empty sequence is returned. The empty sequence is a sequence containing zero items (), which is similar to null in SQL.
xf:contains(xs:string? $string-var1, xs:string? $string-var2) —> xs:boolean?
Compare this string against $string-var1 to see if this string is contained anywhere in $string-var1. |
Returns the boolean value of true, if $string-var1 contains $string-var2.
Returns the boolean value of false, if $string-var1 does not contain $string-var2.
Returns the boolean value true, if $string-var2 is a zero-length string ("").
Returns the boolean value false, if $string-var1 is a zero-length string ("") and $string-var2 is not a zero-length string.
W3C contains function description.