The string-length() function returns the number of characters in a string value.
For example, the expression «string-length('Beethoven') » returns 9 .
Argument | Data Type | Meaning |
---|---|---|
value (optional) | xs:string? | The string whose length is required If the argument is omitted, the string value of the context item is used. If the argument is an empty sequence, the result of the function is (zero) |
Result | xs:string | A number: the number of characters in the value of the argument |