Class InScopeNamespacesFn

  • All Implemented Interfaces:
    Callable, Function, GroundedValue, Item, Sequence

    public class InScopeNamespacesFn
    extends SystemFunction
    Implementation of the saxon:in-scope-namespaces extension function. Introduced in 10.0. Returns a map of prefixes to URIs representing the in-scope namespaces of a supplied element node. saxon:in-scope-namespaces($E) is equivalent to map:merge(in-scope-prefixes($E) ! map{., namespace-uri-for-prefix(., $E)}), but more efficient.
    • Constructor Detail

      • InScopeNamespacesFn

        public InScopeNamespacesFn()
    • Method Detail

      • call

        public ZeroOrOne<MapItem> call​(XPathContext context,
                                       Sequence[] arguments)
                                throws XPathException
        Description copied from interface: Function
        Invoke the function
        Parameters:
        context - the XPath dynamic evaluation context
        arguments - the actual arguments to be supplied
        Returns:
        the result of invoking the function
        Throws:
        XPathException - if a dynamic error occurs within the function