Skip to content

string-join

Overview

Returns a string created by concatenating the items in a node-set, with a defined separator between adjacent items.

1
string string-join(arg, [separator])

Arguments

node-set arg

Nodes to join as a string.

string separator

Separator to use join values. If not specified, an empty string is used.

Return Value

Joined string value.

Remarks

Examples

1
2
string-join(('Now', 'is', 'the', 'time', '...'), ' ') returns "Now is the time ..."
string-join(names, ',') returns "a,b,c"

See Also