W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2000

Re: Comments on DOM 2

From: Dieter Köhler <dieter.koehler@ppp.uni-bamberg.de>
Date: Wed, 01 Mar 2000 22:02:09 +0100
Message-ID: <38BD8551.8C2BB7B8@ppp.uni-bamberg.de>
To: David Brownell <david-b@pacbell.net>, "www-dom@w3.org" <www-dom@w3.org>
David Brownell wrote:

> As I'd commented in my post (archive URL above), there seems to be
> an assumption that document type is an _external_ notion, which is
> manifestly not the model of XML.  MIME does it that way, for a much
> weaker notion of "type", though.

I totally agree with your archived post, that a DTD is something
internal to an XML document and that the DOM should has to be very
aware of that fact.  The problem now is, that the document node does
not represent the whole XML document, but only the part starting with
the root tag.  You suggested in your archived post, that the document
node should create the DocumentType node.  That is exactly the way my
experimental DOM implementation in Delphi (see the link in the
signature) handles it.

But when I was thinking about external DTDs, I found, that it might be
better to have a more flexible solution, because it could speed up
things if one is able to reuse the same DTD tree (Yes, DTD trees are
not defined in DOM1 or 2, as you know, but are implemented in my
experimental version) without having to rebuild the tree every time
one is parsing a new document.  For the reason of parsing external
DTDs the factory method for creating a documentType node should be
located in the DOMImplementation (or we need a special externalDTD
node).  So the application can keep a list of already parsed external
DTDs and re-use them on demand.  However, we need a better solution
for internal DTDs.

-- 
=====================================================================
 Dieter Koehler, M. A. - dieter.koehler@ppp.uni-bamberg.de
 Mittlere Kaulberg 22, D-96049 Bamberg, +49(0)951-5190726
 "http://www.philo.de/Philosophie-Seiten/": 1000+ Philosophie-Links
 "http://www.philo.de/VirtualLibrary/14.de.htm": Deutsche Philo-Links
 "http://www.philo.de/xml/": Open XML - XML-Komponenten fuer Delphi
=====================================================================
Received on Wednesday, 1 March 2000 16:03:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:47 GMT