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

RE: SAX2 Lexical Handler Suggestions

  • From: Eric Bohlman <ebohlman@n...>
  • To: Kay Michael <Michael.Kay@i...>
  • Date: Thu, 13 Jul 2000 07:14:49 -0700 (PDT)

suggestions for character reference
On Thu, 13 Jul 2000, Kay Michael wrote:

> A general rule: if your application needs to know where the entity
> references are, then you are not using entities the way they were designed
> to be used.

Or you're writing an editor or editor-like application in which, as has
been pointed out before, you need something more than a "simple" API.  The
main characteristic of such applications is that they apply
transformations to human-maintained documents.  If, for example, a
document author defines some entities as "symbolic constants" he or she
would not be a happy camper if the process of editing the document, or
have having bibliographic references looked up, normalized out all those
symbolic constants, any more than a C programmer would be if running his
code through a profiler replaced the preprocessor-defined constants in his
source.  Similarly, if a document is physically divided into multiple
storage units, a transformation shouldn't automatically lump everything
into a single storage unit.

Such applications are relatively rare, but they do exist.  In designing a
truly generic parser API (which, of course, SAX isn't *by design*),
supporting them is probably 90% of the work for 10% of the applications.  
Of course, the original poster was using physical entity structure to
convey logical information, which is a no-no (similar to the one in WML
where a literal dollar sign has a different syntactic meaning from a
numeric character reference to a dollar sign).


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.