W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2002

Re: complexType derivation method

From: Ala Heno <alah@TTI-TELECOM.COM>
Date: Sun, 27 Jan 2002 14:42:18 -0500 (EST)
Message-ID: <8AABB7C1CB60BD4CB07A1976035C429D0247325D@exchange.tti-telecom.com>
To: xmlschema-dev@w3.org
Hi,
 
>> b. can I extend a <choice> with another <choice>? and with a
>> <sequence > or with an <all> ?
> 
> You can extend a choice with another choice or a sequence, but not an
> all for the same reasons as given above. Note that when you extend
> with a choice, the two choices are combined in a sequence (the choice
> from the base type followed by the choice from the derived type) and
> not in a choice (all the particles in one big choice).

I was wondering - does anyone knows what it the rationale behind this
constraint? Are there any ways to enable extending a complex type while
allowing inserting elements of the derived type at the beginning of the
content model?
 
Thanks
Ala
Received on Tuesday, 29 January 2002 18:24:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:26 GMT