external dtd subset content

Peter Murray-Rust peter at ursus.demon.co.uk
Fri Dec 12 23:35:53 GMT 1997


At 12:34 12/12/97 +0100, james anderson wrote:
>we're trying to understand the necessary form for the external dtd
>subset.
>in particular two questions have arisen.
>
>1?  since the external subset contains markup declarations only, it
>would appear that it establishes no constraint on the root element. is
>it legitimate to use the same dtd for various xml documents, each with a
>different root element?

Good point! I have never really understood why it's necessary to have
consistency between the root element and the doctypedeclName. For example
If I am authoring HTML 2.0 (assume there is an official XML DTD) and I write:

<?xml version="1.0"?>
<!DOCTYPE P SYSTEM "html20.dtd">
<P>This is a para</P>

that is presumably valid, but:

<?xml version="1.0"?>
<!DOCTYPE HTML SYSTEM "html20.dtd">
<P>This is a para</P>

is invalid. Is this what the WG intends? If so, what's the rationale?

	P.

Peter Murray-Rust, Director Virtual School of Molecular Sciences, domestic
net connection
VSMS http://www.nottingham.ac.uk/vsms, Virtual Hyperglossary
http://www.venus.co.uk/vhg

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