<?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>20736</bug_id>
          
          <creation_ts>2013-01-22 17:11:21 +0000</creation_ts>
          <short_desc>[XQ30] Namespace axis</short_desc>
          <delta_ts>2013-01-30 20:54:57 +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.0</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://www.w3.org/Bugs/Public/show_bug.cgi?id=20738</see_also>
          <bug_file_loc>http://www.w3.org/TR/2013/CR-xquery-30-20130108/#abbrev</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="Tim Mills">tim</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          <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>81946</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-01-22 17:11:21 +0000</bug_when>
    <thetext>In 3.3.5 Abbreviated Syntax we find:

&quot;If the axis name is omitted from an axis step, the default axis is child, with two exceptions: if the axis step contains an AttributeTest or SchemaAttributeTest then the default axis is attribute; if the axis step contains namespace-node() then the default axis is namespace.

Note:

In an implementation that does not support the namespace axis, an attempt to access it always raises an error. Thus, an XQuery implementation will always raise an error in this case, since XQuery does not support the namespace axis. The namespace axis is deprecated as of XPath 2.0, but required in some languages that use XPath, including XSLT.&quot;

What is the error code in this case?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82189</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-01-26 06:30:59 +0000</bug_when>
    <thetext>As an aside, I&apos;d like the namespace axis to be allowed in XQuery 3.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82283</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2013-01-29 17:40:21 +0000</bug_when>
    <thetext>The Working Group agrees to resolve this together with 20738:

If the axis name is omitted from an axis step, the default axis is child, with two exceptions: if the axis step is an AttributeTest or SchemaAttributeTest then the default axis is attribute; if the axis step is a NamespaceNodeTest then a static error is raised [err:XQSTXXXX].</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82285</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2013-01-29 17:59:15 +0000</bug_when>
    <thetext>Minor correction, it&apos;s not the axis step that is a AttributeTest etc, it is the NodeTest (part of the axis step).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82353</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2013-01-30 20:54:57 +0000</bug_when>
    <thetext>*** Bug 20738 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>