Class ReplaceWith

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

    public class ReplaceWith
    extends RegexFunction
    This class implements the saxon:replace-with() function for replacing substrings that match a regular expression by means of a callback to a user-supplied function

    The function is obsolescent: use fn:replace with the action parameter in preference.

    • Constructor Detail

      • ReplaceWith

        public ReplaceWith()
    • Method Detail

      • call

        public StringValue call​(XPathContext context,
                                Sequence[] arguments)
                         throws XPathException
        Evaluate the expression
        context - the dynamic evaluation context
        arguments - the values of the arguments, supplied as SequenceIterators
        the result of the evaluation, in the form of a SequenceIterator
        XPathException - if a dynamic error occurs during the evaluation of the expression