<?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>2616</bug_id>
          
          <creation_ts>2005-12-22 23:21:42 +0000</creation_ts>
          <short_desc>Error in XML mapping for target namespace of local attributes, sec. 3.2.2</short_desc>
          <delta_ts>2006-10-21 20:48:55 +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>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>medium, easy</status_whiteboard>
          <keywords>resolved</keywords>
          <priority>P4</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="C. M. Sperberg-McQueen">cmsmcq</reporter>
          <assigned_to name="C. M. Sperberg-McQueen">cmsmcq</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>7536</commentid>
    <comment_count>0</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2005-12-22 23:21:43 +0000</bug_when>
    <thetext>The XML mapping rules for attribute source declarations
which occur within complexType or attributeGroup elements
specify that if the attribute is qualified, the value
of its {target namespace} property comes from &quot;the actual 
value of the targetNamespace [attribute] of the parent 
&lt;schema&gt; element information item, or absent if there 
is none&quot;.

Since such an attribute declaration can never have a 
parent element of type xsd:schema, there can never be 
a targetNamespace attribute belonging to such a parent
schema element.  It follows that all local attributes 
declared as form = qualified are required by 1.0 and the
current draft of 1.1 to be unqualified.

Both 1.0 and 1.1 should be corrected to refer to the
ancestor schema element, rather than the parent.
(The editors should probably scan for other instances 
of this, since it looks like a copy-paste error.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7537</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2005-12-22 23:32:57 +0000</bug_when>
    <thetext>The phrase &quot; the ·actual value· of the targetNamespace 
[attribute] of the parent &lt;schema&gt; element information 
item, or ·absent· if there is none&quot; also appears 
unnecessarily complex.  If there is no targetNamespace
attribute, its value is absent, is it not?  And if 
so, then we can safely say simply &quot;the ·actual value· 
of the targetNamespace [attribute] of the ancestor
&lt;schema&gt; element information item&quot; for this part of
the mapping rule.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7538</commentid>
    <comment_count>2</comment_count>
    <who name="Dave Peterson">davep</who>
    <bug_when>2005-12-23 02:57:08 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; The phrase &quot; the ·actual value· of the targetNamespace 
&gt; [attribute] of the parent &lt;schema&gt; element information 
&gt; item, or ·absent· if there is none&quot; also appears 
&gt; unnecessarily complex.  If there is no targetNamespace
&gt; attribute, its value is absent, is it not? 

This may be an accurate quote from SQ, but the current
style is &quot;...or absent if...&quot;, where &quot;absent&quot; is the preterminal/
constant named &apos;absent&apos;.  So I&apos;d read the words you object
to as simply telling me what value use if there is no such
attribute.  Seems perfectly reasonable to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12469</commentid>
    <comment_count>3</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2006-10-14 14:35:05 +0000</bug_when>
    <thetext>A proposal to resolve this issue has been placed at 
http://www.w3.org/XML/Group/2004/06/xmlschema-1/structures.cleanup-1.200610.html
(member-only link) for review and action by the WG.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12567</commentid>
    <comment_count>4</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2006-10-21 20:19:49 +0000</bug_when>
    <thetext>The proposal mentioned in comment #3 has been approved by the WG
and integrated into the status-quo text of the spec.  It should be
included in due course in the next public working draft.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>