diff options
author | Anthony Ramine <[email protected]> | 2010-12-07 11:28:33 +0100 |
---|---|---|
committer | Lars Thorsen <[email protected]> | 2011-11-11 11:58:43 +0100 |
commit | 3eaca03e5c07429fc82fde26dc0fb3020b022be0 (patch) | |
tree | 9772e1588d09ebb5f17122eef331cb16bd887f19 | |
parent | 3979cefe5310319d6c7a8c57111c02d5e221486f (diff) | |
download | otp-3eaca03e5c07429fc82fde26dc0fb3020b022be0.tar.gz otp-3eaca03e5c07429fc82fde26dc0fb3020b022be0.tar.bz2 otp-3eaca03e5c07429fc82fde26dc0fb3020b022be0.zip |
Fix path filters
-rw-r--r-- | lib/xmerl/src/xmerl_xpath.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/xmerl/src/xmerl_xpath.erl b/lib/xmerl/src/xmerl_xpath.erl index e53d105ce7..b23a659ed2 100644 --- a/lib/xmerl/src/xmerl_xpath.erl +++ b/lib/xmerl/src/xmerl_xpath.erl @@ -333,10 +333,10 @@ eval_path(rel, PathExpr, C = #xmlContext{}) -> Context = C#xmlContext{nodeset = NodeSet}, S = #state{context = Context}, path_expr(PathExpr, S); -eval_path(filter, {PathExpr, PredExpr}, C = #xmlContext{}) -> +eval_path(filter, {PathExpr, {pred, Pred}}, C = #xmlContext{}) -> S = #state{context = C}, - S1 = path_expr(PathExpr, S), - pred_expr(PredExpr, S1). + S1 = match_expr(PathExpr, S), + eval_pred(Pred, S1). eval_primary_expr(PrimExpr, S = #state{context = Context}) -> %% NewNodeSet = xmerl_xpath_pred:eval(FC, Context), |