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

mixed on both complexType and complexContent (E1-5)

From: <sandygao@ca.ibm.com>
Date: Mon, 27 Jan 2003 14:58:53 -0500
To: www-xml-schema-comments@w3.org
Message-ID: <OFD222585F.A644045E-ON85256CBB.006D6D26@torolab.ibm.com>

Is this allowed? ("mixed" appears on both complexType and complexContent.)

<complexType name="ct" mixed="true">
  <complexContent mixed="false">

I didn't find any constraint saying it's not allowed.

Assume it's allowed. E1-5 says:

[Definition:]  Let the effective mixed be the appropriate case among the
1 If the mixed [attribute] is present on <complexContent>, then its ·actual
2 If the mixed [attribute] is present on <complexType>, then its ·actual
3 otherwise false.

Now both 1 and 2 applies. Which one should be used? (I think the intention
is that "mixed" on <complexContent> takes precedence. In that case, we at
least need an "otherwise" in clause 2 above.)

Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
Received on Monday, 27 January 2003 14:59:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:59 UTC