E-mail List Archives
XHTML Content Negotiation revisited
From: James Pickering
Date: Aug 17, 2005 10:40AM
- Next message: Thomas Jedenfelt: "RE: web access keys"
- Previous message: ben morrison: "Default Text [Was Access Keys]"
- Next message in Thread: Tim Beadle: "Re: XHTML Content Negotiation revisited"
- Previous message in Thread: None
- View all messages in this Thread
(update with re-formulated PHP)
The W3C Tutorial relating to content negotiation http://www.w3.org/2003/01/xhtml-mimetype/content-negotiation mostly relates to Apache. I am working on content-negotiation for my Zeus/3.4 Server. My interim goal is to serve XHTML 1.0 documents as Content-Type application/xhtml+xml -- with XML declaration -- to Firefox browsers and as text/html-- without XML declaration (in order to render in "standards" mode) -- to MSIE browsers.
I have constructed a test page http://www.jp29.org/indexbak.php (a replication of my de facto Home page http://www.jp29.org/ which is served as html 4.01) that I am attempting to serve as application/xhtml+xml in my Firefox 1.0.6 browser and as Content-Type: text/html in my MSIE 6.0 browser.
Checks of my test page served as XHTML 1.0 (strict) Content-Type application/xhtml+xml -- with XML declaration -- in my Firefox 1.0.6 browser:
Firefox Tools/Web Developer/Information/Vew Page Information/View Response Headers
W3C Validator in Verbose mode -- http://validator.w3.org/check?verbose=1&uri=http%3A//www.jp29.org/indexbak.php
Web Caching -- http://www.web-caching.com/showheaders.html
(Added: O'Reilly RUWF facility at http://www.xml.com/pub/a/tools/ruwf/check.html -- for XML being "well formed").
The test page renders as XHTML 1.0 (strict) Content-Type text/html -- without XML declaration -- for me in my MSIE 6.0 browser.
I solicit comments on the validity of my exercise -- and comments in general.
--
James Pickering
- Next message: Thomas Jedenfelt: "RE: web access keys"
- Previous message: ben morrison: "Default Text [Was Access Keys]"
- Next message in Thread: Tim Beadle: "Re: XHTML Content Negotiation revisited"
- Previous message in Thread: None
- View all messages in this Thread