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

Re: SAX and delayed entity loading

  • From: <david@m...>
  • To: "XML Developers' List" <xml-dev@i...>
  • Date: Wed, 2 Dec 1998 21:30:07 -0500 (EST)

Re: SAX and delayed entity loading
Gabe Beged-Dov writes:

 > Well, entities are a confusing area of XML :-).  linking is
 > currently "missing in action" in most implementations that are
 > available. Much hay is made of XML's ability to gracefully handle
 > large information sets over the public internet.  Are you saying
 > that external parsed entities are not intended to play any role in
 > addressing how to deal with incremental loading of XML documents?

I'm saying, at least, that they should not be used in that way.
External entities should be used exclusively as a convenience to the
author: to break up a long document into several parts, or to allow a
document to be assembled from several sources.  You can do some pretty
fun things with external entities and URLs, such as the following:

  <!ENTITY table SYSTEM "http://www.host.com/cgi-bin/make-weather-table">

Every time the document is parsed, the parser (if it supports external
entities) will automatically request the latest weather table from
this (fake) CGI.  You could also assemble a document from many
different hosts: Chapter 1 could be in Phoenix, Chapter 2, in
Singapore, Chapter 3 in Milan, etc.; to the parser, it would all still
be a single document.  Of course, this would be a silly choice in a
time-critical environment, but it is the author's silly choice (just
as putting a document on a slow server is an author's choice).

External parsed entities have to do with the author's view of the
document, not with the reader's/receiver's view.  XML 1.0 should
either have forbidden external parsed entities or made support for
them compulsory; by including them but allowing them to be skipped,
the spec has caused a great deal of unnecessary confusion and
implementation headaches.

 > I guess I am looking for a pragmatic explanation of what the mix of
 > political vs. technical issues is involved in external entity usage. Given
 > the fact that a non-validating processor isn't even required to handle them,
 > I'm still struggling to see if they and the associated NOTATION facilities
 > are going to be useful to most XML users.

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.


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