[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: emptiable content in particle inheritance

From: Tobias Koenig <tobias.koenig@trolltech.com>
Date: Tue, 3 Feb 2009 10:56:20 +0100
To: xmlschema-dev@w3.org
Message-Id: <200902031056.20811.tobias.koenig@trolltech.com>
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 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.