Class WithPedigree

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

    public class WithPedigree
    extends SystemFunction
    The saxon:with-pedigree function, new in Saxon 9.9.

    The function is applied to a map or array, and it returns a map or array, with the same content, but with a different implementation such that all downward selections from the map/array to contained maps and arrays maintain information about the selection route, which can be used to get information about the containing maps and arrays in a JSON-like tree.

    • Constructor Detail

      • WithPedigree

        public WithPedigree()
    • Method Detail

      • call

        public Item 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
      • makeRootWithPedigree

        public static Function makeRootWithPedigree​(Item root)