diff --git a/specifications/xpath-functions-40/src/function-catalog.xml b/specifications/xpath-functions-40/src/function-catalog.xml
index c4f9b53e9..9ce922d57 100644
--- a/specifications/xpath-functions-40/src/function-catalog.xml
+++ b/specifications/xpath-functions-40/src/function-catalog.xml
@@ -4857,7 +4857,7 @@ return normalize-unicode(concat($v1, $v2))
Returns a string created by concatenating the items in a sequence, with a defined
- separator between adjacent items. Returns a string created by concatenating the items in a sequence,
+ with an optional separator between adjacent items. If the second argument is omitted or an empty sequence, the effect is the same as
- calling the two-argument version with The coercion rules ensure that the supplied The coercion rules ensure that the supplied The function then returns an $separator
set to a zero-length
- string.$values
argument is first converted to
- a sequence of atomic items by applying atomization.$values
argument is first
+ converted to a sequence of atomic items by applying atomization.xs:string
created by casting each item
- in the atomized sequence to an xs:string
,
- and then concatenating the result strings in order,
- using the value of $separator
as a
- separator between adjacent strings. If $separator
is the zero-length
- string, then the items in $values
are concatenated without a separator.xs:string
, and then concatenating the
+ result strings in order, using the string values of $separator
as a
+ separator between adjacent strings. If $separator
is an empty sequence or
+ a single zero-length string, then the items in $values
are concatenated
+ without a separator.
If The second argument can now be a sequence. Inserts a separator between adjacent items in a sequence. The function returns the value of The function inserts a separator between adjacent items in a sequence.
+ The input is returned unchanged if If If For example, in XQuery, Insert an empty New in 4.0 New in 4.0 Concatenates the contents of several arrays into a single array. Concatenates the contents of several arrays into a single array, with an optional
+ separator between adjacent members. Informally, the function concatenates the members of several arrays into a single array. Informally, the function concatenates the members of several arrays into a single array.
+ If a separator is supplied, its members are inserted before the members of the second
+ and the following arrays.$values
is the empty sequence, the function returns the
@@ -4896,8 +4892,8 @@ return normalize-unicode(concat($v1, $v2))
head($input), tail($input) ! ($separator, .)
.$separator
is the empty sequence
+ or if $input
contains less than two items.$input
contains less than two items then it is returned unchanged.$separator
is the empty sequence then $input
is returned unchanged.fn:intersperse(para, <hr/>)
would insert
- an empty hr
element between adjacent paragraphs.hr
element between adjacent paragraphs: