Class XsdValidatorEE

All Implemented Interfaces:
Callable, IFunctionWithRetainedParameterNames, FunctionItem, GroundedValue, Item, Sequence

public class XsdValidatorEE extends XsdValidator
XsdValidatorEE provides the true implementation of the 4.0 fn:xsd-validator function. The "front end" of the function is in XsdValidator, which has a dummy implementation for use in HE/PE where no XSD schema support is available.
  • Constructor Details

    • XsdValidatorEE

      public XsdValidatorEE()
  • Method Details

    • call

      public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException
      Evaluate this function call
      Specified by:
      call in interface Callable
      Overrides:
      call in class XsdValidator
      Parameters:
      context - The XPath dynamic evaluation context
      arguments - The values of the arguments to the function call. Each argument value (which is in general a sequence) is supplied in the form of an iterator over the items in the sequence. If required, the supplied sequence can be materialized by calling, for example, new SequenceExtent(arguments[i]). If the argument is always a singleton, then the single item may be obtained by calling arguments[i].next(). The implementation is not obliged to read all the items in each SequenceIterator if they are not required to compute the result; but if any SequenceIterator is not read to completion, it is good practice to call its close() method.
      Returns:
      the results of the function.
      Throws:
      XPathException - if a dynamic error occurs during evaluation of the function. The Saxon run-time code will add information about the error location.