IndependentContext env = staticContext.copy();
env.setFunctionLibrary(getExecutable().getFunctionLibrary());
pexpr.expStaticContext = env;
pexpr.variables = new XPathVariable[10];
for (int i=1; i<10; i++) {
pexpr.variables[i-1] = env.declareVariable("", "p"+i);
}
Expression expr;
try {
expr = ExpressionTool.make(exprText, env, 0, Token.EOF, 1, false);