adler96
Member
- Messages
- 117
- Reaction score
- 2
- Points
- 18
Hi!
I have a php file which produces xml. This xml file refers to an external xsl file. This xsl file includes an xsl stylesheet which is generated dynamically from a php file.
I am getting the following error (only in Firefox, the rest are working fine):
That's it, the mime type of the php file is not being set correctly, even though at the beginning of my file I am including the lines:
So, basically what I need is that this php file will be evaluated, and at the same time it will be interpreted as an xsl stylesheet.
This code was working perfectly in other hostings, but for some reason it is not working fine here. I have tried modifying the .htaccess file, as suggested in different searches in Internet, but no result.
Any ideas?
I have a php file which produces xml. This xml file refers to an external xsl file. This xsl file includes an xsl stylesheet which is generated dynamically from a php file.
I am getting the following error (only in Firefox, the rest are working fine):
Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype:
http://www.nightearth.com/common.php?get_translation_templates
http://www.nightearth.com/common.php?get_translation_templates
That's it, the mime type of the php file is not being set correctly, even though at the beginning of my file I am including the lines:
<?
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
header("Content-type: text/xml");
?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xslutput method="html" encoding="UTF-8" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" />
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
header("Content-type: text/xml");
?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xslutput method="html" encoding="UTF-8" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" />
So, basically what I need is that this php file will be evaluated, and at the same time it will be interpreted as an xsl stylesheet.
This code was working perfectly in other hostings, but for some reason it is not working fine here. I have tried modifying the .htaccess file, as suggested in different searches in Internet, but no result.
Any ideas?