public class Rewriter extends Object
| Constructor and Description |
|---|
Rewriter() |
| Modifier and Type | Method and Description |
|---|---|
Pair<String,org.dom4j.Node> |
rewriteExpression(String expr,
XVariableContext varContext,
XNamespaceContext nsContext)
Rewrite the XPath expression such that at least one Node-valued
variable is replaced by the outer-most context ".".
|
public Pair<String,org.dom4j.Node> rewriteExpression(String expr, XVariableContext varContext, XNamespaceContext nsContext) throws XPathException
expr - XPath expressionvarContext - context for variablesnsContext - context for namespacesXPathException - if no Node-valued variable that is a suitable
context is foundCopyright © 2015. All rights reserved.