W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2005

substitutionGroup and final

From: Neal Yin <nyin@bea.com>
Date: Tue, 4 Jan 2005 17:32:41 -0800
Message-ID: <9B47F89C6226194D9ED3D4BAB2273749E0738B@ussfex01.bea.com>
To: <xmlschema-dev@w3.org>

Hi all,

This is schema snippet valid?
 <xsd:element name="comment" type="xsd:string" final="restriction"/>
 <xsd:element name="mycomment" type="xsd:string" substitutionGroup="comment"/>

In another word, does final="restriction" allow the element substitution group with the same type?

In my understanding of the spec, this is invalid, because xsd:string is a valid "restriction" of xsd:string, which is prevented by final="restriction" attribute. XSV test thinks this is valid, and the book "Definitive XML Schema" seems says it is valid too.


Received on Wednesday, 5 January 2005 01:48:38 UTC

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