XSchema Spec, Section 2.3

Simon St.Laurent (SimonStL@classic.msn.com)
Sat, 13 Jun 98 23:27:23 UT


A revised version of section 2.3.6 follows. A complete copy of section 2.3 is
available at http://purl.oclc.org/NET/xschema.

Attributes will be tomorrow's treat.

Simon St.Laurent
Dynamic HTML: A Primer / XML: A Primer / Cookies

2.3.6 Mixed Content Model

Mixed content models allow the unordered use of different element types and
character data. Content within an element that
uses a mixed declaration must be PCData or one of the elements referenced by
an XSC:Ref element nested within the
XSC:Mixed declaration.

<!ELEMENT XSC:Mixed (XSC:Ref+)>
<!ATTLIST XSC:Mixed
Frequency #FIXED "ZeroOrMore">

If the Species element were to contain a mix of PCData, CommonName elements,
LatinName elements, and PreferredFood
elements in any order, the declaration would look like:

<XSC:ElementDecl id="Species">
<XSC:Mixed>
<XSC:Ref Element="CommonName"/>
<XSC:Ref Element="LatinName"/>
<XSC:Ref Element="PreferredFood"/>
</XSC:Mixed>
</XSC:ElementDecl>