|
Posted by Neo Geshel on 04/21/07 21:01
Jukka K. Korpela wrote:
> Scripsit Benjamin Niemann:
>
>> <http://triin.net/2006/06/12/HTML#document-types> might be what you
>> are looking for. The author analyzed ~1.2 million documents.
>> Unfortunately Googles Web Authoring Statistics
>> <http://code.google.com/webstats/>, which analyzed a much larger
>> number of documents, did not look at the DOCTYPE declaration...
>
> What makes you think the DOCTYPE declaration determines whether a
> document is in fact an XHTML document? In principle, it simply specifies
> the DTD that the document purports to comply with. It cannot actually
> _make_ a document an XHTML document, any more than a boilerplate text
> "This message is certified virus free" makes anything virus free. In
> practice, there is a huge number of pages that are a horrendous mix of
> HTML and XHTML with lots of syntax errors, using an XHTML DOCTYPE.
>
You are entirely correct. I have seen some pretty scary tag soup sites
out there.
A true XHTML document would be typified by the following:
• Have an XHTML Doctype, preferably 1.0 Strict or 1.1
• Validate as that type, without any errors
• Use the UTF-8 or UTF-16 character set
• Be served with an application/xhtml+xml mime-type. It can also be
served with application/xml or text/xml, but only if the first cannot be
used.
My original request is mostly geared to the notion, “how many people are
*trying* to create XHTML sites, regardless of actual success in meeting
true XHTML conformation”; but I am also interested in knowing the
prevalence of “pure” XHTML sites.
...Geshel
--
***********************************************************************
My return e-mail address is an automatically monitored spam honeypot.
Do not send e-mail there unless you wish to be reported as a spammer.
Please send all e-mail to my first name at my last name dot org, with
a subject-line of “NEWSGROUP REPLY FOR NEO GESHEL” (all uppercase).
***********************************************************************
Navigation:
[Reply to this message]
|