Re: space

Peter Flynn (pflynn@curia.ucc.ie)
24 Sep 1996 12:15:17 +0100


Date: 24 Sep 1996 12:15:17 +0100
From: Peter Flynn <pflynn@curia.ucc.ie>
Subject: Re: space
To: www-html@w3.org
Cc: wmperry@aventail.com
Message-id: <199609241115.MAA10999@curia.ucc.ie>

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