OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: external dtd subset content

[ Lists Home | Date Index | Thread Index ]
  • From: Paul Prescod <papresco@technologist.com>
  • To: xml-dev@ic.ac.uk
  • Date: Tue, 16 Dec 1997 11:08:51 -0500

Peter Murray-Rust wrote:
> Good point! I have never really understood why it's necessary to have
> consistency between the root element and the doctypedeclName. 

The docTypeDeclName exists specifically to state the root element type.

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

Think about what the code above means in *HTML*:

<HTML> <!-- implied -->
<BODY> <!-- implied -->
<P>This is a para</P>
</BODY <!-- implied -->
</HTML> <!-- implied -->

Now I suspect you understand why the docTypeDeclName exists and in XML
must always be the same as the type of the explicitly tagged root
element. Since XML has no minimization, it is redundant of course.
WebSGML allows you to use the keyword #IMPLIED (but XML does not) to
remove that redundancy.

 Paul Prescod



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





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS