<?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>1890</bug_id>
          
          <creation_ts>2005-08-26 13:38:08 +0000</creation_ts>
          <short_desc>R-112: A question about QName Resolution (Schema Document)</short_desc>
          <delta_ts>2009-04-21 19:21:31 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Schema</product>
          <component>Structures: XSD Part 1</component>
          <version>1.0/1.1 both</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>resolved</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>4363</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Sandy Gao">sandygao</reporter>
          <assigned_to name="XML Schema WG">w3c-xml-schema-wg</assigned_to>
          
          
          <qa_contact name="XML Schema comments list">www-xml-schema-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>5500</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-08-26 13:38:08 +0000</bug_when>
    <thetext>Constraint &quot;QName resolution (Schema Document)&quot;, bullet 4 states:

&quot;4 its namespace name is either the target namespace of the schema document 
containing the QName or that schema document contains an &lt;import&gt; element 
information item the actual value of whose namespace [attribute] is identical 
to that namespace name.&quot; 
Does this mean that

&lt;schema xmlns=&quot;http://www.w3.org/2001/XMLSchema&quot; targetNamespace=&quot;myNS&quot;&gt;
  &lt;element name=&quot;e&quot; type=&quot;string&quot;/&gt;
&lt;/schema&gt;
is invalid? (Because the schema namespace is neither the target namespace, nor 
imported by this document.)

The spec does mention:

&quot;Simple type definitions for all the built-in primitive datatypes, namely 
string, boolean, float, double, number, dateTime, duration, time, date, gMonth, 
gMonthDay, gDay, gYear, gYearMonth, hexBinary, base64Binary, anyURI (see the 
Primitive Datatypes section of [XML Schemas: Datatypes]), as well as for the 
simple and complex ur-type definitions (as previously described), are present 
by definition in every schema. All are in the XML Schema {target namespace} 
(namespace name http://www.w3.org/2001/XMLSchema ), have an atomic {variety} 
with an empty {facets} and the simple ur-type definition as their base type 
definition and themselves as {primitive type definition}. 
Similarly, simple type definitions for all the built-in derived datatypes (see 
the Derived Datatypes section of [XML Schemas: Datatypes]) are present by 
definition in every schema, with properties as specified in [XML Schemas: 
Datatypes] and as represented in XML in Schema for Schemas (normative).&quot;

But I don&apos;t think &quot;are present&quot; directly leads to &quot;can be accessed&quot;. Shouldn&apos;t 
bullet 4 of &quot;QName resolution (Schema Document)&quot; be changed to something like:

&quot;4 one of the following must be true: 
4.1 all of the following must be true: 
4.1.1 its namespace name is identical to http://www.w3.org/2001/XMLSchema . 
4.1.2 the kind specified is simple or complex type definition. 
4.1.3 its local name is identical to the name of one of the built-in types. 
4.2 either the target namespace of the schema document containing the QName or 
that schema document contains an &lt;import&gt; element information item the actual 
value of whose namespace [attribute] is identical to that namespace name.&quot; 

See: http://lists.w3.org/Archives/Public/www-xml-schema-
comments/2002JanMar/0459.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5501</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-08-26 13:39:38 +0000</bug_when>
    <thetext>Discussed at the May 29, 2003 telecon [1]. Agreed to classify as an error 
w/erratum. Some discussion occurred re: what new text should be added, but no 
consensus reached on what was required to fix the problem.

[1] http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2003May/0120.html
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14629</commentid>
    <comment_count>2</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2007-04-02 13:40:53 +0000</bug_when>
    <thetext>This bug applies to both 1.0 and 1.1. It also affects bug 4363.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15208</commentid>
    <comment_count>3</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2007-05-25 22:48:38 +0000</bug_when>
    <thetext>The WG reached phase-1 agreement on issue 4363 (which blocks this issue) 
on 11 May 2007.  The minutes of the call don&apos;t show that we said anything 
about whether the technical direction set for bug 4363 would resolve this 
bug or not, so I&apos;m leaving the status keyword unchanged.  But in practice,
I expect that any wording proposal for 4363 will also resolve this bug.
(I.e. editor to chair: don&apos;t schedule time to discuss this until we have
a wording proposal.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15274</commentid>
    <comment_count>4</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2007-06-04 14:47:10 +0000</bug_when>
    <thetext>Minor correction to comment #3. On 11 May 2007, we accepted a wording proposal on this issue. Marking it accordingly.

This issue blocks bug 4363, which still has an open question to answer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15464</commentid>
    <comment_count>5</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2007-06-18 14:15:52 +0000</bug_when>
    <thetext>The proposal adopted by the Working Group has now been integrated into
the status quo documents on the server; accordingly, I&apos;m changing the
status to &apos;RESOLVED&apos;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>