string-length( )
number
string-length(string s
)number
string-length( )
The string-length()
function returns the number of characters in its
argument. For example, string-length("Charm")
returns 5. If the
argument is omitted, it returns the number of characters in the
string-value of the context node. A nonstring may be passed to
this function, in which case it's automatically converted to a
string, as if by the string( )
function, and that string's length is returned.