+
fn:resolve-uri()
+
+ This function enables a relative URI reference to be resolved against an absolute URI.
- Returns a Boolean value indicating whether the argument node is nilled
-
-
W3C Documentation reference: #func-nilled
-
+ The first form of this function resolves $relative against the value of the base-uri property from the static context. If the base-uri property is not initialized in the static context an error is raised [err:FONS0005].
+
+ If $relative is a relative URI reference, it is resolved against $base, or against the base-uri property from the static context, using an algorithm such as those described in [RFC 2396] or [RFC 3986], and the resulting absolute URI reference is returned.
+ If $relative is an absolute URI reference, it is returned unchanged.
+
+ If $relative is the empty sequence, the empty sequence is returned.
+
+ If $relative is not a valid URI according to the rules of the xs:anyURI data type, or if it is not a suitable relative reference to use as input to the chosen resolution algorithm, then an error is raised [err:FORG0002].
+
+ If $base is not a valid URI according to the rules of the xs:anyURI data type, if it is not a suitable URI to use as input to the chosen resolution algorithm (for example, if it is a relative URI reference, if it is a non-hierarchic URI, or if it contains a fragment identifier), then an error is raised [err:FORG0002].
+
+ If the chosen resolution algorithm fails for any other reason then an error is raised [err:FORG0009].
+
+
Note:
+
+ Resolving a URI does not dereference it. This is merely a syntactic operation on two character strings.
+
+
+
+
Arguments and return type:
+
+
+ | Type |
+ Description |
+
+
+ | xs:string? |
+ $relative |
+
+
+ | xs:string |
+ $base |
+
+
+
Return type: xs:anyURI?
+
+
W3C Documentation reference
+