This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 5469 - substitution groups not that strictly limited
Summary: substitution groups not that strictly limited
Status: NEW
Alias: None
Product: XML Schema
Classification: Unclassified
Component: Structures: XSD Part 1 (show other bugs)
Version: 1.0 only
Hardware: Macintosh All
: P4 normal
Target Milestone: ---
Assignee: C. M. Sperberg-McQueen
QA Contact: XML Schema comments list
URL: http://www.w3.org/TR/2004/REC-xmlsche...
Whiteboard:
Keywords:
Depends on: 5074
Blocks:
  Show dependency treegraph
 
Reported: 2008-02-08 23:04 UTC by C. M. Sperberg-McQueen
Modified: 2016-06-23 03:55 UTC (History)
2 users (show)

See Also:


Attachments

Description C. M. Sperberg-McQueen 2008-02-08 23:04:48 UTC
+++ 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 "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 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'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.
Comment 1 C. M. Sperberg-McQueen 2008-02-08 23:06:29 UTC
Adding Xan Gregg to CC list, as the originator of the comment (w.r.t.
1.1).