W3C home > Mailing lists > Public > www-validator@w3.org > April 2008

Re: please add Accept header to http request containing application/xhtml+xml

From: James Pickering <jp29@cox.net>
Date: Tue, 22 Apr 2008 13:09:16 -0400
Message-ID: <20080422130916.DRF08.2902.imail@fed1rmwml11>
To: www-validator@w3.org

>From time to time over the past several years I have served my Home page as 
XHTML 1.0 with Content-Type text/html to IE Browsers and with Content-Type 
application/xhtml+xml to Browsers that recognize that content type -- via 
Content Negotiation. 
My current Home Page -- http://jp29.org/ -- is served in this manner. I compose 
the great majority of my pages using HTML 4.01 Markup (a few using ISO-HTML) and 
they are naturally served as text/html. 
I actually started using Content Negotiation for XHTML documents as an 
experiment to see how the concept worked in practice -- I continue to do so 
mainly just for fun -- I am growing old and need some diversions from serious 
I also employ Content Negotiation for my XHTML+RDFa test page -- 
http://jp29.org/rdfaprimerx.php -- there is no "Appendix C" provision (ala XHTML 
1.0) in the "RDFa in XHTML (Syntax and Processing -  A collection of attributes 
and processing rules for extending XHTML to support RDF) Working Draft" -- 
http://www.w3.org/TR/2008/WD-rdfa-syntax-20080221/ -- if XHTML+RDFa documents 
are served as text/html the W3C Validator adds the following generic note to the 
successful validation report (quote): 
"Warning Conflict between Mime Type and Document Type 
The document is being served with the text/html Mime Type which is not a 
registered media type for the XHTML + RDFa Document Type. The recommended media 
type for this document is: application/xhtml+xml" 
I note that the W3C is currently serving some of their XHTML+RDFa documents as 
Content-Type text/html. 
Received on Tuesday, 22 April 2008 17:09:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:07 UTC