[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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
Is "mixed" applied recursively?

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

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.