[Home] [By Thread] [By Date] [Recent Entries]

  • To: xml-dev@l...
  • Subject: Re: A heavier-weight proposal for character entity definition
  • From: Tim Bray <tbray@t...>
  • Date: Wed, 06 Feb 2002 20:46:20 -0800
  • References: <342102887.1013070987@localhost>
  • User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.7) Gecko/20011221

James Clark wrote:

> Interesting.  Those are compelling use cases but this significantly 
> complicates things.  In particular, automatically using entities on 
> output becomes much more complicated.  Instead of a simple hash table 
> that maps character codes to entities, you have to have a trie.  I also 
> see a slippery slope opening up here:


Indeed.  In practice, it seems that giving characters names creates very
few problems, while general-purpose macros of zero arguments (aka
entities) are very expensive.  Maybe there's an 80/20 point for math
and the rest of the special-character-intensive communities with
some form of single-character-replacement.  -Tim


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member