[Bug 29655] New: [XP31] Ambiguous parse for /[x]

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29655

            Bug ID: 29655
           Summary: [XP31] Ambiguous parse for /[x]
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XPath 3.1
          Assignee: jonathan.robie@gmail.com
          Reporter: mike@saxonica.com
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

In XPath 3.0, the expression /[x] parsed unambiguously, and selected the root
node provided it had a child element named x.

In XPath 3.1, the expression becomes ambiguous, and the leading-lone-slash rule
says it should be parsed as a path expression in which the rhs is an array
constructor. This is both incompatible with the XPath 3.0 interpretation, and
comparatively useless.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 20 May 2016 20:55:36 UTC