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

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 (
	baseContentTypeParticles
	effectiveContentParticles
)

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
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com


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