Problems with XML schema
XML schema can handle previous example using
locally-scoped element names
but what about the following?
a document (
doc
element) contains one or more paragraphs (
par
elements)
the first paragraph has a different content model to subsequent paragraphs
(perhaps the first letter of the first paragraph is enlarged)
we want something like
<!ELEMENT doc (par, par*) >
but where two occurrences of
par
have different content models
this
cannot
be specified in XML schema
Peter Wood
2 of 15