Skip to main content

Module node

Module node 

Source
Expand description

XPath 2.0 node functions.

This module implements node functions from the XPath 2.0 specification:

  • fn:name
  • fn:local-name
  • fn:namespace-uri
  • fn:node-name
  • fn:nilled
  • fn:base-uri
  • fn:document-uri
  • fn:lang
  • fn:root
  • fn:id

Functions§

base_uri
Implements fn:base-uri - returns the base URI of a node.
document_uri
Implements fn:document-uri - returns the document URI of a document node.
id
Implements fn:id - selects elements by their ID attribute value.
lang
Implements fn:lang - tests whether a node’s language matches.
local_name
Implements fn:local-name - returns the local name of a node.
name
Implements fn:name - returns the qualified name of a node.
namespace_uri
Implements fn:namespace-uri - returns the namespace URI of a node.
nilled
Implements fn:nilled - returns whether an element is nilled (xsi:nil).
node_name
Implements fn:node-name - returns the QName of a node.
root
Implements fn:root - returns the root of the tree containing the node.