summaryrefslogtreecommitdiff
path: root/xpath.h
diff options
context:
space:
mode:
Diffstat (limited to 'xpath.h')
-rw-r--r--xpath.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/xpath.h b/xpath.h
index c0cf81d0..e8390f2c 100644
--- a/xpath.h
+++ b/xpath.h
@@ -734,6 +734,11 @@ public:
return temp;
}
+ static void eval(value_t& result, const string& _expr,
+ document_t * document, scope_t * scope = NULL) {
+ xpath_t temp(_expr);
+ temp.calc(result, document->top, scope);
+ }
static value_t eval(const string& _expr, document_t * document,
scope_t * scope = NULL) {
xpath_t temp(_expr);