Mixed content

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 UTC