This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2197 - R-205: Question re: mixed on complexType and complexContent
Summary: R-205: Question re: mixed on complexType and complexContent
Status: CLOSED FIXED
Alias: None
Product: XML Schema
Classification: Unclassified
Component: Structures: XSD Part 1 (show other bugs)
Version: 1.0/1.1 both
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: C. M. Sperberg-McQueen
QA Contact: XML Schema comments list
URL:
Whiteboard:
Keywords: resolved
Depends on:
Blocks:
 
Reported: 2005-09-14 19:03 UTC by Sandy Gao
Modified: 2009-04-21 19:21 UTC (History)
0 users

See Also:


Attachments

Description Sandy Gao 2005-09-14 19:03:34 UTC
Is this allowed? ("mixed" appears on both complexType and complexContent.) 


<complexType name="ct" mixed="true">
  <complexContent mixed="false">
There doesn't appear to be any constraint saying it's not allowed.

Assuming it's allowed, the mapping rules for complexType complexContent in 2E 
state: 

[Definition:] Let the effective mixed be the appropriate case among the 
following: 
1 If the mixed [attribute] is present on <complexContent> then its actual 
value; 
2 If the mixed [attribute] is present on <complexType> then its actual value; 
3 otherwise false. 
Now both 1 and 2 apply. 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.) 

See
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2003JanMar/0039.html
Comment 1 Sandy Gao 2005-10-04 20:48:33 UTC
Discussed at 2005-09-23 telecon.

Resolved: Clarification with corrigendum; editor to bring forward wording.
Comment 2 Sandy Gao 2007-05-25 13:40:29 UTC
Discussed at 2007-05-18 telecon. Adopted the following proposal for schema 1.1. (Schema 1.0 may choose to deal with it differently.)

- It's an error for "mixed" to appear on both <complexType> and <complexContent> with different values.