// otherwise, create a new context referring to an empty document
XPathContext context = new XPathContext(false);
VariableStack variableStack = new JSTLVariableStack(pageContext);
context.setVarStack(variableStack);
int dtm = context.getDTMHandleFromNode(newEmptyDocument());
context.pushCurrentNodeAndExpression(dtm, dtm);
return context;
}
/**
* Create a new empty document.