Validation Question


I am trying to validate a file.  I was trying for XTHML transitional but 
am having a problem making it work in NS6/Mozilla (I am having a problem 
getting tables to render properly up with the XHTML doctype - od in 

Anyway, I backed down to html 4.01 and everything renders as desired in 
all four browser.  However when I tried to validate I get the strangest 
result.  The validator output is listed below.  Note the insertion of 
the extra body tags that appear to cause the thing to blow up.  I tried 
everything I could think of including re-writing the file from scratch 
on a new disk to avoid some unseen contamination (ok, I was getting 
desperate :-))

I figure I have to be doing something wrong, but I'll be darned if I can 
see it.  Maybe another set of eyes can spot my error.

Two points, if I take out my </head><body> tags, this code will 
validate.  If I try to validate as XTHML transitional it validates.

I am most confused and would greatly appreciate any help.

Thanks in advance.


Out put follows:

Below is the source input I used for this validation:

1: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
4: <html>
5: <head>
6: <!-- Written by Michael J. Phillips -->
7: <!-- KometCommunications -->
8: <!-- Orange County Rebel Riders Web Page Project -->
9: <!-- Copyright 2001, 2002 -->
10: <!-- File:  index.htm (sd02) ver 2.0 xhtml/css -->
11: <title>Orange County Rebel Riders</title>
14: <meta http-equiv="Content-Type" content="text/html; 
charset=windows-1252" />
16: </head>
18: <body>
19: test stuff
20: </body>
21: </html>

Parse Tree

You can also view this parse tree without attributes by selecting the 
appropriate option on the form.

AVERSION CDATA -//W3C//DTD HTML 4.01 Transitional//EN
Orange County Rebel Riders
       ACONTENT CDATA text/html; charset=windows-1252
 > <BODY>  <------inserted body tags
test stuff

Received on Monday, 25 February 2002 10:11:46 UTC