Description
The fn:substring-after function extracts all the characters of a string ($arg1) that appear after the first occurrence of another specified string ($arg2).
This description is © Copyright 2007, O'Reilly Media. It is excerpted from the book XQuery by Priscilla Walmsley, O'Reilly, 2007. For a complete explanation of this function, please refer to Appendix A of the book. Arguments and Return Type| Name | Type | Description |
$arg1 |
xs:string? |
the entire string |
$arg2 |
xs:string? |
the string to start the substring after |
$collation |
xs:string |
the collation to use to compare strings |
| return value |
xs:string |
Examples| XSLT Example | Results |
|---|
substring-after('query', 'u')
|
ery
|
substring-after('queryquery', 'ue')
|
ryquery
|
substring-after('query', 'y')
|
zero-length string |
substring-after('query', 'x')
|
zero-length string |
substring-after('query', '')
|
query
|
substring-after('', 'x')
|
zero-length string |
See AlsoHistory |
|