![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - xs:all, xs:sequence, and xs:choice [Thread Next] RE: all, xs:sequence, and xs:choiceTo: "'Xiaofeng Wang'" <wangx49931@-----.--->, <xmlschema-dev@--.---> Date: 5/13/2005 10:51:00 AM > 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? > If the content model of A is MA, then when you define a new type B as an extension of A, giving it a content model of MB, the combined type is sequence (MA, MB) So if A was a choice of A1 or A2, and B is a choice of B1 or B2, the extended type is sequence (choice(A1, A2), choice(B1, B2)) This doesn't work with xs:all, which (IIRC) doesn't allow extension. Michael Kay http://www.saxonica.com/ From paul.downey@b... Fri May 13 14:45:41 2005 Received: fr | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
