Does Microsoft Internet Explorer accept the media type
application/xhtml+xml?

Answer Posted / guest

No. However, there is a trick that allows you to serve
XHTML1.0 documents to Internet Explorer as application/xml.

Include at the top of your document the line in bold here:

<?xml version="1.0" encoding="iso-8859-1"?>

<?xml-stylesheet type="text/xsl" href="copy.xsl"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

where copy.xsl is a file that contains the following:

<stylesheet version="1.0"

xmlns="http://www.w3.org/1999/XSL/Transform">

<template match="/">

<copy-of select="."/>

</template>

</stylesheet>

Note that this file must be on the same site as the document
referring to it.

Although you are serving the document as XML, and it gets
parsed as XML, the browser thinks it has received text/html,
and so your XHTML 1.0 document must follow many of the
guidelines for serving to legacy browsers.

Your XHTML document will continue to work on browsers that
accept XHTML 1.0 as application/xml.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the advantage of grouping several checkboxes together?

1143


What is a navigation title?

455


What are attributes and how do you use them?

488


How to set a link to image in html?

483


Why do we need HTML 5 server-sent events?

507






Login form located at the home page acepting the name of the customer and its address, credit card and name of the products, a customer wnats to purchase, after the form has been accepted the website will issue order number for knowing the status.

1899


How do you create an index?

480


What is the need of modular dtds?

461


What are the components of dhtml?

472


What is html server?

430


How do you write a copyright symbol on a web browser page?

437


Are html tags case sensitive?

513


What are web sockets?

559


What is html antiforgerytoken ()?

462


When is it appropriate to use frames?

474