fn:concat function
The fn:concat function concatenates two or more strings into a single string.
Syntax
- string-value
- An xs:string value or the empty sequence.
Returned value
If all string-value arguments are the empty sequence, the returned value is the empty sequence. Otherwise, the returned value is an xs:string value that is the concatenation of all string-value arguments that are not the empty sequence.
Example
The following function concatenates the strings 'ABC', 'ABD', the empty sequence, and 'ABE',
fn:concat('ABC', 'ABD', (), 'ABE')
The returned value is 'ABCABDABE'.