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 2068 - R-078: Issue to do with definition of substitution groups, block, and UPA
Summary: R-078: Issue to do with definition of substitution groups, block, and UPA
Status: CLOSED FIXED
Alias: None
Product: XML Schema
Classification: Unclassified
Component: Structures: XSD Part 1 (show other bugs)
Version: 1.0 only
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Henry S. Thompson
QA Contact: XML Schema comments list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-09 02:58 UTC by Sandy Gao
Modified: 2009-04-21 19:24 UTC (History)
0 users

See Also:


Attachments

Description Sandy Gao 2005-09-09 02:58:45 UTC
Consider the following example: 

<element name="e1" block="substitution"/>
<element name="e2" substitutionGroup="s:e1"/>

<complexType name="t">
<choice>
  <element ref="s:e1"/>
  <element ref="s:e2"/>
</choice>
</complexType>
The choice violates the constraints for UPA, because "e2" is in "e1"'s 
substitution group. However, "e2" can never substitute "e1". 

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
Comment 1 Sandy Gao 2005-09-09 02:59:11 UTC
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