W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2009

RE: emptiable content in particle inheritance

From: Michael Kay <mike@saxonica.com>
Date: Mon, 2 Feb 2009 21:24:59 -0000
To: "'G. Ken Holman'" <gkholman@CraneSoftwrights.com>, <xmlschema-dev@w3.org>
Message-ID: <9CE011DD932A490581F92BCE6EB85985@Sealion>

> I think it is explicit.
> http://www.w3.org/TR/xmlschema-1/#declare-element states:
>    "the corresponding schema components are as follows (unless
>     minOccurs=maxOccurs=0, in which case the item corresponds
>     to no component at all):"

Ah yes, thanks - I knew it had to be there somewhere!

And I see that the same rule is present for other kinds of particle as well.

One does wonder why maxOccurs="0" is allowed, if it has to be treated as an
exception to the normal rules. I guess it's analogous to use="prohibited" on
attributes, which also causes some odd anomalies.

Michael Kay
Received on Monday, 2 February 2009 21:25:39 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:15 UTC