The fn:concat function returns a string that is the concatenation of two or more atomic values.
>>-fn:concat(atomic-value,atomic-value-+---------------------+-)->< | .-,------------. | | V | | '-,----atomic-value-+-'
If all atomic-value arguments are the empty sequence, the returned value is a string of length 0. Otherwise, the returned value is the concatenation of the xs:string values that result from casting the atomic-value arguments to strings.
The following function concatenates the strings 'ABC', 'ABD', the empty sequence, and 'ABE':
fn:concat('ABC', 'ABD', (), 'ABE')
The returned value is 'ABCABDABE'.