Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


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

From: George Cristian Bina <george@---------.--->
To: Xiaofeng Wang <wangx49931@-----.--->
Date: 5/13/2005 1:44:00 PM
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
www.---.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 
> 
> 

From mike@s... Fri May 13 08:36:14 2005
Received: from lisa.w3.org ([128.3


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent