ng:spaceConcat

ng:spaceConcat

The built-in function, ng:spaceConcat(), helps concatenate two strings with a space character automatically inserted between them.

Here is an example:
This XPath expression:
ng:spaceConcat('First name:', 'Jon')
outputs this string:
First name: Jon
Notes
Important:
If you are concatenating values from an XML file and one of the values is a number, you must first convert the number to a string.
The ng:spaceConcat function works with string data types only.
Example:
ng:spaceConcat('Page:', string(ng:page-number()))
outputs this string:
Page: 2
An alternative method to concatenate two outputs (without automatically inserting a space) is to use the XPath function concat.