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)>

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,
Received on Monday, 11 February 2002 16:40:27 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:55 UTC