}
out.xpath = xpathStr;
try {
__log.debug("Compiling expression " + xpathStr);
XPathFactoryImpl xpf = new net.sf.saxon.xpath.XPathFactoryImpl();
JaxpFunctionResolver funcResolver = new JaxpFunctionResolver(
_compilerContext, out, source.getNamespaceContext(), _bpelNS);
xpf.setXPathFunctionResolver(funcResolver);
JaxpVariableResolver varResolver = new JaxpVariableResolver(_compilerContext, out);
xpf.setXPathVariableResolver(varResolver);
XPathEvaluator xpe = (XPathEvaluator) xpf.newXPath();
xpe.setStaticContext(new SaxonContext(xpf.getConfiguration(), varResolver, funcResolver));
xpe.setXPathFunctionResolver(funcResolver);
xpe.setNamespaceContext(source.getNamespaceContext());
xpe.compile(xpathStr);
} catch (XPathExpressionException e) {
__log.debug(e);