Re: emptiable content in particle inheritance

On Monday 02 February 2009 21:47:25 Pete Cordell wrote:
Hej,

> Isn't there something about "if an element has a maxOccurs = 0, then it is 
> nothing at all", i.e. it does not exist.  If so, the second schema becomes:
> 
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <xsd:element name="doc" type="foo"/>
> <xsd:complexType name="foo">
>   <xsd:choice>
>     <xsd:element name="e2"/>
>   </xsd:choice>
> </xsd:complexType>
> </xsd:schema>
> 
> which requires an e2 child does it not?
Ok, that was the rule I missed :)
Thanks to everyone who gave some insight on that topic!

Ciao,
Tobias

Received on Tuesday, 3 February 2009 09:57:04 UTC