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

public final class FnDoc extends Object
Implements the XPath 3.1 fn:doc function.
  • Method Details

    • fnDoc

      public static IDocumentNodeItem fnDoc(@NonNull IStringItem documentUri, @NonNull DynamicContext context)
      Dynamically load the document associated with the URI, and return a IDocumentNodeItem containing the result.

      Based on the XPath 3.1 fn:doc function.

      Parameters:
      documentUri - the resource to load the data from
      context - the Metapath dynamic context
      Returns:
      the loaded document node item
    • fnDoc

      public static IDocumentNodeItem fnDoc(@NonNull IAnyUriItem documentUri, @NonNull DynamicContext context)
      Dynamically load the document associated with the URI, and return a IDocumentNodeItem containing the result.

      Based on the XPath 3.1 fn:doc function.

      Parameters:
      documentUri - the resource to load the data from
      context - the Metapath dynamic context
      Returns:
      the loaded document node item