[Bug 12672] New: Abbreviated Syntax normalization for AttributeTest

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 UTC