string-join
Concatenates all the values of the input sequence into one string delimited by whatever string you choose to use as the delimiter. The function returns an empty string if the strings argument is an empty set.

Languages
Built-in, C++, C#, Java, XQuery, XSLT 2.0, XSLT 3.0.
Parameters
Argument | Description |
|---|---|
parent-context | Optional argument. Supplies the parent context. See also Example: Changing the Parent Context.
Parent context is the context inherited from a parent node. It determines what source data and intermediate results are available to descendant nodes. Some data-processing components, including core aggregation functions, join components, and variables, provide a parent-context parameter that allows you to influence the inherited context and consequently change the output. |
strings | This argument must be connected to a source item which supplies the actual data. The supplied argument value must be a sequence (zero or many) of xs:string. |
delimiter | Optional argument. Specifies the delimiter to be inserted between any two consecutive strings. |
Example
In the example below, the source XML file contains four Article items, with the following numbers: 1, 2, 3, and 4.

The constant supplies the character "#" as the delimiter. The mapping result is, therefore, 1#2#3#4. If you do not supply a delimiter, then the result becomes 1234.