<?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>1404</bug_id>
          
          <creation_ts>2005-05-13 17:18:01 +0000</creation_ts>
          <short_desc>Namespaces in XQueryX</short_desc>
          <delta_ts>2005-08-08 23:16:07 +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>XQueryX 1.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 2000</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>
          <dependson>1286</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mary Holstege">holstege</reporter>
          <assigned_to name="Jim Melton">jim.melton</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>3327</commentid>
    <comment_count>0</comment_count>
    <who name="Mary Holstege">holstege</who>
    <bug_when>2005-05-13 17:18:01 +0000</bug_when>
    <thetext>References to named things in XQuery (variables,
functions, types etc.) are defined in XQueryX as
xs:QName. This means that the namespace binding
to resolve these names has to be declared in the
XQueryX document at BOTH the XML level as at the
XQueryX level.  It would be better to keep these
separate, so that the namespace bindings that
apply to these named items come solely from the
XQueryX level.  We note that the examples are
therefore actually incorrect, because, for example,
the function &apos;doc&apos; is not in no namespace, but in
the default function namespace, whose prefix has
not been declared at the XML level. Also, because
of the asymmetry in XQuery in how unprefixed
variables and functions are interpreted, XML level
namespace resolution will do the wrong thing for
variables if the XQueryX document has a default
namespace.

(On behalf of XML Schema WG)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4366</commentid>
    <comment_count>1</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2005-06-27 20:11:08 +0000</bug_when>
    <thetext>A new XQueryX schema has been created that defines names to be of type xqx:Qname
instead of xs:Qname.  The xqx:QName type represents names in the form of two
strings: a prefix and a local name part.  The use of this new type removes any
possible relationship between the namespace prefix of a QName and any namespace
declaration done in an XQueryX document at the &quot;XML level&quot;.  Instead, there are
relationships only with namespaces declared at the &quot;XQuery level&quot; in the XQuery
expression captured by the XQueryX document. 

Please let us know if this response is satisfactory. If not, please respond to
this message, explaining your concerns.

Jim Melton
On behalf of the XML Query Working Group</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>