Name

string-length( )

Synopsis

                     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.

Get XML in a Nutshell, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.