This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Comment from Martin Honnen <martin.honnen@gmx.de> on public-qt-comments@w3.org See https://lists.w3.org/Archives/Public/public-qt-comments/2017Jul/0038.html The XPath 3.1 spec for the "?" lookup distinguishes between https://www.w3.org/TR/xpath-31/#id-unary-lookup and https://www.w3.org/TR/xpath-31/#id-postfix-lookup. The section about the unary lookup in the examples section gives some example which for me seem to examples of an unary lookup, but also three examples - $m?* - [1, 2, 5, 7]?* - [[1, 2, 3], [4, 5, 6]]?* which, for me, seem to be examples of the postfix lookup, as in $m?* we have a variable reference followed by "?*", in [1, 2, 5, 7]?* we have a https://www.w3.org/TR/xpath-31/#prod-xpath31-SquareArrayConstructor followed by "?*" and in the last example [[1, 2, 3], [4, 5, 6]]?* there is a further square array constructor followed by "?*". All these seem to originate from the grammar production [49] PostfixExpr ::= PrimaryExpr (Predicate | ArgumentList | Lookup)* Have I misread the grammar production rules or are the examples in the wrong section?
The Working Group agreed that this is an editorial bug and the proposed fix should be added to the XPath 3.1 errata document.
This has been resolved in the errata document: https://www.w3.org/XML/2017/qt-errata/xpath-31-errata.html#E4