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

Paul ([email protected])
Wed, 6 Apr 1994 15:17:44 +0100 (BST)


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: [email protected] |
| http://http1.brunel.ac.uk:8080/~ccsrpsw/ |
`-------------------------------------------------------------------------'