[ANN] WFC 38 is out (and a question)

Lars Marius Garshol larsga at ifi.uio.no
Sun Jan 10 22:42:58 GMT 1999

* Samuel R. Blackburn
| <H1>Text</H1> More Text <H2>Less Text</H2>
| Is this valid XML? " More Text " is orphaned.

* Jonathan Borden
| This fragment appears to be a valid, well-formed HTML document but
| not a valid nor well formed XML document.

It is not a valid HTML document, simply because it has no DOCTYPE
declaration. This makes it impossible for an SGML parser to infer the
document element type as well as the omitted tags.

Wqell-formed does not apply to HTML, although the newest SGML TC has
some terms that are more or less equivalent (although finer-grained)
with well-formed.
| HTML, which has an SGML DTD, allows both the HTML and BODY tags to
| be optional.

It does, but TITLE is required (and missing in this document). So even
with a DOCTYPE this would still be invalid.

--Lars M.

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