string-join

Overview

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

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

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


See Also


Copyright © 2010 - 2023 Emakin. All rights reserved.