Class FnDoc

    • Method Detail

      • fnDoc

        public static IDocumentNodeItem fnDoc​(@NonNull
                                              IStringItem uri,
                                              @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:
        uri - the resource to load the data from
        context - the Metapath dynamic context
        Returns:
        the loaded document node item