This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 4958 - [XQTS] Attribute tests in XQueryX have incorrect axis
Summary: [XQTS] Attribute tests in XQueryX have incorrect axis
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-17 17:08 UTC by Oliver Hallam
Modified: 2007-08-20 16:12 UTC (History)
0 users

See Also:


Attachments

Description Oliver Hallam 2007-08-17 17:08:25 UTC
This bug report applies to the following tests:
K2-Axes-86
K2-NameTest-32
K2-NameTest-64
K2-NameTest-65
K2-NameTest-71

The XQueryX conversion seems to convert <e a="foo">/attribute(a)
to

<xqx:pathExpr>
  <xqx:stepExpr>
    <xqx:filterExpr>
      <xqx:elementConstructor>
        <xqx:tagName>e</xqx:tagName>
        <xqx:attributeList>
          <xqx:attributeConstructor>
            <xqx:attributeName>a</xqx:attributeName>
            <xqx:attributeValue>foo</xqx:attributeValue>
          </xqx:attributeConstructor>
        </xqx:attributeList>
      </xqx:elementConstructor>
    </xqx:filterExpr>
  </xqx:stepExpr>
  <xqx:stepExpr>
    <xqx:xpathAxis>child</xqx:xpathAxis>
    <xqx:attributeTest>
      <xqx:attributeName>
        <xqx:QName>a</xqx:QName>
      </xqx:attributeName>
    </xqx:attributeTest>
  </xqx:stepExpr>
</xqx:pathExpr>

This should use the attribute axis, not the child axis, and causes problems in the tests listed above.
Comment 1 Andrew Eisenberg 2007-08-20 16:09:38 UTC
This problem has been fixed as you suggest. The version of XQTS_current.zip committed on Saturday reflects these changes.

Please close this bug report if you agree with this resolution.

Comment 2 Oliver Hallam 2007-08-20 16:12:53 UTC
Thanks