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

public final class FnRoot extends Object
/** Implements fn:root functions.
  • Method Details

    • fnRoot

      @NonNull public static INodeItem fnRoot(@NonNull INodeItem arg)
      Get the root of the tree to which the provided node argument belongs.

      Based on the XPath 3.1 fn:root function.

      Parameters:
      arg - the node item to get the namespace URI for
      Returns:
      the root of the tree to which the provided node argument belongs