XSLT » XPath Core Functions » string-length

Syntax:
number = string-length(string)

The string-length function returns the number of characters in a string. The string argument is optional. If omitted, the default is to use the string value of the context node.