W3C home > Mailing lists > Public > www-validator@w3.org > August 2000

XHTML Validator question

From: Mcguigan, Thomas C (Tom), NBSO <tmcguigan@att.com>
Date: Mon, 7 Aug 2000 15:35:16 -0400 (EDT)
Message-ID: <C54F3B5225BED311AAB50090276153230261FC6A@gab200po05.ems.att.com>
To: www-validator@w3.org
Attached please find temp2.htm, which I just tried to validate (using the
file upload function).  The Validator results were:

File: g:\tmcguigan\temp2.htm 
Character encoding: unknown 
Document type: XML 
Below are the results of checking this document for XML well-formedness and

Uh oh! I got the following unknown error:
27:E: omitted tag minimization parameter can be omitted only if "OMITTAG NO"
is specified on the SGML declaration Please make sure you specified the
DOCTYPE properly! 
You should make the first line of your HTML document a DOCTYPE declaration,
like this: 


	  <-- ... body of document ... -->
Or, if you are using features from HTML 4.0, one of these: 

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">

If I remove the first line, the file passes validation.

The file, with the first line in place, passes both the 2000/02/24 version
of Validator and the WDG validator as type XHTML-Strict.

I hope this helps.  If you need any further information, please don't
hesitate to call on me.

Thanks for your quick reply and help with this issue.

Tom McGuigan
User Interface Systems Engineer

-----Original Message-----
From: Christian Smith [mailto:csmith@barebones.com]
Sent: Monday, August 07, 2000 3:00 PM
To: www-validator@w3.org
Cc: Mcguigan, Thomas C (Tom), NBSO
Subject: Re: XHTML Validator question

On Monday, August 07, 2000 at 14:30, tmcguigan@att.com (Mcguigan, Thomas C
(Tom), NBSO) wrote:

> I hope that you can help me with an XHTML question:
> In the XHTML specification, the following appears:
> "Note that in this example, the XML declaration is included. An XML
> declaration like the one above is not required in all XML documents. XHTML
> document authors are strongly encouraged to use XML declarations in all
> their documents. Such a declaration is required when the character
> encoding of the document is other than the default UTF-8 or UTF-16."
> However, when I include the XML declaration:
> 	<?xml version="1.0" encoding="UTF-8"?>
> as the first line on my page, the latest version of Validator flags this
> as an error.  If I remove the declaration, and have my DOCTYPE declaration
> as the first line, the page passes validation.
> Is there a problem with the validator, or should I not be including the
> XML declaration.
> Thank you for clarifying this for me.

An example file would be useful. I've validated XHTML files with 

<?xml version="1.0" encoding="UTF-8"?>

in them with no errors.

Christian Smith  |  csmith@barebones.com  |  http://web.barebones.com

He who dies with the most friends... Is still dead!

Received on Monday, 7 August 2000 15:36:09 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:27 UTC