Class UnparsedText

    • Constructor Detail

      • UnparsedText

        public UnparsedText()
    • Method Detail

      • call

        public ZeroOrOne<StringValue> call​(XPathContext context,
                                           Sequence[] arguments)
                                    throws XPathException
        Evaluate the expression
        Specified by:
        call in interface Callable
        Specified by:
        call in interface Function
        Parameters:
        context - the dynamic evaluation context
        arguments - the values of the arguments, supplied as SequenceIterators
        Returns:
        the result of the evaluation, in the form of a SequenceIterator
        Throws:
        XPathException - if a dynamic error occurs during the evaluation of the expression
      • process

        public void process​(Outputter destination,
                            XPathContext context,
                            Sequence[] arguments)
                     throws XPathException
        Description copied from interface: PushableFunction
        Evaluate the function in "push" mode
        Specified by:
        process in interface PushableFunction
        Parameters:
        destination - the destination for the function result
        context - the dynamic evaluation context
        arguments - the supplied arguments to the function
        Throws:
        XPathException - if a dynamic error occurs during the evaluation
      • evalUnparsedText

        public static StringValue evalUnparsedText​(StringValue hrefVal,
                                                   java.lang.String base,
                                                   java.lang.String encoding,
                                                   XPathContext context)
                                            throws XPathException
        Evaluation of the unparsed-text function
        Parameters:
        hrefVal - the relative URI
        base - the base URI
        encoding - the encoding to be used
        context - dynamic evaluation context
        Returns:
        the result of the function
        Throws:
        XPathException - if evaluation fails
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception