saxon:characters

Splits a string into a sequence of single-character strings.

characters($input as xs:string) ➔ xs:string*

Arguments

 

$input

xs:string

The supplied string

Result

xs:string*

Namespace

http://saxon.sf.net/

Notes on the Saxon implementation

Available since Saxon 10.

Details

This function takes as input an xs:string, and returns a sequence of strings, each containing exactly one character.

For example, the call saxon:characters("hello") returns the sequence ("h", "e", "l", "l", "o").

If the first argument is a zero-length string, the function returns an empty sequence.