W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2016

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

From: <bugzilla@jessica.w3.org>
Date: Fri, 20 May 2016 20:55:33 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29655-523@http.www.w3.org/Bugs/Public/>
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

This archive was generated by hypermail 2.3.1 : Friday, 20 May 2016 20:55:37 UTC