xpf.setXPathFunctionResolver(new JaxpFunctionResolver(ctx, oxpath20));
xpf.setXPathVariableResolver(new JaxpVariableResolver(ctx, oxpath20));
XPathEvaluator xpe = (XPathEvaluator) xpf.newXPath();
xpe.setNamespaceContext(oxpath20.namespaceCtx);
// Just checking that the expression is valid
XPathExpression expr = xpe.compile(((OXPath10Expression)cexp).xpath);
Object evalResult = expr.evaluate(ctx.getRootNode() == null ? DOMUtils.newDocument() : ctx.getRootNode(), type);
if (evalResult != null && __log.isDebugEnabled()) {
__log.debug("Expression " + cexp.toString() + " generated result " + evalResult
+ " - type=" + evalResult.getClass().getName());