|
[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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. Thanks, -NealReceived on Wednesday, 5 January 2005 01:48:38 GMT |
Subscribe in XML format
|






