- From: Jan Christian Anker <jc.anker@anker-zemer.no>
- Date: Sat, 13 May 2006 18:25:56 +0200
- To: Lachlan Hunt <lachlan.hunt@lachy.id.au>
- Cc: www-validator@w3.org
- Message-ID: <C4E8541478181743A6E778EF24B892E60D2A29@EXCHANGE>
Thanks, this was a step forward! Here are the first lines of the document: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html> <head> <title>whatever</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <meta name="Author" content="ANKER-ZEMER Engineering AS, webmaster: J.C. Anker" /> <style type="text/css"> </style> <link href="sr1960.css" rel="stylesheet" type="text/css" /> ... And this I get when I validate: The document located at <http://www. ... was checked and found to be valid XHTML 1.0 Transitional. This means that the resource in question identified itself as "XHTML 1.0 Transitional" and that we successfully performed a formal validation using an SGML or XML Parser (depending on the markup language used). So, I think I have learnt something! Sincerely Yours, Jan Christian Anker __________________________________________________ | ANKER - ZEMER Engineering AS | e-mail: jc.anker@anker-zemer.no | Phone: +47 22 06 44 20 | Visitors' Address: Aslakveien 14 (Inng. A), Rĝa, OSLO | Postal Address: P.O. Box 253, | NO-0702 OSLO, Norway | VAT Reg. no.: 935 562 678 MVA | Web Page: http://www.anker-zemer.com | FSI / CFD: http://www.linflow.com | Founding Member of Technology Network Alliance, | Web Page http://www.caeworld.com __________________________________________________ -----Original Message----- From: Lachlan Hunt [mailto:lachlan.hunt@lachy.id.au] Sent: 13 May, 2006 16:52 To: Jan Christian Anker Cc: www-validator@w3.org Subject: Re: [VE][388] Error Message Feedback Jan Christian Anker wrote: > However, if clicking on an icon yields 36 warning messages for a 100% > correctly written line of coding, This comment: <!-- ----------------- Text etc goes here ----------------- --> is technically valid in HTML 4.01 and other SGML based languages, though its use is not recommended. If you were using an HTML 4.01 DOCTYPE, you would not see any errors, but note that adding just one more hyphen could easily make it invalid HTML. However, it is most certainly invalid in XHTML. The fact that you are seeing "warnings" about this means you must be using XHTML and the fact that you think it's ok, means you're using the wrong MIME type too. This is a problem in XHTML because that comment is not well-formed and, if you were using the correct MIME type, browsers would use an XML parser and immediately stop parsing when they encountered it. In fact, the validator should be issuing errors for this, not warnings, but this is one of its many limitations with XML, due to its origin as an SGML validator. You can see this for yourself if you like. The easiest way, if you are testing from your local file system, is to give the file a .xml or .xhtml extension, then load it up in a browser that supports XHTML. If you need to test from a web server, then it involves sending the correct MIME type in the HTTP headers: either application/xhtml+xml or application/xml (Note: that does not involve changing the value of a certain meta element that is commonly misused for such purposes.) -- Lachlan Hunt http://lachy.id.au/
Received on Saturday, 13 May 2006 15:21:52 UTC