<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Error Message &#187; XSLT</title>
	<atom:link href="http://www.theerrormessage.com/category/xslt/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theerrormessage.com</link>
	<description>Fix your error</description>
	<lastBuildDate>Tue, 13 Dec 2011 20:16:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>An XSLT stylesheet does not have an XML mimetype:</title>
		<link>http://www.theerrormessage.com/2007/06/an-xslt-stylesheet-does-not-have-an-xml-mimetype/</link>
		<comments>http://www.theerrormessage.com/2007/06/an-xslt-stylesheet-does-not-have-an-xml-mimetype/#comments</comments>
		<pubDate>Sat, 09 Jun 2007 02:01:59 +0000</pubDate>
		<dc:creator>gbl</dc:creator>
				<category><![CDATA[Apache Web Server]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[XSLT]]></category>

		<guid isPermaLink="false">http://www.theerrormessage.com/2007/06/08/an-xslt-stylesheet-does-not-have-an-xml-mimetype/</guid>
		<description><![CDATA[Full error message: Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype: Error occured on Firefox 2.0 when working with XML, XSLT. xml file: &#60;?xml version="1.0" encoding="utf-8" ?&#62; &#60;?xml-stylesheet type="text/xsl" href="product-list.xslt"?&#62; &#60;f&#62;PRODUCT DETAILS&#60;/f&#62; xslt file &#60;?xml version="1.0" encoding="UTF-8" ?&#62; &#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&#62; &#60;stylesheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform"&#62; &#60;template match="/"&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Full error message: <em>Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype:</em></p>
<p>Error occured on Firefox 2.0 when working with XML, XSLT.</p>
<p>xml file:</p>
<pre class="code brush:xhtml">
&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;?xml-stylesheet type="text/xsl" href="product-list.xslt"?&gt;
&lt;f&gt;PRODUCT DETAILS&lt;/f&gt;
</pre>
<p>xslt file</p>
<pre class="code brush:xhtml">
&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;stylesheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform"&gt;
&lt;template match="/"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;title&gt;aaa&lt;/title&gt;
&lt;/head&gt;
&lt;body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="alert('x');"&gt;
&lt;value-of select="f"/&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;/template&gt;
&lt;/stylesheet&gt;</pre>
<p>The error occurs because the web server (in my case Apache) had this entry in the mime.types file:</p>
<pre class="code brush:plain">text/xml            xml xsl</pre>
<p>The fix in my case is:<br />
<strong>Change extenstion from <em>xslt</em> to <em>xls</em> on the stylesheet file or add <em>xslt </em>to the <em>text/xml</em> entry in mime.types file in Apache.<br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.theerrormessage.com/2007/06/an-xslt-stylesheet-does-not-have-an-xml-mimetype/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

