String concatenation

XPath 3.0 introduces the string concatenation operator ||. The expression $a || $b returns the string obtained by concatenating the string representations of the values $a and $b. This is equivalent to fn:concat($a, $b), providing a useful short-hand notation.

For example, ('$' || 12.5) returns the string $12.5.