|
|
 |
Article:
 |
 |
The Road to XHTML 2.0: MIME Types
|
| Subject: |
Doubt |
| Date: |
2003-03-20 14:34:05 |
| From: |
Sérgio Giraldo |
|
|
|
So, how should I test my page for MIME/TYPE ? I didn´t get it. Can I put this the 'application/xhtml+xml' inside the page or this is an issue for my ISP ? You know, I´ve benn serving my pages with 'application/xhtml+xml' in META TAGS for a while and I never heard of this problem.
Furthermore, my page is validated as TEXT/XML no matter the browser I submit (MOZILLA,IE or OPERA).
Thanks for the great article
Sergio
www.milrumos.com.br
|
- Doubt
2003-03-21 08:01:47 Ted Pibil
[Reply]
You can use the mod_rewrite to detect whether or not the UA can handle application/xhtml+xml. Visit here to see how: http://schneegans.de/tips/apache-xhtml.html
It is in German, but you you should get the gist from the htaccess commands.
This is a hack, and if you are a purist, you can save your documents as .xhtml and set the mime type for them, but then your only audience will be Gecko users.
- Testing for MIME type
2003-03-21 06:54:20 Mark Pilgrim
[Reply]
As stated in the article, you can use the "verbose" option of the W3C validator to see the MIME type your web server is sending with your page. The MIME type can not be faked with META tags; it must be sent in the "Content-type" HTTP header by your web server, before it sends the content of your page. There are a number of ways of setting this up, but META tags are not one of them.
|
 |
Sponsored By:
|