Example #1
0
 /**
  * Evaluate the expression
  *
  * @param arguments the values of the arguments, supplied as SequenceIterators
  * @param context the dynamic evaluation context
  * @return the result of the evaluation, in the form of a SequenceIterator
  * @throws net.sf.saxon.trans.XPathException if a dynamic error occurs during the evaluation of
  *     the expression
  */
 public SequenceIterator call(SequenceIterator[] arguments, XPathContext context)
     throws XPathException {
   StringValue hrefVal = (StringValue) arguments[0].next();
   String encoding = (getNumberOfArguments() == 2 ? arguments[1].next().getStringValue() : null);
   return Value.asIterator(evalUnparsedText(hrefVal, encoding, context));
 }