The base-uri() function returns either the base URI from the static context of the XPath expression, or the base URI of a specific node in a document.
Argument | Data Type | Meaning |
---|---|---|
input-node (optional) | node() | The node whose base URI is required |
Result | xs:string | If the function has no arguments, it returns the base URl from the static context of the XPath expression. If an input-node is supplied, the function returns the base URI of that node |