Re: space

> ><pre>
> >PROCEDURE frob
> >BEGIN
> >  IF silly <> foolish THEN
> >    WRITELN("Ooops.");
> >END
> ></pre>
> >
> >is not legal because of the "<>".
> 
>  That's perfectly legal from what I understand.  CDATA entries are only
> terminated by </[a-z]

Parsing the file

	<!doctype html system "html3.dtd">
	<html><head><title>Test</title></head><body>
	<pre>
	PROCEDURE frob
	BEGIN
	  IF silly <> foolish THEN
	    WRITELN("Oooops.");
	END
	</pre></body></html>

produces the following from sgmls:

	sgmls: SGML error at test.html, line 6 at ">":
	       PRE end-tag implied by short start-tag (no GI); not minimizable

In other words, because PRE allows markup within it, any "<" in PRE is
expected to be the start of a valid element, and thus to be followed by
[-\.a-zA-Z]+

///Peter

Received on Tuesday, 24 September 1996 07:14:55 UTC