<?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>Web Development Blog &#187; An XSLT stylesheet does not have an XML mimetype</title>
	<atom:link href="http://www.developerweb.co.uk/tips/an-xslt-stylesheet-does-not-have-an-xml-mimetype/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.developerweb.co.uk</link>
	<description>Richard Havelock: Freelance Web Designer &#38; Developer based in Newcastle upon Tyne</description>
	<lastBuildDate>Sun, 22 Aug 2010 19:43:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>An XSLT stylesheet does not have an XML mimetype</title>
		<link>http://www.developerweb.co.uk/an-xslt-stylesheet-does-not-have-an-xml-mimetype/</link>
		<comments>http://www.developerweb.co.uk/an-xslt-stylesheet-does-not-have-an-xml-mimetype/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 17:35:49 +0000</pubDate>
		<dc:creator>Web Developer</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[An XSLT stylesheet does not have an XML mimetype]]></category>
		<category><![CDATA[Bug fixes]]></category>
		<category><![CDATA[coding solution]]></category>
		<category><![CDATA[Sitemap]]></category>
		<category><![CDATA[web developer]]></category>

		<guid isPermaLink="false">http://www.developerweb.co.uk/?p=273</guid>
		<description><![CDATA[I have recently been brushing up on my WordPress knowledge for a blog I have created for a client. While working on the blog I noticed that the error below displayed when trying to view a dynamically generated sitemap (/sitemap.xml) in my Firefox browser:
Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype:
http://DOMAIN_NAME.com/wp-content/plugins/google-sitemap-generator/sitemap.xsl
The [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-337 alignleft" title="wordpress-blue" src="http://www.developerweb.co.uk/wp-content/uploads/2010/07/wordpress-blue.jpg" alt="WordPress logo in blue" width="200" height="200" />I have recently been brushing up on my WordPress knowledge for a blog I have created for a client. While working on the blog I noticed that the error below displayed when trying to view a dynamically generated sitemap (/sitemap.xml) in my Firefox browser:</p>
<p><strong>Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype:</strong></p>
<p><strong>http://DOMAIN_NAME.com/wp-content/plugins/google-sitemap-generator/sitemap.xsl</strong></p>
<p>The sitemap was created by the superb Google XML Sitemaps plugin for WordPress and after a quick bit of research on Google I came across <a title="Visit Article" href="http://tutsarena.com/2009/03/fixing-an-xslt-stylesheet-does-not-have-an-xml-mimetype-error/" target="_blank">this article</a> at tutsarena.</p>
<p>It is important to mention that the error only occurs in the Firefox browser and not Internet Explorer  (for a change). The error is not WordPress &#8211; specific but was actually related to the Apache server the client&#8217;s website was hosted on.</p>
<p>To fix the error add the following line of code to the bottom of your .htacces file (found in the root of your site):</p>
<address>AddType text/xsl xsl</address>
<p>This adds the MIME type for XSL, which was missing from the list of MIME types on the client&#8217;s server.</p>
<p>If you are still having problems try adding the below line of code as well as the above code into the .htacces file:</p>
<address>AddType application/xml xml</address>
<p>This should sort everything out nicely.</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">
<p>This is a quick fix for anyone who has seen the following error  appear when trying to edit a WordPress theme through the admin section:</p>
<p><strong>The Requested Theme Does Not Exist</strong></p>
<p>I remember seeing this and immediately fearing the worst (that I had  broken my WordPress blog somehow) but I had a think of what I had been  changing on the site before I got this error (the CSS file) and after a  quick look on Google I found <a title="Go to the article" href="http://www.bigfootwebmarketing.com/2007/11/25/heres-a-weird-one-the-requested-theme-does-not-exist-when-in-theme-editor/" target="_blank">this article</a>.</p>
<p>The article mentions that the commented-out information at the top of  the CSS file (containing the theme details) is used by WordPress to  pull out the theme name:</p>
<pre>/*
Theme Name: WordPress Default
Theme URI: http://wordpress.org/
Description: The default WordPress theme based on the famous &lt;a href="http://binarybonsai.com/kubrick/"&gt;Kubrick&lt;/a&gt;.
Version: 1.6
Author: Michael Heilemann
Author URI: http://binarybonsai.com/
Tags: blue, custom header, fixed width, two columns, widgets

 Kubrick v1.5

http://binarybonsai.com/kubrick/

 This theme was designed and built by Michael Heilemann,
 whose blog you will find at http://binarybonsai.com/

 The CSS, XHTML and design is released under GPL:

http://www.opensource.org/licenses/gpl-license.php

*/</pre>
<p>At the time I wasn&#8217;t too familiar with WordPress and had just deleted  the code to save about 15 lines in my CSS file. If you delete the code  or use certain special characters in the theme name (such as an  ampersand &#8211; &amp;) WordPress cannot find the theme and display the  templates or CSS in the admin section for you.</p>
<p>To fix this quite simply check the commented code at the top of the  theme&#8217;s CSS for any characters which may be causing the error. Or if you  did what I had done and delete the commented code completely, put it  back in via ftp and WordPress will load up the editor section straight  away.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.developerweb.co.uk/an-xslt-stylesheet-does-not-have-an-xml-mimetype/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>