List applyXPath(List nodes, String xpathString, Object namespaces) throws TemplateModelException { XPathEx xpath = null; try { synchronized (xpathCache) { xpath = (XPathEx) xpathCache.get(xpathString); if (xpath == null) { xpath = createXPathEx(xpathString); xpathCache.put(xpathString, xpath); } } return xpath.selectNodes(nodes, (NamespaceContext) namespaces); } catch (Exception e) { throw new TemplateModelException("Could not evaulate XPath expression " + xpathString, e); } }
List applyXPath(List nodes, String xpathString, Object namespaces) throws TemplateModelException { XPathEx xpath = null; try { synchronized (xpathCache) { xpath = (XPathEx) xpathCache.get(xpathString); if (xpath == null) { xpath = createXPathEx(xpathString); xpathCache.put(xpathString, xpath); } } return xpath.selectNodes(nodes, (NamespaceContext) namespaces); } catch (Exception e) { throw new TemplateModelException("Could not evaulate XPath expression " + xpathString, e); } }
List applyXPath(List nodes, String xpathString, Object namespaces) throws TemplateModelException { XPathEx xpath = null; try { synchronized (xpathCache) { xpath = (XPathEx) xpathCache.get(xpathString); if (xpath == null) { xpath = createXPathEx(xpathString); xpathCache.put(xpathString, xpath); } } return xpath.selectNodes(nodes, (NamespaceContext) namespaces); } catch (Exception e) { throw new TemplateModelException("Could not evaulate XPath expression " + xpathString, e); } }
List applyXPath(List nodes, String xpathString, Object namespaces) throws TemplateModelException { XPathEx xpath = null; try { synchronized(xpathCache) { xpath = (XPathEx)xpathCache.get(xpathString); if (xpath == null) { xpath = createXPathEx(xpathString); xpathCache.put(xpathString, xpath); } } return xpath.selectNodes(nodes, (NamespaceContext)namespaces); } catch(Exception e) { throw new TemplateModelException("Could not evaulate XPath expression " + xpathString, e); } }