Hi, I've written a web page in which I want to extend <!DOCTYPE> tag to provide some external data. When I load the page in IE, it does not show the expected output. If I rename the page to mypage.xhtml, it is shown in Firefox correctly, but IE doesn't show it. I read on the web that IE doesn't support .xhtml page. What should I do? My requirement is to use some external data in my page, so I want to use DTD in my .html file. Here is the sample code. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" [ <!ENTITY version "1.1"> ]> <html> <head> <title>An Example HTML File</title> </head> <body> <p>This is a paragraph containing some text.</p> <p>This paragraph contains some more text.</p> <p align="right">This paragraph might be right-justified.</p> <p>The current version of this document is: &version;</p> </body> </html> Can anyone help me out? Thank you.
Nothing you can do. Reason #1963 that IE is the worst browser on the planet. However, if you served the page as application/xml, you can use javascript and xslt to make this work but it's probably far more work than you want to do.
As per the current standards some features are not suppoted by IE. To render xml/xhtml data you may take help of JS or some PHP to get the formated data in every browser. Its clean and browser independent.
1) Looks like you are trying to use XHTML methodoligies in a HTML doctype there. 2) Looks like you are trying to do data processing client side, which is usually a steaming pile of /FAIL/ 3) Webria has it right, process that **** server side.