* XPath parser: fixing lexical issues cornercases
* Some complexities in Section 3.7 Lexical Structure of XPath 1.0 spec * There used to be some cornercases where function-names could not be used as nodes * For example, `node()` is a nodetest, so `/node/` caused an error. * In the grammar these include: axisnames, nodetests, functionnames * The NCNames vs functionnames is now impölemented according to the lexical structure section
This commit is contained in:
parent
f1300d7a12
commit
a51abd0063
9 changed files with 357 additions and 138 deletions
|
|
@ -124,6 +124,7 @@ typedef struct xpath_tree xpath_tree;
|
|||
* Prototypes
|
||||
*/
|
||||
char* axis_type_int2str(int axis_type);
|
||||
int axis_type_str2int(char *name);
|
||||
char* xpath_tree_int2str(int nodetype);
|
||||
int xpath_tree_print_cb(cbuf *cb, xpath_tree *xs);
|
||||
int xpath_tree_print(FILE *f, xpath_tree *xs);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue