/src/main/java/org/htmlunit/html/xpath/XPathHelper.java
else { }xpathExpressionContext = ( ( Document) contextNode).getDocumentElement( ) ;
xpathExpressionContext = ( ( Document ) contextNode ) .getDocumentElement ( ) ; } else {
} private static XObject evaluateXPath(final DomNode contextNode, final String str, final PrefixResolver prefixResolver) throws TransformerException { final XPathContext xpathSupport = new XPathContext(); final Node xpathExpressionContext; if (contextNode.getNodeType() == Node.DOCUMENT_NODE) { <extra_id_0> xpathExpressionContext = contextNode; } PrefixResolver resolver = prefixResolver; if (resolver == null) { resolver = new HtmlUnitPrefixResolver(xpathExpressionContext); }