W3C home > Mailing lists > Public > www-validator@w3.org > July 2006

Fw: Error Message Feedback (custom DTD document)

From: Charles Robertson <cdesign@btinternet.com>
Date: Tue, 4 Jul 2006 15:24:14 +0100
Message-ID: <006701c69f75$86972440$800101df@DJXPXD1J>
To: <www-validator@w3.org>

----- Original Message ----- 
From: Charles Robertson 
To: olivier Thereaux 
Sent: Tuesday, July 04, 2006 1:43 PM
Subject: Re: Error Message Feedback (custom DTD document)


Thanks very much for the advice Olivier...

I am using a custom DTD, because I am using  <LAYERS> tag to hide certain <DIV> tags that earlier browsers like Netscape 4 don't render correctly.

The <IMG> tag also has an attribute called ALIGN="". The possible values for this attribute are limited with the standard DOCTYPE. I have had to do the following in my custom DTD:

<!ENTITY % IAlign "(top|middle|bottom|left|right|absbottom|absmiddle|baseline|texttop)" -- center? -->

These are the main reasons I am using a custom DTD, although some of my pages, use the following DOCTYPE:

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

Interestingly, the WDG validator parses all my pages successfully. If I cannot overcome the current problem with the W3C validator, can I still claim that my pages are W3C compliant?

One last thing. Alot of my pages use a development language called Coldfusion. The validator seems to have a problem with variables passed in a URL, like:

<A HREF="/mendipmedia/news/index.cfm?sort=Submission_date&sortMethod=DESC&rowstart=1&rowend=10&page=1&action=submit"><IMG SRC="http://localhost:81/mendipmedia/images/arrow_down.gif" ALT="" WIDTH="9" HEIGHT="5" BORDER="0" ALIGN="absmiddle" TITLE="Descending order"></A>

This happens when I try and validate:

http://www.cdesign.me.uk/mendipmedia/news/index.cfm

Any ideas?

Thanks...

Charlie


Charles Robertson (BSc Hons)  MD & Senior Coldfusion MX Development Manager, CDESIGN, Surrey

20 Riverside
Leslie Road
Dorking
Surrey
RH41PR

T: 01306644942
M: 07881987197

E: cdesign@btinternet.com
U: www.cdesign.me.uk



----- Original Message ----- 
From: "olivier Thereaux" <ot@w3.org>
To: "Charles Robertson" <cdesign@btinternet.com>
Cc: <www-validator@w3.org>
Sent: Tuesday, July 04, 2006 6:27 AM
Subject: Re: Error Message Feedback (custom DTD document)


> Dear Charles,
> 
> On Jul 4, 2006, at 01:07 , Charles Robertson wrote:
>> I am trying to validate my document and I am now getting one error,  
>> which I cannot solve:
>>
>> Unknown Parse Mode!
>> I am using a custom DTD at www.cdesign.me.uk/HTML4plus.dtd
>>
>> The page I am trying to validate is http://www.cdesign.me.uk/ 
>> mendipmedia/index.htm
> 
> The message you quote is not an error, just a warning for documents  
> using document types for which the validator can not determine  
> whether they're HTML or XHTML based.
> 
> The fact that the validator (v0.7.2) claims that the document does  
> not validate, however, is indeed a little strange - the development  
> version seems happy with your document:
> 
> http://qa-dev.w3.org/wmvs/HEAD/check?uri=http%3A%2F% 
> 2Fwww.cdesign.me.uk%2Fmendipmedia%2Findex.htm
> 
> In any case, you should probably not serve said DTD with the Content- 
> Type: text/xml. I'm not entirely certain, but if my memory serves me  
> well, you should certainly serve the DTD as text/plain. I'm almost  
> certain this is one of the things that make the validator's parser trip.
> 
> And finally, out of curiosity, why are you using a custom DTD? That  
> should generally be avoided, unless you have a very good reason to  
> use them - and even them, I would strongly recommend not exposing  
> documents based on custom DTDs in the "public" internet, and keep  
> them for internal usage...
> (see http://www.alistapart.com/articles/customdtds2/ for more on the  
> topic)
> 
> Hope this helps,
> -- 
> olivier
> 
Received on Tuesday, 4 July 2006 14:31:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:22 GMT