Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

fn:string-length

Return length of string value.


Syntax

fn:string-length(string? $string) => integer?

Top of page

Description

This function returns the length of the value of $string as integer value. If the value of $string is the empty sequence, the empty sequence is returned.

Top of page

Argument

$string

string value

Top of page

Example

The first function call returns 38, the second zero, since the string value is a zero-length string after normalizing whitespace.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:

Top of page