Node Functions
doc
doc($uri as xs:string) as document-node()
Loads and parses an XML document from the given URI. Results are cached.
doc-available
doc-available($uri as xs:string) as xs:boolean
Returns true if a document is available at the given URI.
in-scope-prefixes
in-scope-prefixes($element as element()) as xs:string*
Returns all namespace prefixes in scope for the given element.
lang
lang($testlang as xs:string) as xs:boolean
lang($testlang as xs:string, $node as node()) as xs:boolean
Returns true if the language of the context node (or $node) matches $testlang.
local-name
local-name() as xs:string
local-name($arg as node()?) as xs:string
Returns the local name of the context node or $arg.
local-name(<book/>) → "book"name
name() as xs:string
name($arg as node()?) as xs:string
Returns the qualified name (prefix:local) of the context node or $arg.
namespace-uri
namespace-uri() as xs:anyURI
namespace-uri($arg as node()?) as xs:anyURI
Returns the namespace URI of the context node or $arg.
namespace-uri-for-prefix
namespace-uri-for-prefix($prefix as xs:string, $element as element()) as xs:anyURI?
Returns the namespace URI bound to the given prefix on the element.
namespace-uri-from-QName
namespace-uri-from-QName($arg as xs:QName?) as xs:anyURI?
Returns the namespace URI from a QName.
local-name-from-QName
local-name-from-QName($arg as xs:QName?) as xs:NCName?
Returns the local name from a QName.
prefix-from-QName
prefix-from-QName($arg as xs:QName?) as xs:NCName?
Returns the prefix from a QName.
QName
QName($namespace as xs:string, $qualifiedName as xs:string) as xs:QName
Constructs a QName from a namespace URI and a qualified name string.
resolve-QName
resolve-QName($qname as xs:string, $element as element()) as xs:QName
Resolves a lexical QName against the in-scope namespaces of an element.
resolve-uri
resolve-uri($relative as xs:string) as xs:anyURI
resolve-uri($relative as xs:string, $base as xs:string) as xs:anyURI
Resolves a relative URI against a base URI.
root
root() as node()
root($arg as node()?) as node()?
Returns the root node of the tree containing the context node or $arg.