fn:resolve-uri
resolve-uri($relative as xs:string?) ➔ xs:anyURI?
Resolves a relative URI against the base URI from the static context.
Arguments | |||
| $relative | xs:string? | A relative URI reference to be resolved against the static base URI from the context |
Result | xs:anyURI? |
resolve-uri($relative as xs:string?, $base as xs:string) ➔ xs:anyURI?
Resolves a relative URI against a specified base URI.
Arguments | |||
| $relative | xs:string? | A relative URI reference to be resolved against the specified base URI |
| $base | xs:string | The base URI used for resolving the relative reference |
Result | xs:anyURI? |
Namespace
http://www.w3.org/2005/xpath-functions
Links to W3C specifications
XPath 3.1 Functions and Operators
Notes on the Saxon implementation
The Saxon implementation recognizes the "jar:file:" URI scheme originally defined by Sun, which was never officially registered and which does not conform to RFC 2396. Technically, because these are not legal URIs, it is non-conformant to accept them, but Saxon does so in the interests of usability.
Saxon does NOT, however, accept Windows file names as URIs.