Evaluator eval = null;
if (contextNode != null) {
eval = new DefaultEvaluator(fDynamicContext, domDoc);
// change focus to the top most element
ResultSequence nodeEvalRS = ResultSequenceFactory.create_new();
nodeEvalRS.add(new ElementType(contextNode,
fDynamicContext.node_position(contextNode)));
if (xPathDefaultNamespace != null) {
fDynamicContext.add_namespace(null, xPathDefaultNamespace);
}