home contribute faq download

FunctX XSLT Functions

fn:static-base-uri

The base URI from the static context

Google
Webdatypic.com

Description

The fn:static-base-uri function returns the base URI of the static context. This may have been set by the processor outside the scope of the query, or it may have been declared in the query prolog.

The base URI of the static context is used for constructed elements, and for resolving relative URIs when no other base URI is available. It is not the same as the base URI of any given element or document node.

This description is © Copyright 2007, Priscilla Walmsley. It is excerpted from the book XQuery by Priscilla Walmsley, O'Reilly, 2007. For a complete explanation of this function, please refer to Appendix A of the book.

Arguments and Return Type

NameType
return value xs:anyURI?

Examples

XPath ExampleResultsExplanation
static-base-uri()
http://datypic.com/prod
for example, if that is the base URI of the static context

See Also

fn:base-uriThe base URI of a node

History

Published OnLast UpdatedContributor(s)
2006-06-272007-02-26W3C, XQuery 1.0 and XPath 2.0 Functions and Operators, http://www.w3.org/TR/xpath-functions/
Datypic XSLT Services

Recommended Reading:

XQuery