The string-length() function returns the number of characters in a string value.
number string-length(string[optional])
Optionally, a string. If the argument is not a string, it is converted using the rules of the
string() function. If no argument is specified, the function uses the string value of the context node.
A number, the number of characters.
Defined: XPath, section 4.2.