Roots of the DTD (was: ANNOUNCE: Virtual Hyperglossary)

John Cowan cowan at locke.ccil.org
Thu Jun 4 23:28:43 BST 1998


Peter Murray-Rust wrote:

> This is a natural and (I believe) false assumption.  A DTD need not have a
> hierarchical structure, though most do. The following is acceptable:
> <!ELEMENT A (#PCDATA)>
> <!ELEMENT B (#PCDATA)>
> <!ELEMENT C (#PCDATA)>
> 
> It is then possible to have any of the following:
> <!DOCTYPE A> <A>I am an A</A>
> <!DOCTYPE B> <B>I am an B</B>
> <!DOCTYPE C> <C>I am an C</C>
> 
> It is one of the 5 myths (I think Eliot Kimber said this) that DOCTYPE
> tells you what the document type is. It simply gives the root element and
> the set of ELEMENTs that can be used.

Hmmm.  This sounds like the "root" (my syntax) or "RootElement" (Ron's
syntax) attribute in XSchema is a Bad Thing.  Perhaps it should be
removed?

-- 
John Cowan	http://www.ccil.org/~cowan		cowan at ccil.org
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list