From bf11e2334efba66e23e9fd382edbc8403fcaf713 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christian=20Gr=C3=BCn?= $uri
to be escaped is replaced by an escape sequence, which is
+ character in $value
to be escaped is replaced by an escape sequence, which is
formed by encoding the character as a sequence of octets in UTF-8, and then representing
each of these octets in the form %HH, where HH is the hexadecimal representation of the
octet. This function must always generate hexadecimal values using the upper-case
@@ -17456,7 +17456,7 @@ return tokenize(normalize-space($s), ' ')[. castable as xs:IDREF]
If $href
is the empty sequence, the result is an empty sequence.
If $href
is a relative URI reference, it is resolved relative to the value
+
If $source
is the empty sequence, the result is an empty sequence.
If $source
is a relative URI reference, it is resolved relative to the value
of the xs:string
.
If the
If $href
is read from a source document, it is generally appropriate to
+
If A dynamic error $source
is read from a source document, it is generally appropriate to
resolve it relative to the base URI property of the relevant node in the source
document. This can be achieved by calling the fn:resolve-uri
function,
and passing the resulting absolute URI as an argument to the fn:doc
@@ -17580,7 +17580,7 @@ return tokenize(normalize-space($s), ' ')[. castable as xs:IDREF]
$href
is not a valid URI $source
is not a valid URI
A dynamic error is raised
The function returns true
if and only if the function call fn:doc($href)
+
The function returns true
if and only if the function call fn:doc($source)
would return a document node.
If $href
is an empty sequence, this function returns false
.
If a call on fn:doc($href)
would return a document node, this function
+
If $source
is an empty sequence, this function returns false
.
If a call on fn:doc($source)
would return a document node, this function
returns true
.
In all other cases this function returns false
.
If this function returns true
, then calling fn:doc($href)
+
If this function returns This function takes an true
, then calling fn:doc($source)
within the same xs:string
as argument and returns a sequence of
- $uri
as an xs:anyURI
and
+ $source
as an xs:anyURI
and
resolving it according to the mapping specified in
If $uri
is not specified, the function returns the sequence of
If $source
is not specified, the function returns the sequence of
If $uri
is a relative xs:anyURI
, it is resolved
+
If $source
is a relative xs:anyURI
, it is resolved
against the value of the base-URI property from the static context.
If $uri
is the empty sequence, the function behaves as if it had been
+
If $source
is the empty sequence, the function behaves as if it had been
called without an argument. See above.
By default, this function is
A dynamic error $uri
is not
+ code="0004"/> if $source
is not
a valid xs:anyURI
.
The zero-argument form of the function returns the URIs in the
If $uri
is a relative xs:anyURI
, it is resolved
+
If $source
is a relative xs:anyURI
, it is resolved
against the value of the base-URI property from the static context.
If $uri
is the empty sequence, the function behaves as if it had been
+
If $source
is the empty sequence, the function behaves as if it had been
called without an argument. See above.
The single-argument form of the function returns the sequence of URIs corresponding to
the supplied URI in the
A dynamic error $uri
is not
+ code="0004"/> if $source
is not
a valid xs:anyURI
.
The $href
argument
The $source
argument
If the $href
argument is an empty sequence, the function
+
If the $source
argument is an empty sequence, the function
returns an empty sequence.
The encoding
option, if present
A dynamic error is raised The result of the function is the same as the result of the expression: The expression
If If The effect of calling $href
argument
+ /> if the $source
argument
contains a fragment identifier, zip:binary-entry($href, $entry)
if the function is available, or
+ calling zip:binary-entry($source, $entry)
if the function is available, or
an empty sequence otherwise.$href
is the empty sequence, the function returns the empty sequence.$source
is the empty sequence, the function returns the empty sequence.pin
on a map or array is that subsequent retrieval operations
within the pinned map or array return labeled results, whose labels contain useful information about
- where the results were found. For example, an expression such as json-doc($uri)??name
+ where the results were found. For example, an expression such as json-doc($source)??name
will return the values of all entries in the JSON tree having the key "name"
; but very little
can be done with this information because the result is simply a sequence of (typically) strings
- with no context. By contrast, the result of pin(json-doc($uri))??name
is the same set
+ with no context. By contrast, the result of pin(json-doc($source))??name
is the same set
of strings, labeled with information about where they were found. For example, if $result
- is the result of the expression pin(json-doc($uri))??name
, then:pin(json-doc($source))??name
, then:
Raised by $result => label()?parent?ssn
locates the map that contained each
diff --git a/specifications/xpath-functions-40/src/xpath-functions.xml b/specifications/xpath-functions-40/src/xpath-functions.xml
index 87b2e6a49..3492d3f5a 100644
--- a/specifications/xpath-functions-40/src/xpath-functions.xml
+++ b/specifications/xpath-functions-40/src/xpath-functions.xml
@@ -11675,7 +11675,7 @@ ISBN 0 521 77752 6.
fn:unparsed-text
or fn:unparsed-text-lines
- if the $href
argument contains a fragment identifier,
+ if the $source
argument contains a fragment identifier,
or if it cannot be resolved to an absolute URI (for example, because the
base-URI property in the static context is absent), or if it cannot be used to
retrieve the string representation of a resource.