fn:static-base-uri

This function returns the value of the static base URI property from the static context.

Signature

fn:static-base-uri() as xs:anyURI?

Properties

This function is deterministic, context-dependent, and focus-independent. It depends on static base URI.

Rules

The function returns the value of the static base URI property from the static context. If the property is absent, the empty sequence is returned.

Components of the static context are described in Static Context .

Notes

XQuery 3.0 and XSLT 3.0 give an implementation freedom to use different base URIs during the static analysis phase and the dynamic evaluation phase, that is, for compile-time and run-time resources respectively. This is appropriate when the implementation allows the output of static analysis (a "compiled" query or stylesheet) to be deployed for execution to a different location from the one where static analysis took place. In this situation, the fn:static-base-uri function should return a URI suitable for locating resources needed during dynamic evaluation.