Class BaseUriFunctionIterator

All Implemented Interfaces:
Serializable, LocalRuntimePlan<Item>

public class BaseUriFunctionIterator extends LocalFunctionCallIterator
Implementation of the fn:base-uri function according to XPath and XQuery Functions and Operators 3.1 (https://www.w3.org/TR/xpath-functions-31/#func-base-uri) and the XDM 3.1 base-uri accessor. XDM 3.1 Section 5.2 base-uri Accessor. dm:base-uri($n as node()) as xs:anyURI? "The dm:base-uri accessor returns the value of the base-uri property of the node, if it has one; otherwise it returns the empty sequence." Function signatures (Functions and Operators 3.1, fn:base-uri):
  • fn:base-uri() as xs:anyURI?
  • fn:base-uri($arg as node()?) as xs:anyURI?
Rules:
  • If the argument is omitted, it defaults to the context item (.).
  • If the argument is supplied and is the empty sequence, the function returns the empty sequence.
  • Otherwise, the function returns dm:base-uri($arg).
See Also:
  • Constructor Details

  • Method Details

    • createNativeCursor

      public Cursor<Item> createNativeCursor(DynamicContext context)
      Description copied from interface: LocalRuntimePlan
      Creates an independent cursor for one native local evaluation.
      Parameters:
      context - the dynamic context for that evaluation
      Returns:
      an unopened cursor