Name
string-length( ) — returns the number of characters in the src
string
Synopsis
Defined in: XPath 1.0 |
Parameters: string src (optional) |
Return type: number |
When called with no parameters, returns the number of characters in the context node converted to a string.
This example returns 12:
string-length("Hello World!")
Get XForms Essentials 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.