On Tue, 8 Mar 2005 08:11:40 -0600, Michael Hamm <ms****@math.wustl.edu>
wrote:
How's browser support for author-defined entities? E.g.:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<!ENTITY foo CDATA "bar"><title>...</title>
<p>I went to the &foo; and had a drink.
Browser support is nil but you could use your own entity definitions at
a preprocessor level using onsgmls and/or osgmlnorm. You may want to
check this example for a simple exercise...
http://www.css.nu/markup/markup-entities.html
How about for replacing already defined ones? E.g.:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<!ENTITY shy CDATA "bashful"><title>...</title>
<p>I'm outgoing but he's .
(Note that is defined in HTML 4.01.)
That would not be a valid attempt any way; following SGML rules you can
not redefine an entity that the parser has already seen.
Have a look at how the HTML Framset DTD gets included in markup and you
will find that the only way that could work is if an entity redefinition
is not allowed.
Btw... Your syntax is wrong in your examples above. Entities shall be
defined in an external or internal subset and you need to mark up your
own entities accordingly. Se source examples at URL above for an example
of correct syntax.
--
Rex