DTD's

David Megginson david at megginson.com
Thu May 20 19:00:25 BST 1999


Robert Maher writes:

 > Can anyone tell me how to 'register' DTD's
 > where do you save them to so that when you write
 > <... SYSTEM "blah.dtd"> in your xml file it recognises it?

In XML, the system identifier is a URI.  If blah.dtd is in the same
directory as the top-level document entity (the XML file, in normal
talk), then the parser will probably find it.  In many cases, people
use absolute URIs like

  http://www.foo.com/dtds/blah.dtd

So that the DTD can always be found from any machine, though that
might force a lot of HTTP GETs, depending on your redirection and
caching mechanisms.


All the best,


David

-- 
David Megginson                 david at megginson.com
           http://www.megginson.com/

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/ and on CD-ROM/ISBN 981-02-3594-1
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