W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2003

Schema Component Constraint: Element Declarations Consistent

From: Michael Marchegay <mmarcheg@optonline.net>
Date: Thu, 29 May 2003 16:43:44 -0400
Message-ID: <000b01c32622$fefea270$7c01a8c0@mendossa>
To: <xmlschema-dev@w3.org>

Hi all,

I have a question on the implication of the substitution group and of the
{disallowed substitution} on the constraint  "Schema Component Constraint:
Element Declarations Consistent" [1]

Is this constraint valid for the model group definition MG bellow?

<element name="a" **block="substitution"**/>
<element name="b" substitutionGroup="a"/>

<group name="MG">
  <element ref="a"/>
  <element name="b" type="boolean"/>
</group>

And what about transitive substitution group?  Is the group MG2 bellow
valid?

<element name="x" **block="restricction"**/>
<element name="y" substitutionGroup="x"/>
<element name="z" substitutionGroup="y" type="string"/>

<group name="MG2">
  <element ref="x"/>
  <element name="z" type="boolean"/>
</group>

[1] XML Schema Part 1 - 3.8.6 - Schema Component Constraint: Element
Declarations Consistent
(http://www.w3.org/TR/xmlschema-1/#cos-element-consistent)

Thanks,

Michael Marchegay
Received on Thursday, 29 May 2003 16:43:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:37 GMT