<?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>5452</bug_id>
          
          <creation_ts>2008-02-06 10:58:05 +0000</creation_ts>
          <short_desc>[FS] Static type of namespace axis</short_desc>
          <delta_ts>2009-06-22 20:40:02 +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>Formal Semantics 1.0</component>
          <version>Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</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="Michael Dyck">jmdyck</assigned_to>
          <cc>jonathan.robie</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>18796</commentid>
    <comment_count>0</comment_count>
    <who name="Oliver Hallam">oliver</who>
    <bug_when>2008-02-06 10:58:05 +0000</bug_when>
    <thetext>Section 8.2.2.1.6 of formal semantics says:
The type for the namespace axis is always empty.

However this does not match up with the definition of the namespace axis in section 3.2.1 of the XPath 2.0 specification.  Since formal semantics assumes compatibility mode is set to false then &quot;support for the namespace axis is implementation-defined&quot; and either:

a) the namespace axis is supported, in which case it does not always return empty, and a namespace type should be added.

b) the namespace axis is not supported, in which case an implementation &quot;must raise a static error [err:XPST0010] if it is used&quot;, and so arguably the type should be none.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18976</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2008-02-12 22:29:18 +0000</bug_when>
    <thetext>This will go to the XSL Working Group for discussion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22239</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-10-23 14:42:49 +0000</bug_when>
    <thetext>The XSL Working Group discussed this on 9 Oct 2008.

We felt that the work needed to handle the namespace axis in the formal semantics is probably not justified, since the intersection of products (necessarily XPath rather than XQuery) that implement the static typing rules and products that support the namespace axis is probably rather small. Nevertheless the FS document ought to make it explicit that this case is excluded; and it should not say that the type of an expression using the namespace axis is empty, which would automatically make it an error.

I would propose replacing the content of section 8.2.2.1.6 (Inference rules for the namespace axis) by:

This document does not specify inference rules for the namespace axis (which is allowed, though deprecated, in XPath 2.0, and is not allowed in XQuery 1.0). Implementations choosing to support the namespace axis will need to define an additional node kind for namespace nodes in the type hierarchy, and to add the appropriate inference rules.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23914</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2009-02-24 21:00:59 +0000</bug_when>
    <thetext>I agree with Mike Kay. Our XPath spec says:

In [XPath 1.0], the in-scope namespaces of an element node are represented by a collection of namespace nodes arranged on a namespace axis. In XPath Version 2.0, the namespace axis is deprecated and need not be supported by a host language. A host language that does not support the namespace axis need not represent namespace bindings in the form of nodes.

I see little value in spending time providing additional support for a deprecated feature.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24069</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2009-03-06 01:44:08 +0000</bug_when>
    <thetext>At their meeting last week, the Working Groups approved Michael
Kay&apos;s proposal in comment #2, and directed me to mark this issue
resolved-WONTFIX.

If you accept this resolution, please mark the issue CLOSED.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24090</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2009-03-07 04:55:02 +0000</bug_when>
    <thetext>This issue has been entered as FS erratum E062, and the proposed fix has
been committed to the source files for the next edition of the FS document.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25659</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2009-06-22 20:40:02 +0000</bug_when>
    <thetext>The approved change for this issue appears in the Proposed Edited
Recommendation for the FS.

After 3 months with no response from the original reporter,
I am marking this issue CLOSED.  Feel free to reopen it
if you disagree with this outcome.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>