<?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>2231</bug_id>
          
          <creation_ts>2005-09-14 19:32:19 +0000</creation_ts>
          <short_desc>R-239: Question re: Element Declarations Consistent</short_desc>
          <delta_ts>2009-04-21 19:25:09 +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>
          <cc>aaz</cc>
          
          <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>6256</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-14 19:32:19 +0000</bug_when>
    <thetext>The Element Declarations Consistent rule for model groups ( 
http://www.w3.org/TR/xmlschema-1/#cos-element-consistent) rules out 
inconsistent element declarations like the following two conflicting 
definitions of element &lt;a&gt; i.e., &lt;a&gt; cannot be both an &quot;int&quot; and a &quot;string&quot; in 
the same group: 

(example-1)
&lt;xs:complexType name=&quot;example-1&quot;&gt;
  &lt;xs:sequence&gt;
    &lt;xs:element name=&quot;a&quot; type=&quot;xs:int&quot;/&gt;
    &lt;xs:element name=&quot;whatever&quot;/&gt;
    &lt;xs:element name=&quot;a&quot; type=&quot;xs:string&quot;/&gt;
  &lt;/xs:sequence&gt;
&lt;/xs:complexType&gt;

In addition to explicit element declarations, the rule also prevents conflicts 
between elements that appear &quot;either directly, indirectly, or implicitly&quot;, 
i.e., between nested model groups or elements permitted via substitution 
groups. 

My question: consider the following &quot;tricky&quot; indirect case involving a wildcard 
referencing a global element - 

(example-2)
&lt;xs:element name=&quot;a&quot; type=&quot;xs:string&quot;/&gt;
&lt;xs:complexType name=&quot;example-2&quot;&gt;
  &lt;xs:sequence&gt;
    &lt;xs:element name=&quot;a&quot; type=&quot;xs:int&quot;/&gt;
    &lt;xs:element name=&quot;whatever&quot;/&gt;
    &lt;xs:any namespace=&quot;##targetNamespace&quot; processContents=&quot;lax&quot;/&gt;
  &lt;/xs:sequence&gt;
&lt;/xs:complexType&gt;

Clearly the local &lt;a&gt; and the indirect reference to the global &lt;a&gt; 
are &quot;inconsistent&quot; with each other within the content model of example-2, but 
I&apos;m not sure if the &quot;directly, indirectly, or implicitly&quot; language in the ETC 
rule captures this case. 

Is there a hole in the EDC rule language with respect to example-2? Is this 
something that could be clarified in an errata? 

See:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2003OctDec/0029.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6257</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-14 19:32:36 +0000</bug_when>
    <thetext>Henry&apos;s response:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2003OctDec/0030.html

Also, see follow-up mail re: potential other EDC issues:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2003OctDec/0060.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6425</commentid>
    <comment_count>2</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-23 04:23:13 +0000</bug_when>
    <thetext>This is essentially RQ-146. Propose to resolve it as &quot;later&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6544</commentid>
    <comment_count>3</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-28 14:32:58 +0000</bug_when>
    <thetext>Discussed at 2005-09-23 telecon and decided to defer the this problem to 1.1.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>