saxonica.com

fn:contains

fn:contains(string? $operand1, string? $operand2) → boolean?

Function signature

$operand1

xs:string ?

$operand2

xs:string ?

Result

xs:boolean ?

Returns true if the second string is a substring of the first

XPath 2.0 Specification

fn:contains(string? $operand1, string? $operand2, string $collation) → boolean?

Function signature

$operand1

xs:string ?

$operand2

xs:string ?

$collation

xs:string

Result

xs:boolean ?

Returns true the second string is a substring of the first, under the rules of the chosen collation. This must correspond to a RuleBaseCollator.

XPath 2.0 Specification

Next