Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. Understanding Data Types and Field Properties
  3. Designing Processes
  4. Using and Displaying Data
  5. Designing Guides
  6. Designing Process Objects
  7. Designing Service Connectors
  8. Using App Connections
  9. System Services, Listeners and Connectors
  10. Designing Human Tasks

Design

Design

static-base-uri

static-base-uri

The static-base-uri function in XQuery returns the static base URI of the query or module in which it is called. This is the base URI that was statically assigned, often the location of the query file or module, and is used as the default base for resolving relative URIs in the query.

Syntax

fn:static-base-uri()

Return Value

  • Returns an
    xs:anyURI
    representing the static base URI of the module or query.
  • Returns an empty sequence if no static base URI is available. For example, in interactive sessions without a defined static base URI.

Examples

The following table lists some sample values and return values:
SAMPLE FUNCTION
OUTPUT
fn:static-base-uri()
"http://example.com/queries/myquery.xq"
fn:static-base-uri()
(in an environment without static base URI)
()

Additional information

  • The static base URI is generally set by the processor based on where the query or module is stored.
  • It differs from
    base-uri()
    which is dynamic and context-dependent.
  • Useful for resolving relative URIs in a stable, fixed way during query compilation or execution.

0 COMMENTS

We’d like to hear from you!