SGMLS and HTML+ (Was Re: Toward Closure on HTML)

Paul "S." Wain <Paul.Wain@brunel.ac.uk>
Errors-To: listmaster@www0.cern.ch
Date: Wed, 6 Apr 1994 16:21:19 --100
Message-id: <10054.9404061417@thor.brunel.ac.uk>
Errors-To: listmaster@www0.cern.ch
Reply-To: Paul.Wain@brunel.ac.uk
Originator: www-talk@info.cern.ch
Sender: www-talk@www0.cern.ch
Precedence: bulk
From: Paul "S." Wain <Paul.Wain@brunel.ac.uk>
To: Multiple recipients of list <www-talk@www0.cern.ch>
Subject: SGMLS and HTML+ (Was Re: Toward Closure on HTML)
X-Listprocessor-Version: 6.0c -- ListProcessor by Anastasios Kotsikonas
Content-Length: 2473
Content-Length: 2473
Content-Type: text/plain; charset=US-ASCII
Content-Type: text/plain; charset=US-ASCII
Mime-Version: 1.0
Mime-Version: 1.0
X-Mailer: ELM [version 2.4 PL21]
X-Mailer: ELM [version 2.4 PL21]
This is sort of in follow up to Bert's email about using sgmls to verify
HTML/HTML+, which I deleted earlier today, and now wish I hadnt since it
probably had the answer to what I wanted... but anyway here goes. 

Okay, I did a bit of digging with Archie just now and pulled down
(*drum*roll*) sgmls and then grabbed the htmlplus.dtd.txt from Dave
Raggett's FTP site (the one dated 5th April 1994). So I plugged the two
together and issued the command:

	sgmls ~/sgmls/DTD/htmlplus.dtd.txt ~/public_html/test.html

Anyway after deleting the lines in the DTD (around lines number 296 to
310) that deal with the character sets, I am still down to one or three
errors that I cant seem to place. So here they are. First of all the
HTML that I am using. Note that it isnt a full document and only just a
few lines:

			======test.html======
<HTMLPLUS>
<HEAD>
<TITLE>
This is a HTML+ test file!
</TITLE>
<ISINDEX>
</HEAD>
<BODY>
<H1>
This is some text
</H1>
</BODY>
</HTMLPLUS>
			======test.html======

So when I run this through sgmls using the above command I get:

			========output=======
AVERSION IMPLIED
ACHARSET IMPLIED
(HTMLPLUS
(HEAD
AID IMPLIED
ACHARSET IMPLIED
(TITLE
-tkWWW guide at Brunel ... or yet another fine mess!
)TITLE
)HEAD
(BODY
)BODY
sgmls: SGML error at /user/ccsr/ccsrpsw/public_html/test.html, line 7 at
">":
       Out-of-context H1 start-tag ended HTMLPLUS document element (and
parse)
)HTMLPLUS
			========output=======

Assuming that all the AVERSION, ACHARSET, AID implied stuff is okay
(ideas?) why does sgmls refuse to parse the <H1> tag? (or any tag in the
body to be exact, I tried <EM B>, <BR>, etc). Failing that I even tried
just

<BODY>
this is some text
</BODY>

instead of the bit inside the <BODY></BODY> tags above, and it barfed
on that... and from how I read the DTD plain text (#PCDATA) is a valid
content of a pair of <BODY> tags...

So where am I going wrong? 

Thanks in advance etc etc :)

Paul

.-------------------------------------------------------------------------.
|       Paul S. Wain, (X.500 Project Engineer and WWW/HTTP chappie),      |
|-------------------------------------------------------------------------+
| Computer Centre, Brunel University, Uxbridge, Middx., UB8 3PH, ENGLAND. |
|   VOICE: +44 895 274000 extn 2391       EMAIL: Paul.Wain@brunel.ac.uk   |
|               http://http1.brunel.ac.uk:8080/~ccsrpsw/                  |
`-------------------------------------------------------------------------'