[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Differences in derivation by extension of complex types between Schema 1.0 and 1.1

From: Tobias Koenig <tobias.koenig@trolltech.com>
Date: Thu, 19 Feb 2009 17:07:56 +0100
To: xmlschema-dev@w3.org
Message-Id: <200902191707.57022.tobias.koenig@trolltech.com>
Re: Differences in derivation by extension of complex types between Schema 1.0 and 1.1
On Thursday 19 February 2009 16:51:13 Kevin Braun wrote:
Hej,

> I think you followed it correctly, and if I read Schema 1.1 section 
> 3.4.6.2 Derivation Valid (Extension) correctly, Type2 would not be a 
> legal extension  (http://www.w3.org/TR/xmlschema11-1/#coss-ct).
> 
> Also, this discussion relates: 
> http://lists.w3.org/Archives/Public/xmlschema-dev/2006Feb/0001.html
> 
> I'm thinking Schema 1.1 is tightening up something that was overlooked 
> in 1.0.
Actually IMHO Schema 1.0 is right here and 1.1 wrong. If you have a complex
type with simple content and derive from it by _extension_, why should the derived
type have an empty content? Extension always increases the value space, not
decreases it.

I guess it is an error in 4.2.1) of http://www.w3.org/TR/xmlschema11-1/#dcl.ctd.ctcc.common
to point to 4.1 for "empty or simple". 4.1 should only be used for the "empty" case and "simple"
should be handled separately (e.g. use the content type of the base type).

Ciao,
Tobias
Received on Thursday, 19 February 2009 16:08:21 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.