Class NewElement

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

public class NewElement extends SystemFunction
Implements the saxon:new-text() function. Creates a new text node.
  • Constructor Details Link icon

    • NewElement Link icon

      public NewElement()
  • Method Details Link icon

    • call Link icon

      public NodeInfo call(XPathContext context, Sequence[] arguments) throws XPathException
      Evaluate this function call
      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 a sequence.
      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.