-
Story
-
Resolution: Unresolved
-
Low
-
None
-
None
-
None
At present, the CpsPath grammar looks like:
( <absolute-path> | <descendant-path> ) [ <leaf-conditions> ] [ <text()-condition> ] [ <contains()-condition ] [ <ancestor-axis> ]
This allows for Cps Path queries such as:
- leaf- and contains-conditions:
//books[@title="Matilda"][contains(@title,"Mat")] - leaf- and text- and contains-conditions:
//books[@title="Matilda"]/title[text()="Matilda"][contains(@title,"Mat")]
This task is to check that allowed Cps Paths comply with the XPath specification. If not, the Cps Path grammar would need to be updated.
Here is a grammar for XPath 3.1: https://raw.githubusercontent.com/antlr/grammars-v4/master/xpath/xpath31/XPath31.g4