W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2010

Re: show differences between Strict and Transitional

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 21 Sep 2010 11:33:50 +0200
To: Aramis Concepcion Duran <levelb@gmx.de>
Cc: html-tidy@w3.org
Message-ID: <4qug9659jbt0oro48j8gbk3lpnthdhtisd@hive.bjoern.hoehrmann.de>
* Aramis Concepcion Duran wrote:
>I am using HTML Tidy for Linux released on 25 March 2009 to validate an
>HTML document. just one simple question.
>
>Tidy puts out these lines:
>	Info: Doctype given is "-//W3C//DTD XHTML 1.0 Strict//EN"
>	Info: Document content looks like XHTML 1.0 Transitional
>
>I want it to be Strict. So, is there any way to let tidy show me which
>parts of the document don't comply to XHTML 1.0 Strict?
>
>I hope, that's the right list for this question.

This is the right list and no, there is not. Tidy just collects some
rough information about which features are used in the document, and
then compares that with the specified version when it finished parsing
the document. It will also not complain about, say, missing quote marks
around attribute values, even though these are required in XHTML, and
prefers to simply correct problems like that. To check whether your
document conforms to some particular HTML or XHTML specification you
are better off with <http://validator.w3.org/>.

Note that you can download the XHTML DTDs and then use generic XML
tools, like xmllint which comes with libxml2, to check whether your
document is well-formed and meets the constraints of the XHTML DTDs,
even from the command line in case of xmllint.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Tuesday, 21 September 2010 09:34:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:14:00 GMT