W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2002

Mixed content

From: Richard Emslie <rxe@ukshells.co.uk>
Date: Mon, 11 Feb 2002 19:33:48 +0000 (GMT)
To: <xmlschema-dev@w3.org>
Message-ID: <Pine.LNX.4.30.0202111925070.9034-100000@vortex.ukshells.co.uk>

Hi folks,

Aplogies beforehand for this dumb and simple question... I'm obviously
misunderstanding something. :-)


In a DTD, one can declare mixed content as follows:

...
<!ELEMENT p (#PCDATA | italics | bold)*>
<!ELEMENT italics (#PCDATA)>
<!ELEMENT bold (#PCDATA)>
...

And thus

<p> This <italics>contains</italics> <bold>embedded</bold> child.</p>

Is this posible with W3C XML schema?  If so, it would be highly
appreciated if someone could provide an example of a complexType that
can handle this.

Thanks kindly,
Richard.
Received on Monday, 11 February 2002 16:40:27 GMT

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