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
Saxon on .NET
Extensibility
Saxon Extensions
Sample Saxon Applications
The Saxon SQL Extension
XSLT Elements
XPath 2.0 Expression Syntax
Function Library
Standards Conformance

# fn:substring

fn:substring(string? $sourceString, double $startingLoc) → string?

Function signature

$sourceString | xs:string ?
$startingLoc | xs:double
Result | xs:string ?

Returns a substring of a given string starting at the given starting position and continuing to the end of the string

XPath 2.0 Specification

fn:substring(string? $sourceString, double $startingLoc, double $length) → string?

Function signature

$sourceString | xs:string ?
$startingLoc | xs:double
$length | xs:double
Result | xs:string ?

Returns a subtring of a given string, starting at a given position and continuing up to a given length

XPath 2.0 Specification

Next