resolve-uri($relative as xs:string?) ➔ xs:anyURI?
Resolves a relative URI against the base URI from the static context.
A relative URI reference to be resolved against the static base URI from the context
resolve-uri($relative as xs:string?, $base as xs:string) ➔ xs:anyURI?
Resolves a relative URI against a specified base URI.
A relative URI reference to be resolved against the specified base URI
The base URI used for resolving the relative reference
Links to W3C specifications
Available in XPath 2.0, XSLT 2.0, XQuery 1.0, and later versions. Available in all Saxon editions.
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.