pool = NamePool.getDefaultNamePool();
doc.setNamePool(pool);
}
Expression expression = Expression.make(str, new Saxon6Context(pool, resolver));
Context context = new Context();
context.setContextNode((NodeInfo)contextNode);
context.setPosition(1);
context.setLast(1);
return expression.evaluate(context);
}
catch (final Exception e)
{