W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2005

Is "mixed" applied recursively?

From: Jochen Wiedmann <jochen.wiedmann@gmail.com>
Date: Tue, 15 Mar 2005 13:45:23 +0100
Message-ID: <4236D8E3.5020303@gmail.com>
To: xmlschema-dev@w3.org

Hi,

sugest, that I have a complex type like this:

     <xs:element name="a">
         <xs:complexType>
             <xs:element name="b" type="xs:string"/>
             <xs:element name="c" type="xs:int"/>
         </xs:complexType>
     </xs:element>

     <xs:complexType mixed="true">
         <xs:sequence>
             <xs:element ref="a" maxOccurs="unbounded"/>
         </xs:sequence>
     </xs:complexType>

The spec contains the following words:

     A mixed {content type} ·validates· elements whose element
     [children] (i.e. specifically ignoring other [children]
     such as character information items) conform to the
     supplied content model.

My question is, what the word "children" means in that case. Does it
include the elements "b" and "c"? In other words, is the "mixed"
attribute applied to the children recursively?


Regards,

Jochen
Received on Tuesday, 15 March 2005 16:24:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:49 GMT