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

Re: xs:all, xs:sequence, and xs:choice

From: George Cristian Bina <george@oxygenxml.com>
Date: Fri, 13 May 2005 10:44:07 +0300
Message-ID: <42845AC7.9070501@oxygenxml.com>
To: Xiaofeng Wang <wangx49931@yahoo.com>
Cc: xmlschema-dev@w3.org

Hi Xiaofeng,

See http://www.w3.org/TR/xmlschema-1/#element-complexContent..extension
The content type of the extended type whose base content type and 
effective content are not empty is a sequence containing the base 
content type and the effective content.

So you will get as a result for the extended type a content type 
particle of the form:

xs:sequence (

As xs:all cannot appear inside xs:sequence it means that you should not 
use it in neither the base nor in the extended type.

Best Regards,
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

Xiaofeng Wang wrote:
> Hi All,
> I can define a complexType A with a set of elements
> using xs:all, xs:sequence, or xs:choice. I understand
> the difference between them. What confuses me is that
> if I want to define a new complexType B which extends
> complexType A using xs:extension, will xs:all,
> xs:sequence, and xs:choice have different impact on
> the extension?
> Thanks a lot
> Xiaofeng
> __________________________________ 
> Do you Yahoo!? 
> Read only the mail you want - Yahoo! Mail SpamGuard. 
> http://promotions.yahoo.com/new_mail 
Received on Friday, 13 May 2005 07:43:09 UTC

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