<?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>4337</bug_id>
          
          <creation_ts>2007-02-19 17:33:14 +0000</creation_ts>
          <short_desc>Substitution group and abstract</short_desc>
          <delta_ts>2009-04-21 19:21:45 +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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sandy Gao">sandygao</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>14016</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2007-02-19 17:33:14 +0000</bug_when>
    <thetext>Can an abstract element declaration &quot;substitute&quot; another element declaration? The 2 substitution group related constraints give different answers.

In the definition of &quot;substitution group&quot; [1], it&apos;s clear that abstract element declarations are excluded. But Substitution Group OK (Transitive) doesn&apos;t take abstractness into account.

Many people consider substitution group as a choice over all members of the &quot;substitution group&quot; of the head. This is currently *not* true given the inconsistency between these constraints.

Consider

&lt;element name=&quot;head&quot; type=&quot;date&quot;/&gt;
&lt;element name=&quot;sub&quot; substitutionGroup=&quot;head&quot; abstract=&quot;true&quot;/&gt;
...
&lt;choice or sequence&gt;
 &lt;element ref=&quot;head&quot;/&gt;
 &lt;element name=&quot;sub&quot; type=&quot;int&quot;/&gt;
&lt;/choice or sequence&gt;

It&apos;s not clear whether the above &lt;choice&gt; violates &quot;Unique Particle Attribution&quot;, and it&apos;s not clear whether the &lt;sequence&gt; violates &quot;Element Declaration Consistent&quot;.

What&apos;s the rationale for [1] to exlcude abstract elements from substitution groups? Given the changes in how abstract is handled in schema 1.1 (moving more toward &quot;matched but unfortunately abstract&quot;), maybe [1] should be changed to include abstract elements?

[1] http://www.w3.org/TR/xmlschema11-1/#key-eq
[2] http://www.w3.org/TR/xmlschema11-1/#cos-equiv-derived-ok-rec</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14550</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2007-03-27 15:24:45 +0000</bug_when>
    <thetext>On 23 March, the WG accepted a wording proposal to resolve this issue by
aligning our definitions and our usage more consistently.  The requirement
that an element not be abstract is already enforced elsewhere; it does not
need to play a role in the definition of the concept &apos;substitution group&apos;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>