int paramReferenceContext = -1;
for (int i = 0; i < n; i++)
{
vars.setSearchStart(paramDeclareContext);
ElemWithParam xslParamElement = xslCallTemplateElement.getParamElem(i);
// Get the argument value as either an expression or
// a result tree fragment.
XObject var;
XPath param = xslParamElement.getSelect();
if (null != param)
{
var = param.execute(getXPathContext(), sourceNode, xslParamElement);
}
else if (null == xslParamElement.getFirstChild())
{
var = XString.EMPTYSTRING;
}
else
{
// Use result tree fragment
DocumentFragment df = transformToRTF(xslParamElement, sourceNode,
mode);
var = new XRTreeFrag(df);
}
vars.setSearchStart(paramReferenceContext);
vars.pushVariableArg(new Arg(xslParamElement.getName(), var, true));
// m_newVars.addElement(new Arg(xslParamElement.getName(), var, true));
}
// int nNew = m_newVars.size();
//