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

Re: SAX and delayed entity loading

  • From: "W. Eliot Kimber" <eliot@d...>
  • To: "XML Developers' List" <xml-dev@i...>
  • Date: Thu, 03 Dec 1998 10:12:05 -0600

re sax
At 09:30 PM 12/2/98 -0500, david@m... wrote:
>I think that notations and unparsed entities in XML have proven
>themselves to be non-starters.  They worked well in the SGML and have
>done me good service, but MIME types and hrefs provide the same
>functionality (if somewhat weaker validation) and they work with or
>without a document type declaration.

I can't agree with David's statement that MIME types and hrefs provide the
same functionality as notations and external data entities.  They are
similar, but weaker:

1. href provides no indirection mechanism, which is one of the key points
of entities. By concentrating the mapping of local names to storage objects
in the document prolog, processors (and authors) do not need to scan an
entire document to know what the doc-to-entity dependencies are.  For small
docs this doesn't really matter, but for very large docs, this can be a
significant savings. This is why the HyTime bounded object set facility is
defined in terms of entity declarations and not entity references.

2. Notations provide a richer degree of data type specification that is
more flexible and more generally applicable than MIME types.  For example,
how do you apply a MIME type to an element or attribute?  Notations are one
of the most underappreciated aspects of SGML.

The fact that you need a DOCTYPE declaration to use them is a minor
problem, but having a DOCTYPE declaration doesn't mean you have a DTD, it
only means you have the minimum declarations needed to understand a
document.  I think we should be careful to distinguish documents with no
explicit prolog from documents with no explicit element type declarations.
My personal opinion is that SGML has inappropriately conflated the element
type declarations with the entity declarations. The former define the
syntactic rules for the document, the latter define the storage
organization of the document. These are two fundamentally different and
unrelated things and should be completely syntactically separated.  It is
unfortunate that they are not.  [I do agree with David that XML should
never have included external text entities.]

Of course, the use or non-use of entities and notations is a data
management choice that has to be made on a case-by-case basis. There are
certainly classes of document for which the indirection of entities does
not provide sufficient benefit to justify the cost. But that isn't the case
for all XML documents.

So saying that entities and notations are non-starters is, I think, a bit
strong.

Cheers,

E.
--
<Address HyTime=bibloc>
W. Eliot Kimber, Senior Consulting SGML Engineer
ISOGEN International Corp.
2200 N. Lamar St., Suite 230, Dallas, TX 75202.  214.953.0004
www.isogen.com
</Address>

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/
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.