W3C home > Mailing lists > Public > public-qt-comments@w3.org > July 2007

[Bug 4868] XPath abbreviations for / and // syntactically incorrect

From: <bugzilla@wiggum.w3.org>
Date: Thu, 19 Jul 2007 07:03:26 +0000
To: public-qt-comments@w3.org
Message-Id: <E1IBQ2o-0008Sj-Ll@wiggum.w3.org>


           Summary: XPath abbreviations for / and // syntactically incorrect
           Product: XPath / XQuery / XSLT
           Version: Recommendation
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P4
         Component: XPath
        AssignedTo: chamberl@almaden.ibm.com
        ReportedBy: ryan.gustafson@gmail.com
         QAContact: public-qt-comments@w3.org

In the version found at http://www.w3.org/TR/xpath20/#id-path-expressions

The statements which indicate to sometimes abbreviate / as
fn:root(self::node()) treat as document-node()/ and // as fn:root(self::node())
treat as document-node()/descendant-or-self::node() are not syntactically

My own parser, as well as the parser at
http://www.w3.org/2006/11/applets/xpathApplet.html refuse to parse such input.

The Formal Semantics http://www.w3.org/TR/xquery-semantics/#id-path-expressions
indicate a parenthesized version of the same construct.

Are the Formal Semantics are correct and XPath needs to be corrected?
Received on Thursday, 19 July 2007 07:03:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:19 UTC