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"/>

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

<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"/>

[1] XML Schema Part 1 - 3.8.6 - Schema Component Constraint: Element
Declarations Consistent


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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:11 UTC