The resolve-uri() function converts a relative URI into an absolute URI by resolving it against a specified base URI.
Argument | Data Type | Meaning |
---|---|---|
relative-uri | xs:string | The URI to be resolved. If this is an absolute URI, it is returned unchanged; otherwise , it is resolved against the specified base URI |
base-uri (optional) | xs:string | The base URI against which the relative URI is to be resolved. If this argument is omitted, the base URI from the static context is used (in XSLT, this is the base URI of the element in the stylesheet). This must be an absolute URI |
Result | xs:string | The resulting absolute URI |