What is a namespace ... really?

Roger L. Costello costello at mail11.mitre.org
Fri Jan 15 19:08:22 GMT 1999


James Tauber wrote:

>>(2) A namespace is a URI to a DTD.
>
>No. It doesn't have to be at all (although it *could* be and a URI for a
DTD
>is as good a URI as any and better than most)

What good is a namespace if it *doesn't* reference a DTD?

e.g.,

<BookCatalogue xmlns="http://anywhere-is-fine">
   ...
</BookCatalogue>

There is no way for a parser to validate the stuff between <BookCatalogue>
and </BookCatalogue>.  It seems like the *main* benefit to be gained from
using namespaces should be the ability for an XML document to reuse other
DTDs and validate against those DTDs, i.e., your document becomes an
assembly of independently validated elements from various DTDs.  /Roger


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