Content model probs

Richard Tobin richard at
Fri May 14 16:05:43 BST 1999

> 1. Contain #PCDATA, *OR*
> 2. an optional tag X followed by zero or more occurences of tag Y

Can't be done.  Content models that include #PCDATA and elements are
restricted to the form (#PCDATA|x|y|...)*.

> At the moment I've had to settle on (#PCDATA|X|Y)*

Yes, that's the best you can do.

If you want to do better, you will need to have two different element
types for the two cases.

-- Richard

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list