fn:string-join
Returns a string created by concatenating all the items in the given sequence (casting each item to a string), separated by the given separator.
string-join($values as xs:anyAtomicType*, $separator as xs:string?:="") ➔ xs:string
Arguments | ||||
| $values | xs:anyAtomicType* | A sequence of strings to be joined into one | |
| $separator | xs:string? | := "" | The separator to be used between adjacent strings |
Result | xs:string | |||
Namespace
http://www.w3.org/2005/xpath-functions
Links to W3C specifications
XPath 3.1 Functions and Operators
XPath 4.0 Functions and Operators
Saxon availability
Available in XPath 3.0, XSLT 3.0, XQuery 3.0, and later versions. Available in all Saxon editions. Available for all platforms.
Notes on the Saxon implementation
The single-argument form of this function is specified in XPath 3.0, and is available since Saxon 9.3, provided XPath 3.0 is enabled. Note that the default separator is a zero-length string, not a single space.