java.lang.Object
dev.metaschema.core.metapath.function.library.FnBaseUri

public final class FnBaseUri extends Object
Implements the XPath 3.1 fn:base-uri functions.

Since a node doesn't have a base URI in Metaschema, this is an alias for the document-uri function, since the node's base URI is the same as the document's URI.

  • Method Details

    • fnBaseUri

      @Nullable public static IAnyUriItem fnBaseUri(INodeItem nodeItem)
      Get the base URI for the provided nodeItem.

      Based on the XPath 3.1 fn:base-uri function.

      Parameters:
      nodeItem - the node to get the base URI from
      Returns:
      the base URI, or null if the node is either null or doesn't have a base URI