A RESTful browser for eXist Java-Based Function Modules


http://www.w3.org/2005/xpath-functions
A module with the XQuery/XPath Core Library Functions

string-length($arg as xs:string?) xs:integer?
Returns an xs:integer equal to the length in characters of the value of $arg.
If the value of $arg is the empty sequence, the xs:integer 0 is returned.
If no argument is supplied, $arg defaults to the string value (calculated using fn:string()) of the context item (.). If no argument is supplied or if the argument is the context item and the context item is undefined an error is raised
$argThe input string

Returns the length in characters

string-length() xs:integer?
Returns an xs:integer equal to the length in characters of the value of the context item.
If the context item is undefined an error is raised.

Returns the length in characters
Return to list of all modules