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

[Bug 2068] R-078: Issue to do with definition of substitution groups, block, and UPA

From: <bugzilla@wiggum.w3.org>
Date: Fri, 09 Sep 2005 02:58:45 +0000
To: www-xml-schema-comments@w3.org
Cc:
Message-Id: <E1EDZ6D-00043S-Vt@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2068

           Summary: R-078: Issue to do with definition of substitution
                    groups, block, and UPA
           Product: XML Schema
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSD Part 1: Structures
        AssignedTo: ht@w3.org
        ReportedBy: sandygao@ca.ibm.com
         QAContact: www-xml-schema-comments@w3.org


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
Received on Friday, 9 September 2005 02:58:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:09 GMT