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

[Bug 1527] New: Grammar for abbreviated step

From: <bugzilla@wiggum.w3.org>
Date: Sat, 09 Jul 2005 19:12:53 +0000
To: public-qt-comments@w3.org
Message-Id: <E1DrKkv-00047x-C1@wiggum.w3.org>


           Summary: Grammar for abbreviated step
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XPath
        AssignedTo: chamberl@almaden.ibm.com
        ReportedBy: chamberl@almaden.ibm.com
         QAContact: public-qt-comments@w3.org

The syntax for an abbreviated step now looks like this:

AbbrevForwardStep ::= "@"? NodeTest
NodeTest ::= KindTest | NameTest

This allows users to write silly things like this:


which looks for a comment node on the attribute axis.
Of course, there is nothing on the attribute axis but attribute nodes, so there 
is no need for a KindTest following "@" in an abbreviated step.

We could eliminate this kind of silliness by changing the grammar as follows:

AbbrevForwardStep ::= NodeTest | "@" NameTest
NodeTest ::= KindTest | NameTest
Received on Saturday, 9 July 2005 19:12:57 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:25 UTC