I am using 2.3.1.
It appears that ElemApplyTemplate calls pushElemTemplateElement for the
childTemplates of "template", but not the template, itself.
I seemed to have gotten it to work by the mods shown below.
I have not been a xalan developer - is this the kind of thing that should
be submitted as a bug report?
Al Byers
/************ starting about line 410 in ElemApplyTemplate ******/
transformer.pushElemTemplateElement(template); //-amb, was null. Moved
from above.
// Fire a trace event for the template.
if (TransformerImpl.S_DEBUG)
transformer.getTraceManager().fireTraceEvent(template);
transformer.pushElemTemplateElement(null); //-amb
// And execute the child templates.
// Loop through the children of the template, calling execute on
// each of them.
for (ElemTemplateElement t = template.m_firstChild;
t != null; t = t.m_nextSibling)
{
xctxt.setSAXLocator(t);
transformer.setCurrentElement(t);
t.execute(transformer);
}
transformer.popElemTemplateElement(); //-amb
�
Al Byers
[EMAIL PROTECTED]