{ Frameless }

substring-before($arg1, $arg2, $collation)

The substring-before($arg1, $arg2) or substring-before($arg1, $arg2, $collation) function returns the part of the $arg1 string that precedes the first occurrence of $arg2. The $collations attribute specifies if collations should be taken into account.

Arguments

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

Examples

substring-before("frameless", "frame")""
substring-before("frameless", "less")"frame"