# xf:concat

Concatenates the string values of the passed in arguments.

### Signatures

xf:concat(xs:string $string-var1, xs:string $string-var2, ... ) —> xs:string

### Arguments

Data Type | Argument | Description
--- | --- | ---
xs:string | $string-var1 | Represents the first string to concatenate together.
xs:string | $string-var2 | Represents the second string to concatenate together.
. . . |  | Represents more strings to concatenate together.

### Returns

Returns a string made up of arguments to this function concatenated together.

If the value of any of the string arguments is the empty sequence, the argument is treated as a zero-length string ("").

### Examples

This Query . . . | Generates This Result . . .
--- | ---
<r>{xf:concat("str1", "str2")}</r> | <r>str1str2</r>
<r>{xf:concat('str1', 'str2')}</r> | <r>str1str2</r>
<r>{xf:concat("str1")}</r> | <r>str1</r>
<r>{xf:concat(())}</r> | <r></r>
<r>{xf:concat("str1", "str2", "str3", "str4", "str5", "str6")}</r> | <r>str1str2str3str4str5str6</r>

Related Topics

W3C concat function description.