Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



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

Answer / 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

More HTML DHTML Interview Questions

What are the different ways to use different colors for different links or same link?

0 Answers  


Define attributes in html tag.

0 Answers  


How we can insert copy right on browser page?

0 Answers  


What do you mean by session storage in HTML5?

0 Answers  


What is web storage in html?

0 Answers  


Give an example of new elements in html5 to support multimedia and graphics?

0 Answers  


What is the difference between html and xhtml?

2 Answers  


Can we write html in javascript?

0 Answers  


Write an example that shows every attribute must have a value in xhtml?

0 Answers  


How to increase the font size in html?

0 Answers  


What is meta tags? Why it is used?

0 Answers  


Which browsers support dhtml?

1 Answers  


Categories