[7025] in www-talk@info.cern.ch

home help back first fref pref prev next nref lref last post

Re: HTML-PS converter.

daemon@ATHENA.MIT.EDU (Earl Hood)
Thu Dec 15 16:43:32 1994

Date: Thu, 15 Dec 1994 22:17:04 +0100
Errors-To: listmaster@www0.cern.ch
Reply-To: ehood@imagine.convex.com
From: Earl Hood <ehood@imagine.convex.com>
To: Multiple recipients of list <www-talk@www0.cern.ch>

> 
> The converter is not as kind as certain browsers towards incorrect
> HTML code. For example, Mosaic writes "&lt" as "<", even though the
> trailing semicolon is missing.

Actually, having just "&lt" is legal SGML.  The name of an entity
reference can be explicitly terminated by a ';' or implicitly
terminated when a non-name character is encountered.

Examples:

	<p> 5 &lt 6

    Is legal.  However,

	<p> The &ltp&gt tag denotes paragraphs.

    is legal, but will not give you the proper results.  The parser
    will see the entity reference "ltp".  This will lead to an
    undefined entity reference (unless "ltp" is defined).

With all that said, one should use the ';' to delimit entity references.
It makes life easier for developers of HTML based applications.

	--ewh

home help back first fref pref prev next nref lref last post