methodArgs[i] = XObject.create(args.elementAt(i));
}
ElemExsltFunction elemFunc = getFunction(funcName);
XPathContext context = exprContext.getXPathContext();
TransformerImpl transformer = (TransformerImpl)context.getOwnerObject();
elemFunc.execute(transformer, methodArgs);
VariableStack varStack = context.getVarStack();
XObject val = new XString(""); // value returned if no result element.
int resultIndex = elemFunc.getResultIndex();