W3C home > Mailing lists > Public > www-html@w3.org > December 2002

Forcing IE to Show Application/xhtml+xml pages

From: Richard Norman <normri@samc.com>
Date: Mon, 30 Dec 2002 12:10:31 -0800
Message-Id: <se1037c2.062@samc.com>
To: <www-html@w3.org>
Cc: <chipple@chipple.net>

To all,
 
I found something interesting.
 
With the new W3 pages, I kept getting a download prompt for trying to
view the Markup directory.  I found the key in the WIndows Registry that
tells all HTML browsers what MIME types are available.
 
This is a workaround until browsers fully support XHTML, but it seems
to work out well for me cause the prompt went away.
 
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/xhtml+xml]
"CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}"
"Extension"=".xhtm"
"Encoding"=hex:08,00,00,00
 
That is what I entered into my registry.  What this does is register
the .xhtm extension to the application/xhtml+xml MIME type (Copied the
text/html MIME entry and modified it).  While this only treats it as
html, it will get those with IE to be able to view the pages without
that annoying download prompt I was getting.  The application/xml or
text/xml MIME type did not display the page properly.  I'm assuming  the
XML parser in Windows does not understand the HTML properly and does on
present the transforms the way it should be.
 
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/xhtml+xml]
"CLSID"="{48123bc4-99d9-11d1-a6b3-00c04fd91555}"
"Extension"=".xhtm"
"Encoding"=hex:08,00,00,00
 
The Registry entries here are just for reference if you want to try it
(the above sample is for setting the MIME type to be the same as
application/xml).
 
Here is a link to the Microsoft article explaining the registry
setting.
 
http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/moniker/overview/appendix_a.asp
Also if you are having the problem check this link as well..
http://lists.w3.org/Archives/Public/site-comments/2002Dec/0033.html
 
Anyway, I just wanted to throw it out there as a solution if you are
having the same problems I was having with the W3C site and viewing
pages with the "application/xhtml+xml" MIME type.
 
Again let me state that this does not fix the issue that IE does not
natively understand XHTML fully.  Just gets it to recognize the
"application/xhtml+xml" MIME Type as a web page that can be displayed.
 
Sincerely,
 
Richard K. Norman II
Web/Application Developer
Saint Agnes Medical Center
 
Email: Richard.Norman@samc.com <mailto:Richard.Norman@samc.com>
 
P.S. - Thanks Patrick...
**************************************************************************************************
The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or  the 
sender immediately and do not disclose the contents to any one or make copies.

**************************************************************************************************
Received on Monday, 30 December 2002 15:11:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:53 GMT