<?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>1273</bug_id>
          
          <creation_ts>2005-04-26 14:25:05 +0000</creation_ts>
          <short_desc>[XPath] Binding for xml: in static/dynamic contexts</short_desc>
          <delta_ts>2005-06-10 19:07:58 +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>XPath 2.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</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="Norman Walsh">Norman.Walsh</reporter>
          <assigned_to name="Don Chamberlin">chamberl</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>3621</commentid>
    <comment_count>0</comment_count>
    <who name="Norman Walsh">Norman.Walsh</who>
    <bug_when>2005-04-26 14:25:05 +0000</bug_when>
    <thetext>In the course of discussing the xml:id attribute in the Core WG, the issue of
the namespace binding for the xml: prefix has come up. In particular, if

  //*[@xml:id]

can every fail to match an xml:id attribute because some API has setup the
namespace binding for the &quot;xml&quot; prefix in some odd way. Or if

  //*[@foo:id]

can ever match an xml:id attribute because some API has setup the namespace
binding for the &quot;foo&quot; prefix to be the XML Namespace.

I think it would be valuable to state that the xml: prefix is always bound,
that it is an error for the prefix xml: to be bound to another namespace,
or for any other prefix to be bound to the XML Namespace in either the
static or dynamic contexts at any time.

Apologies if we already say this, but I didn&apos;t find it in the XPath spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3625</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Rys">mrys</who>
    <bug_when>2005-04-26 15:28:14 +0000</bug_when>
    <thetext>This is described in XQuery in section 4.12 (there is even an error 
http://www.w3.org/TR/xquery/#ERRXQST0070 that guards xml.

I assume that since XPath does not bind namespaces itself, depends on the 
calling environment to provide such restrictions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2737</commentid>
    <comment_count>2</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2005-06-10 19:07:30 +0000</bug_when>
    <thetext>Norm,
On May 16, the Query and XSLT working groups accepted your suggestion. Error 
message XQST0070 has been expanded to include the case when a prefix other than 
xml is bound to the namespace URI associated with xml. Also, the following 
consistency constraint has been added to Section 2.2.5 of the XPath and XQuery 
documents:

&quot;In the statically known namespaces, the prefix xml must not be bound to any 
namespace URI other than http://www.w3.org/XML/1998/namespace, and no prefix 
other than xml may be bound to this namespace URI.&quot;

Since you were a participant in this discussion, I will mark this comment as 
Fixed and Closed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>