{ Frameless }

starts-with($arg1, $arg2, $collation)

The starts-with($arg1, $arg2) or starts-with($arg1, $arg2, $collation) function checks wether the string provided by $arg1 contains the string value of $arg2 as a leading substring. The $collation argument specifies wether collations will be taken into account.

Arguments

ArgumentType
$arg1xs:string
$arg2xs:string
$collationxs:string
Return valuexs:boolean

Examples

starts-with("frameless", "fra")true
starts-with("frameless", "less")false