August 2003
Beginner to intermediate
240 pages
7h 44m
English
substring-before( ) — returns the portion of the src occurring before the substr string
| Defined in: XPath 1.0 |
Parameters: string src (required); string substr (required) |
| Return type: string |
If the substr string is found within the larger
string, this function returns the portion of the src
string up to and not including the first matched
substr. If not found, returns the empty string.
This example returns the string “1999”:
substring-before("1999-04-01","-")Read now
Unlock full access