<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>4958</bug_id>
          
          <creation_ts>2007-08-17 17:08:25 +0000</creation_ts>
          <short_desc>[XQTS] Attribute tests in XQueryX have incorrect axis</short_desc>
          <delta_ts>2007-08-20 16:12:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Oliver Hallam">oliver</reporter>
          <assigned_to name="Andrew Eisenberg">andrew.eisenberg</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>16179</commentid>
    <comment_count>0</comment_count>
    <who name="Oliver Hallam">oliver</who>
    <bug_when>2007-08-17 17:08:25 +0000</bug_when>
    <thetext>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 &lt;e a=&quot;foo&quot;&gt;/attribute(a)
to

&lt;xqx:pathExpr&gt;
  &lt;xqx:stepExpr&gt;
    &lt;xqx:filterExpr&gt;
      &lt;xqx:elementConstructor&gt;
        &lt;xqx:tagName&gt;e&lt;/xqx:tagName&gt;
        &lt;xqx:attributeList&gt;
          &lt;xqx:attributeConstructor&gt;
            &lt;xqx:attributeName&gt;a&lt;/xqx:attributeName&gt;
            &lt;xqx:attributeValue&gt;foo&lt;/xqx:attributeValue&gt;
          &lt;/xqx:attributeConstructor&gt;
        &lt;/xqx:attributeList&gt;
      &lt;/xqx:elementConstructor&gt;
    &lt;/xqx:filterExpr&gt;
  &lt;/xqx:stepExpr&gt;
  &lt;xqx:stepExpr&gt;
    &lt;xqx:xpathAxis&gt;child&lt;/xqx:xpathAxis&gt;
    &lt;xqx:attributeTest&gt;
      &lt;xqx:attributeName&gt;
        &lt;xqx:QName&gt;a&lt;/xqx:QName&gt;
      &lt;/xqx:attributeName&gt;
    &lt;/xqx:attributeTest&gt;
  &lt;/xqx:stepExpr&gt;
&lt;/xqx:pathExpr&gt;

This should use the attribute axis, not the child axis, and causes problems in the tests listed above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16223</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2007-08-20 16:09:38 +0000</bug_when>
    <thetext>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.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16224</commentid>
    <comment_count>2</comment_count>
    <who name="Oliver Hallam">oliver</who>
    <bug_when>2007-08-20 16:12:53 +0000</bug_when>
    <thetext>Thanks</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>