<?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>29190</bug_id>
          
          <creation_ts>2015-10-09 14:11:18 +0000</creation_ts>
          <short_desc>[QT3TS] K2-Axes-54</short_desc>
          <delta_ts>2015-11-04 10:29:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQuery 3 &amp; XPath 3 Test Suite</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>INVALID</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="Debbie Lockett">debbie</reporter>
          <assigned_to name="O&apos;Neil Delpratt">oneil</assigned_to>
          <cc>debbie</cc>
    
    <cc>mike</cc>
          
          <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>123632</commentid>
    <comment_count>0</comment_count>
    <who name="Debbie Lockett">debbie</who>
    <bug_when>2015-10-09 14:11:18 +0000</bug_when>
    <thetext>XQuery 3.0 includes the error:
XQST0134: XQuery 3.0 does not support the namespace axis.
(With generalized wording in the XQuery 3.1 spec - XQST0134: The namespace axis is not supported.)

So I think the following test should be split in two, a test for XQ10 which expects error XPST0003, and a test for XQ30+ which expects the error XQST0134:

&lt;test-case name=&quot;K2-Axes-54&quot;&gt;
      &lt;description&gt; The namespace axis is not recognized in XQuery.&lt;/description&gt;
      &lt;created by=&quot;Frans Englich&quot; on=&quot;2007-11-26+01:00&quot;/&gt;
      &lt;dependency type=&quot;spec&quot; value=&quot;XQ10+&quot;/&gt;
      &lt;test&gt;namespace::*&lt;/test&gt;
      &lt;result&gt;
         &lt;error code=&quot;XPST0003&quot;/&gt;
      &lt;/result&gt;
   &lt;/test-case&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123633</commentid>
    <comment_count>1</comment_count>
    <who name="Debbie Lockett">debbie</who>
    <bug_when>2015-10-09 14:14:10 +0000</bug_when>
    <thetext>Should&apos;ve said, the test K2-Axes-54 is in the prod-AxisStep test set.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123635</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-10-09 18:00:50 +0000</bug_when>
    <thetext>Hmmm.

namespace::* is not allowed by the XQuery 3.1 grammar, so I think XPST0003 is appropriate. The only place XQuery tells you to raise XPST0134 is

if the NodeTest in an axis step is a NamespaceNodeTest then a static error is raised [err:XQST0134].

that is, if you encounter something like a/child::namespace-node()

Since that&apos;s not actually using the namespace axis, the text for XQST0134 is unhelpful, but the error texts aren&apos;t normative.

XPath 3.1 defines a different error: &quot;An implementation that does not support the namespace axis when XPath 1.0 compatibility mode is false must raise a static error [err:XPST0010] if it is used. &quot;

So I think the correct error codes are:

for an axis step namespace::*
- XQuery: XPST0003
- XPath: if namespace axis not supported: XPST0010 (doesn&apos;t apply to Saxon)

for a node-test namespace-node():
- XQuery: XPST0134
- XPath: if namespace axis not supported: XPST0134 (doesn&apos;t apply to Saxon)

If you encounter both in combination
namespace::namespace-node()

then I think you get to take your pick.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123674</commentid>
    <comment_count>3</comment_count>
    <who name="Debbie Lockett">debbie</who>
    <bug_when>2015-10-13 12:57:04 +0000</bug_when>
    <thetext>Ah ha, my mistake, thanks for the explanation. I guess the text for error XQST0134 added to my confusion, but basically I didn&apos;t understand it properly.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>