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

[Bug 12672] New: Abbreviated Syntax normalization for AttributeTest

From: <bugzilla@jessica.w3.org>
Date: Tue, 17 May 2011 17:02:51 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-12672-523@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12672

           Summary: Abbreviated Syntax normalization for AttributeTest
           Product: XPath / XQuery / XSLT
           Version: 2nd Edition Recommendation
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Formal Semantics
        AssignedTo: jmdyck@ibiblio.org
        ReportedBy: w3c-bugs@lumpn.de
         QAContact: public-qt-comments@w3.org


Please correct me if I'm mistaken but I don't see how the abbreviated axis
normalization for attribute related node tests is reflected in the formal
semantics.

In XPath an omitted axis specifier implies the child axis, but if there is a
attribute related node test the attribute axis is implied. In the formal
semantics it seems to always imply the child axis.

Following are the relevant sections of the mentioned documents (badly quoted
for the lack of formatting options):


-- Section 3.2.4 (Abbreviated Syntax) of both XPath 2.0 and XQuery 1.0 --

2. If the axis name is omitted from an axis step, the default axis is child
unless the axis step contains an AttributeTest or SchemaAttributeTest; in that
case, the default axis is attribute.


-- Section 4.2.4 (Abbreviated Syntax) of Formal Semantics --

 [NodeTest]Axis 
       ==       
 child::NodeTest



Please note that this is not about the attribute axis abbreviation "@" but the
attribute node test "attribute()".

Best regards,
  Jonas Bötel

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 17 May 2011 17:02:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:12 GMT