liaojinxing / firepath

Automatically exported from code.google.com/p/firepath
GNU General Public License v3.0
0 stars 0 forks source link

AbbreviatedStep should not be followed by Predicate #46

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Strings such as
"/node/..[@attr='val']" or "/node/.[@attr='val']"
are accepted and interpreted as 
"/node/parent::node()[@attr='val']" and "/node/self::node()[@attr='val']"

According to the recommendation (http://www.w3.org/TR/xpath/#node-tests) the 
first 2 strings should not be accepted.

Grammars related to this issue:

AbbreviatedStep    ::=      '.' 
            | '..'

Step       ::=      AxisSpecifier NodeTest Predicate*   
            | AbbreviatedStep

Original issue reported on code.google.com by digenish...@gmail.com on 29 Nov 2013 at 3:37