The substring-before() function returns that part of a string value that occurs before the first occurrence of some specified substring.
For example, the value of «substring-before('print=yes') » returns the string "print" .
Argument | Data Type | Meaning |
---|---|---|
value | xs:string? | The containing string |
substring | xs:string? | The test string |
collation (optional) | xs:string | The collation to be used for comparing strings |
Result | xs:string | A string containing those characters that precede the first occurrence of the test substring within the containing string |