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


Help: OASIS Mailing Lists Help | MarkMail Help



   Namespaces and validation

[ Lists Home | Date Index | Thread Index ]
  • From: Peter Jones <peterj@wrox.com>
  • To: "'xml-dev@ic.ac.uk'" <xml-dev@ic.ac.uk>
  • Date: Mon, 24 Aug 1998 15:19:04 +0100

You'll have to excuse my inexperience with things XML (I've only been at
this a few weeks) but...

When I mailed the list earlier questioning the presence of a qualified
name in the <!DOCTYPE decl of the namespaces spec my concerns were with
the issue of validation.
It seems obvious to me that in order to preserve the general utility of
a DTD for various differing implementations that a DTD should not
contain anything anywhere near as specific as a qualified name. 
Qualified names are created with the use of namespace attributes for
elements. I think in principle the use of namespaces in document
instances is a good idea, as it prevents name collisions in compound
documents. O.k. so far, so banal.
But why don't the namespaces for an element simply give the URI of the
DTD where the element is defined for validation purposes? One document
instance, many bits of DTDs. DTDs are then recycleable.
The best way to achieve this is to remove the DOCTYPE decl from the DTD
and simply have the various elements in the document instance refer to
their respective definitions in DTDs. These namespace attributes can
then be used for validation or ignored as required.

Any thoughts folks?

Peter Jones
WebDev Technical Editor
Wrox Press
Wrox Press UK Ltd.
Tel 44 121 706 6826
Fax 44 121 706 2967

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