Message-ID: <22FD5BD2DBC5D211BE0D0008C7A4E87FD9B44A@odin4.rito.no> From: Bless Terje <firstname.lastname@example.org> To: "'Braverman, David'" <DBraverman@ingprime.com>, "'email@example.com'" <firstname.lastname@example.org> Date: Tue, 8 Feb 2000 17:35:01 +0100 Subject: Re: XHTML DTD problem? >The following DTD, taken straight from the W3 website: > ><!DOCTYPE html > PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > >Does the following to the validator: > >Uh oh! I got the following unknown error: >/usr/local/bin/nsgmls:http://www.w3.org/TR/xhtml1/DTD/xhtml1-st >rict.dtd:236: >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! > >Am I doing something wrong? I'm not really sure why you are getting that particular error. You should be getting a "Doument type unkown"-style error. The problem is that you are serving the document up as "application/octet-stream" when it should be "text/html". You've probably forgotten to add a mapping from ".xhtml" files to a "text/html" content type. Try renaming it "Experiment.html" and revalidate. http://validator.w3.org/check?uri=http://184.108.40.206/Experiment.html Of course, since the validator doesn't have a mapping for XHTML, you can't serve it as the IMO better alternative "text/xhtml". Try comparing: http://validator.w3.org/check?uri=http://220.127.116.11/Experiment.xhtml http://18.104.22.168/check?uri=http://22.214.171.124/Experiment.xhtml Both are validating the same file, which is being served as text/xhtml, but the W3C version doesn't have a mapping from text/xhtml to "XHTML". In all fairness to Gerald, I was the one that provided that particular config file in the first place, but it would seem that "someone" got so hung up on masquerading XHTML as HTML that they just plain forgot to add the necessary mapping. :-) OTOH, the validator doesn't really grok XHTML served as XML either. In general, there seems to be a great many caveats in the code whenever XML enters the pivture.