Visit Mozilla.org

XPath:Functions:string-length

From MDC

XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes

Contents


The string-length function returns a number equal to the number of characters in a given string.

[edit] Syntax

string-length( [string] )

[edit] Arguments

string (optional)
The string to evaluate. If omitted, string used will be the same as the context node converted to a string.

[edit] Returns

An integer equal to the number of characters in the string.

[edit] Defined

XPath 1.0 4.2

[edit] Gecko support

Supported.