[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Why namespaces?

  • From: David Megginson <david@m...>
  • To: "XMLDev list" <xml-dev@i...>
  • Date: Wed, 1 Sep 1999 09:44:58 -0400 (EDT)

Re: Why namespaces?
Oren Ben-Kiki writes (quoting Paul Prescod, I think):

 > > The important point to note is that to *level two*, htmlstrict:P
 > > is not the same as htmlloose:P.
 > 
 > I think this might be the source of our disagreement. I claim it
 > these two are the same; the difference is in the DTD applied to
 > them.

This is the fundamental source of pretty much all of the disagreement
on this thread.  The problem is that a DTD does (and XML Schemas will
do) two entirely different things:

a) supply default values and types; and
b) specify a set of validation rules.

(a) is an essential layer in the interpretation of a document
(assuming that the document author takes advantage of it); (b) is
simply one of many processes that can be applied to an XML document,
and calling it a layer is rather confusing.

As far as I know, the three HTML 4.0 variants differ only in (b), not
in (a), so the differences are not really an essential part of
interpretation -- they affect only one specific type of process,
structural validation.

Applying a structural schema (DTD or otherwise) to a document should
be no different than applying a stylesheet -- in the former case, the
output is a truth value, and in the latter, it is some sort of
rendition.  You can apply many different stylesheets to the same XML
document, and likewise, you should be able to apply many different
structural schemas to an XML document.

This is something that SGML got wrong and XML got right -- SGML
assumed that there was always a *single* DTD that applied to any
existing document (though that never worked in practice, so we always
had to invent kludges for non-trivial systems), so that a document
instance could not exist independently of its schema and vice-versa
(external DTD subsets are not independent objects in SGML, but simply
part of the document that includes them).

By allowing documents without explicit DOCTYPE declarations, XML (and,
eventually, WebSGML) acknowledged that document instances can exist
independently of schemas, and thus, that there can potentially be
*many* schemas applied to any existing document.


All the best,


David

-- 
David Megginson                 david@m...
           http://www.megginson.com/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
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@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.