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

Entities Was: RE: use cases for d-o-e

Subject: Entities Was: RE: use cases for d-o-e
From: Joerg Pietschmann <joerg.pietschmann@xxxxxx>
Date: Fri, 11 Jan 2002 17:03:10 +0100
use case entities
"Bryan Rasmussen" <bry@xxxxxxxxxx> wrote:
> anyway
> in situations like this it might be useful to output entities into the
> document, because the document is one that will be edited further down the
> line by a human.

Do you expect them to use generic text editors?
I was under the impression that XML editors and related tools
have been evolved to a stage where entities are no longer a
significant advantage.
But i may be biased, my editing environment (Emacs+PSGML, XMetal)
doesn't add much comfort for entities while everything else
is much more enjoyable than using a plain text editor.
Particularly XMetal seems to actively discourage the usage of
As for alternatives: For character references, even moderately
sophisticated editors could display the correct glyph or a human
readable name regardless of what's in the file. For everything
else, either expand it or use markup in case you have to
eleminate redundancies. For example, instead of
  <!DOCTYPE doc SYSTEM "doc.dtd" [
    <!ENTITY author "Random J. Hacker">
    <title>Stuff by &author;</title>
     <para>The person &author; did...
      <person id="author">
        <name>Random J. Hacker</name>
    <title>Stuff by <refname id="author"/></title>
       <para>The person <refname id="author"/> did...
Of course, you'll have to have an editor which can be customized
to do something sensible with the references, and some ressources
to do the customization (the latter is usually the killer).
Hiring a good data designer may also be a good idea (but may
turn out to be a showstopper too, sadly).

As for the relation between entities and performance: until
namespaces were introduced, XML parsers indeed could have
entities preparsed and thereby saved some time. Whether this
would save much is doubtful, because the preparsed tree would
have to be copied when the reference is encountered, an
operation which is nearly as expensive as constructing the
tree by parsing a string. Furthermore, i believe using a similar
optimization in SGML would additionally require some non-trivial
bookkeeping so that no one ever did this back then.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
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.