<?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>5469</bug_id>
          
          <creation_ts>2008-02-08 23:04:48 +0000</creation_ts>
          <short_desc>substitution groups not that strictly limited</short_desc>
          <delta_ts>2016-06-23 03:55:42 +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>Macintosh</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/#Declarations_Summary</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>5074</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="C. M. Sperberg-McQueen">cmsmcq</reporter>
          <assigned_to name="C. M. Sperberg-McQueen">cmsmcq</assigned_to>
          <cc>mostafa.shahdadi</cc>
    
    <cc>xan.gregg</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>18925</commentid>
    <comment_count>0</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2008-02-08 23:04:48 +0000</bug_when>
    <thetext>+++ This bug was initially created as a clone of Bug #5074, to allow
an issue reported for 1.1 to be tracked for 1.0 also +++

The substitution group definition (below) says member names can vary widely but that member types are &quot;strictly limited&quot;. This may be technically true, but seems to suggest a false sense of security in use of substitution groups. By default, with no derivation constraints, a substitution group can transitive include wildly different types. That is, a restriction step can remove all optional content and an extension step could introduce completely different content.

If my analysis is correct, please consider a milder statement and/or a warning about unintentional extensibility.


---------------------
2.2.2.2 Element Substitution Group
All such members must have type definitions which are either the same as the head&apos;s type definition or restrictions or extensions of it. Therefore, although the names of elements can vary widely as new namespaces and members of the ·substitution group· are defined, the content of member elements is strictly limited according to the type definition of the ·substitution group· head.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18926</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2008-02-08 23:06:29 +0000</bug_when>
    <thetext>Adding Xan Gregg to CC list, as the originator of the comment (w.r.t.
1.1).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>