Way back in April, I had a query on how to set a variable on a transformer
using APIs and the response I got which I've been using since was the
following piece of code
"VariableStack varstack =
context.getTransformer().getXPathContext().getVarStack();
QName qname = new QName("year");
XObject xobject = XObject.create(new Integer(500));
varstack.pushVariable(qname, xobject); "
But, just having moved to Xalan 2.2 D11, the pushVariable isn't supported
anymore and also VariableStack has been marked "for internal use only". Is
there an alternate way?
TIA,
Uma