Re: HTML-PS converter.

Earl Hood (ehood@imagine.convex.com)
Thu, 15 Dec 1994 15:11:05 -0600


>
> 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