W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2007

[Bug 5074] substitution groups not that strictly limited

From: <bugzilla@wiggum.w3.org>
Date: Wed, 26 Sep 2007 00:28:54 +0000
To: www-xml-schema-comments@w3.org
Message-Id: <E1IaKlq-0004V8-9A@wiggum.w3.org>


           Summary: substitution groups not that strictly limited
           Product: XML Schema
           Version: 1.1 only
          Platform: Macintosh
               URL: http://www.w3.org/TR/2007/WD-xmlschema11-1-20070830/
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Structures: XSD Part 1
        AssignedTo: cmsmcq@w3.org
        ReportedBy: xan.gregg@jmp.com
         QAContact: www-xml-schema-comments@w3.org

The substitution group definition (below) says member names can vary widely but
that member types are "strictly limited". 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

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

--------------------- Element Substitution Group
All such members must have type definitions which are either the same as the
head'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.
Received on Wednesday, 26 September 2007 00:29:02 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:06 UTC