[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>
bea substitutiongroup

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,

-Neal
Received on Wednesday, 5 January 2005 01:48:38 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.