Class VendorFunctionSetHE.HasLocalNamespaces

  • All Implemented Interfaces:
    Callable, Function, GroundedValue, Item, Sequence
    Enclosing class:
    VendorFunctionSetHE

    public static class VendorFunctionSetHE.HasLocalNamespaces
    extends SystemFunction
    Implement saxon:has-local-namespaces. The function takes an element node as input and returns true if (a) the element is parentless, or (b) the parent is a document node, or (c) the element has namespace declarations or undeclarations that differ from those of the parent element (that is, if its in-scope namespace bindings are different from those of the parent element).

    This function is provided for use by the XSLT-compiler-in-XSLT, so that it can decide efficiently whether to generate an "ns" element containing namespace bindings in the SEF file.

    • Constructor Detail

      • HasLocalNamespaces

        public HasLocalNamespaces()
    • Method Detail

      • call

        public BooleanValue 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