SAXONICA

Saxon Documentation
Full Contents
About Saxon
Changes in this Release
Conditions of Use
Using XSLT 2.0
Using XQuery
Handling Source Documents
XML Schema Processing
The XPath API
Standards Conformance
Extensibility
Saxon Extensions
Sample Saxon Applications
The Saxon SQL Extension
XSLT Elements
XPath 2.0 Expression Syntax
Function Library
XSLT Patterns

# fn:substring-before

fn:substring-before( string? $operand1, string? $operand2) → string?

Function signature

$operand1 | xs:string ?
$operand2 | xs:string ?
Result | xs:string ?

Returns that part of the given input string that occurs before the first occurrence of the string given in $operand2

XPath 2.0 Specification

fn:substring-before( string? $operand1, string? $operand2, anyURI $collation) → string?

Function signature

$operand1 | xs:string ?
$operand2 | xs:string ?
$collation | xs:string
Result | xs:string ?

Returns that part of the given input string that occurs before the first occurrence of the string given in $operand2, using the given collation to compare strings

XPath 2.0 Specification

Next