W3C home > Mailing lists > Public > w3c-sgml-wg@w3.org > October 1996

Re: B.2 DTD required or optional?

From: Tim Bray <tbray@textuality.com>
Date: Mon, 14 Oct 1996 13:47:47 -0700
Message-Id: <3.0b33.32.19961014134740.00b2ea0c@pop.intergate.bc.ca>
To: W3C SGML Working Group <w3c-sgml-wg@w3.org>
At 03:05 PM 10/12/96 CDT, Michael Sperberg-McQueen wrote:

>B.2 Should XML require each document instance to have a DTD or not

One concept is that the XML spec should define two separate characteristics
that a document can have, well-formedness and validity.

A. A "Well-Formed XML Document" has 

1. syntactically distinguishable elements, attributes, comments, and PI's
2. one root element
3. all elements properly nested within each other
4. no text outside the root element

Such a document may or may not contain markup declarations.  If it does,
well-formedness also allows

5. empty elements, if they're declared
6. entity references, if they're declared

B. A "Valid XML document" means there's a full DTD and it's been validated
   in the familiar SGML sense.

Cheers, Tim Bray
tbray@textuality.com http://www.textuality.com/ +1-604-488-1167
Received on Monday, 14 October 1996 16:48:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:25:04 UTC