W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2003

min=max=0 (Erratum E1-5)

From: <sandygao@ca.ibm.com>
Date: Mon, 27 Jan 2003 14:51:11 -0500
To: www-xml-schema-comments@w3.org
Message-ID: <OFA0AE2A4A.F45AD1E7-ON85256CBB.006CF547@torolab.ibm.com>

<complexType>
  <sequence min=max=0>
    <element .../>

What's the content type of the above type?

According to E1-5, because there IS a sequence with an element child, the
effective content is not empty, but the particle corresponding to the
sequence. But according to 3.8.2, min=max=0 corresponds to no component at
all.

Shouldn't 1.1 of the definition of effective content in E1-5 be changed to:
1.1 There is no <group>, <all>, <choice> or <sequence> among the
[children], which either doesn't have a maxOccur attribute, or the actual
value of such attribute is not 0.

Thanks,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
sandygao@ca.ibm.com
Received on Monday, 27 January 2003 14:51:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:01 GMT