From a127ef55715b51a4e8b943104af2ebdc60733f0c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kim=20Nguy=E1=BB=85n?= Date: Mon, 2 Apr 2012 15:02:41 +0200 Subject: [PATCH] Add text() and node() tokens in the lexer to allow node test and text node test in XPath expression. --- src/ulexer.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ulexer.ml b/src/ulexer.ml index 05ab4ae..a7d75ed 100644 --- a/src/ulexer.ml +++ b/src/ulexer.ml @@ -186,7 +186,7 @@ let parse_char lexbuf base i = let rec token = lexer | [' ' '\t'] -> token lexbuf - | "and" | "not" | "or" (* | "text" | "node" *) + | "and" | "not" | "or" | "text()" | "node()" | "self" | "descendant" | "child" | "descendant-or-self" | "attribute" | "following-sibling" | "preceding-sibling" | "parent" | "ancestor" | "ancestor-or-self" | "preceding" | "following" -- 2.17.1