<?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>2068</bug_id>
          
          <creation_ts>2005-09-09 02:58:45 +0000</creation_ts>
          <short_desc>R-078: Issue to do with definition of substitution groups, block, and UPA</short_desc>
          <delta_ts>2009-04-21 19:24:57 +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>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>
          
          
          <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>5948</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-09 02:58:45 +0000</bug_when>
    <thetext>Consider the following example: 

&lt;element name=&quot;e1&quot; block=&quot;substitution&quot;/&gt;
&lt;element name=&quot;e2&quot; substitutionGroup=&quot;s:e1&quot;/&gt;

&lt;complexType name=&quot;t&quot;&gt;
&lt;choice&gt;
  &lt;element ref=&quot;s:e1&quot;/&gt;
  &lt;element ref=&quot;s:e2&quot;/&gt;
&lt;/choice&gt;
&lt;/complexType&gt;
The choice violates the constraints for UPA, because &quot;e2&quot; is in &quot;e1&quot;&apos;s 
substitution group. However, &quot;e2&quot; can never substitute &quot;e1&quot;. 

Should the definition of substitution group (Schema Component Constraint: 
Substitution Group) be modified? 

See bullet 1 from:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2001OctDec/0049.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5949</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-09 02:59:11 +0000</bug_when>
    <thetext>See the discussion from the 01/03/2002 telecon: 
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2002Jan/0006.html 

Further discussion at the 01/24/2002 telecon: 
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2002Jan/0082.html 

Resolution:
The WG resolved to classify R-78 as an error, and instruct the editor to draft 
an erratum, defining substitution group not recursively as now but using a 
formulation similar to that of 3.3.6 Substitution Group OK (Transitive), while 
not changing other constraints (such as the requirement that the data types of 
the two elements stand in a particular derivation relation). See: 
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2002Jan/0101.html 

Proposed text:
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2002Oct/0175.html
reviewed at Oct. 11 telecon. Approved with suggested ammendments (see meeting 
minutes for details). 

Erratum E1-23 added</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>