<?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>2226</bug_id>
          
          <creation_ts>2005-09-14 19:25:42 +0000</creation_ts>
          <short_desc>R-234: Anonymous global type elements of same name in model group</short_desc>
          <delta_ts>2009-04-21 19:25:08 +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 only</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>LATER</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="Sandy Gao">sandygao</reporter>
          <assigned_to name="Henry S. Thompson">ht</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>6249</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-14 19:25:42 +0000</bug_when>
    <thetext>Is the following schema valid?

        &lt;xsd:element name=&quot;elem1&quot;&gt;
 		&lt;xsd:complexType/&gt;
 	&lt;/xsd:element&gt;

 	&lt;xsd:complexType name=&quot;type1&quot;&gt;
 		&lt;xsd:sequence&gt;
 			&lt;xsd:element ref=&quot;elem1&quot;/&gt;
 			&lt;xsd:element ref=&quot;elem1&quot;/&gt;
 		&lt;/xsd:sequence&gt;
 	&lt;/xsd:complexType&gt;

Henry&apos;s response: 

Should be, but the REC language is broken here -- I&apos;m pretty sure the intent 
was for this constraint to apply to two _distinct_ element declarations, which 
means at least one of them would have to be local, as all refs to a named top-
level element decl produce the _same_ element decl. I&apos;m not aware of any 
processors which complain about this case. 

See:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2003JulSep/0081.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6424</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-23 04:20:11 +0000</bug_when>
    <thetext>Seems the best we can is already done in erratum E1-54
http://www.w3.org/2001/05/xmlschema-errata#e1-54
Propose to resolve this as either fixed or later.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6542</commentid>
    <comment_count>2</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-28 14:31:49 +0000</bug_when>
    <thetext>Discussed at 2005-09-23 telecon.

The specific issue reported is covered by E1-54. The general question of 
anonymous type identity will be discussed under 1.1. See RQ-151.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>