OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   XSchema Spec, Section 2.3

[ Lists Home | Date Index | Thread Index ]
  • From: "Simon St.Laurent" <SimonStL@classic.msn.com>
  • To: "Xml-Dev (E-mail)" <xml-dev@ic.ac.uk>
  • Date: 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>


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS