for (int i = 0; i < methodArgs.length; i++)
{
methodArgs[i] = XObject.create(args.elementAt(i));
}
ElemExsltFunction elemFunc = getFunction(extFunction.getFunctionName());
XPathContext context = exprContext.getXPathContext();
TransformerImpl transformer = (TransformerImpl)context.getOwnerObject();
// Reset the frame bottom before calling the EXSLT function.
if (callerTemplate != null)
elemFunc.setCallerFrameSize(callerTemplate.m_frameSize);
else
elemFunc.setCallerFrameSize(0);
elemFunc.execute(transformer, methodArgs);
XObject val = new XString(""); // value returned if no result element.
if (elemFunc.isResultSet())
{
val = elemFunc.getResult();
elemFunc.clearResult();
}
return val;
}
catch (TransformerException e)