W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2006


From: Michael Kay <mike@saxonica.com>
Date: Sat, 9 Dec 2006 16:18:19 -0000
To: <xmlschema-dev@w3.org>
Message-ID: <002501c71bad$a4846260$6401a8c0@turtle>

As far as I can see the following schema is valid:

<xsd:element name="E" type="A" block="substitution" />

<xsd:element name="F" type="A" substitutionGroup="E" />

The effect of the "block" is not to make the declaration of F invalid:
instead, it effectively causes the attribute substitutionGroup="E" to be
ignored, so that an instance that attempts to use F in place of E will be

Is this analysis correct? On the surface, this seems to be detecting an
error at run time that would be better detected at compile time.

Can someone explain the rationale?

Michael Kay
Received on Saturday, 9 December 2006 16:18:33 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:11 UTC