Description
The fn:string-length function returns an xs:integer value indicating the number of characters in the string. Whitespace is significant, so leading and trailing whitespace characters are counted.
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 |
$arg |
xs:string? |
| return value |
xs:integer |
Examples| XSLT Example | Results |
|---|
string-length('query')
|
5
|
string-length(' query ')
|
9
|
string-length(normalize-space(' query '))
|
5
|
string-length('xml query')
|
9
|
string-length('')
|
0
|
string-length(())
|
0
|
See AlsoHistory |
|