diff --git a/specifications/xpath-functions-40/src/function-catalog.xml b/specifications/xpath-functions-40/src/function-catalog.xml
index faefefa3b..8744e1970 100644
--- a/specifications/xpath-functions-40/src/function-catalog.xml
+++ b/specifications/xpath-functions-40/src/function-catalog.xml
@@ -12215,7 +12215,7 @@ let $newi := $o/tool
Assuming Assuming Assuming Assuming If any integer in If either of the arguments is an empty sequence, the result is an empty sequence. If $in
is an element with no children:$break
is an element with no children:$in
is an element with no children:$break
is an element with no children:$at
is outside the range 1 to count($input)
, that integer
is effectively ignored: no error occurs.$at
contains duplicate integers, the result also contains duplicates. No de-duplication
+ occurs. If the input sequence contains nodes, these are not copied: instead, the result
+ sequence contains multiple references to the same node.$end
are positive and $end > $start
,
fn:slice($in, $start, $end)
returns the same result as $in[position() = $start to $end]
.
This function can be used to enhance the RangeExpression
, defined
+ in
This function does not guarantee that the resulting sequence will be in an order + different from the input sequence. Many times the two sequences will be identical.
whitespace
option causes both the leading space
in the attribute value and the whitespace preceding the
span
element to be ignored.Thus, some implementations might ensure that calling fn:uri-collection
and then
+
+
Thus, some implementations might ensure that calling fn:uri-collection
and then
applying fn:doc
to each of the returned URIs delivers the same result as
calling fn:collection
with the same argument; however, this is not
guaranteed.
A dynamic error is raised $encoding
@@ -16321,17 +16346,20 @@ else $c[1] + sum(subsequence($c, 2))
The unparsed-text-lines
function reads an external resource (for example, a
file) and returns its string representation as a sequence of strings, separated at
newline boundaries.
The result of the single-argument function is the same as the result of the expression
- The result of the single-argument function is the same as the result of the expression
+ fn:tokenize(fn:unparsed-text($href), '\r\n|\r|\n')[not(position()=last() and
+
+
. fn:tokenize(fn:unparsed-text($href), '\n')[not(position()=last() and
.='')]
. The result of the two-argument function is the same as the result of
the expression fn:tokenize(fn:unparsed-text($href, $encoding),
- '\r\n|\r|\n')[not(position()=last() and .='')]
.
The result is thus a sequence of strings containing the text of the resource retrieved
- using the URI, each string representing one line of text. Lines are separated by one of
- the sequences x0A, x0D, or x0Dx0A. The characters representing the newline are not
+ using the URI, each string representing one line of text. End-of-line x0D
is
+ removed or converted to x0A
following the rules of fn:unparsed-text
.
+ Newline characters xOA
are not
included in the returned strings. If there are two adjacent newline sequences, a
zero-length string will be returned to represent the empty line; but if the external
- resource ends with the sequence x0A, x0D, or x0Dx0A, the result will be as if this final
+ resource ends with a newline character, the result will be as if this final
line ending were not present.
A sequence
is an ordered collection of zero or more items
.
- An item
is either a node or an atomic value. The terms
+ An item
is a node, an atomic value, or a function, such as a map or an array. The terms
sequence
and item
are defined formally in