Title: sitemap error loading stylesheet
Last modified: August 18, 2016

---

# sitemap error loading stylesheet

 *  [podictionary](https://wordpress.org/support/users/podictionary/)
 * (@podictionary)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/sitemap-error-loading-stylesheet/)
 * I have installed the Google Sitemap Generator plugin and it appears in the dashboard
   as it should. However, when I look at what it generates I see:
    _Error loading
   stylesheet: An XSLT stylesheet does not have an XML mimetype:[http://www.podictionary.com/wp-content/plugins/google-sitemap-generator/sitemap.xsl](http://www.podictionary.com/wp-content/plugins/google-sitemap-generator/sitemap.xsl)
   I don’t know why or how to fix. Any clues?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Arne](https://wordpress.org/support/users/arnee/)
 * (@arnee)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/sitemap-error-loading-stylesheet/#post-564991)
 * Hi,
 * the plugin used the wrong location for your XSLT file since you’ve installed 
   WordPress in a separate folder. Please try the new beta (3.0b7) and let me know
   if that fixes your problem 🙂
 * Best regards,
 *  Arne
 *  Thread Starter [podictionary](https://wordpress.org/support/users/podictionary/)
 * (@podictionary)
 * [19 years ago](https://wordpress.org/support/topic/sitemap-error-loading-stylesheet/#post-565054)
 * Thanks Arne
    I have upgraded as you suggest and that did not work. But your hint
   that it was pointing to the wrong file path allowed me to put in a second (fake)
   file path for it to point to the right file and it is now working with this temporary
   workaround.
 *  [globalkris](https://wordpress.org/support/users/globalkris/)
 * (@globalkris)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/sitemap-error-loading-stylesheet/#post-565295)
 * I’m having the same problem but do not understand what exactly you did to get
   it working…
 *  [stevehl42](https://wordpress.org/support/users/stevehl42/)
 * (@stevehl42)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/sitemap-error-loading-stylesheet/#post-565300)
 * I, as well, have this problem and do not understand exactly how you got this 
   working. Any help is much appreciated, thanks.
 *  [rankinit2](https://wordpress.org/support/users/mrsdiva/)
 * (@mrsdiva)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/sitemap-error-loading-stylesheet/#post-565304)
 * The sitemap.xls file doesn’t declare a stylesheet. To make it work I did the 
   following:
 * Substitute the following in the sitemap.xls file in the 1st line:
 * FROM:
    <?xml version=”1.0″ encoding=”UTF-8″ ?>
 * TO:
    <?xml version=”1.0″ encoding=”UTF-8″ ?> <!DOCTYPE html PUBLIC “-//W3C//DTD
   XHTML 1.0 Transitional//EN” “[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt);
   <stylesheet version=”1.0″ xmlns=”[http://www.w3.org/1999/XSL/Transform”&gt](http://www.w3.org/1999/XSL/Transform”&gt);
 * This solved the problem for me.
 * Check it out here:
    [Divas Blog](http://www.divas-blog.com)
 * [http://www.divas-blog.com/sitemap.xml](http://www.divas-blog.com/sitemap.xml)
 * Found the answer to problem here:
 * [http://www.theerrormessage.com/2007/06/08/an-xslt-stylesheet-does-not-have-an-xml-mimetype/](http://www.theerrormessage.com/2007/06/08/an-xslt-stylesheet-does-not-have-an-xml-mimetype/)
 *  [max2](https://wordpress.org/support/users/max2/)
 * (@max2)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/sitemap-error-loading-stylesheet/#post-565313)
 * Hi mrsdiva,
 * Thanks!
 * The way you suggested was properly solved my problems in Firefox(FF)
    But when
   I tried to open the URL in IE, it was failed again.
 * Including both your sitemap.xml and my sitemay.xml.
    [http://www.max2.tw/blog/sitemap.xml](http://www.max2.tw/blog/sitemap.xml)
 * In my case,
    Using the code <?xml version=”1.0″ encoding=”UTF-8″?> the result
   is OK for IE , and FF showed the error message.
 * Using the code <?xml version=”1.0″ encoding=”UTF-8″?>
    <!DOCTYPE html PUBLIC “-//
   W3C//DTD XHTML 1.0 Transitional//EN” “[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt);
   <stylesheet version=”1.0″ xmlns=”[http://www.w3.org/1999/XSL/Transform”&gt](http://www.w3.org/1999/XSL/Transform”&gt);
   the result is OK for FF ,and IE showed blank page.
 * Thus I wonder the root cause is the coding-complier in both IE and FF,
    or just
   the setting of my laptop?
 * Is there anyone could appear the sitemap.xml using both IE and FF?
 *  [npen](https://wordpress.org/support/users/npen/)
 * (@npen)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/sitemap-error-loading-stylesheet/#post-565315)
 * I have been having a problem like this as well. Here is what I did to get mine
   working in FF and IE
 * I changed this `<?xml version="1.0" encoding="UTF-8"?>` to this `<?xml version
   =”1.0″ encoding=”UTF-8″?>
    <?xml-stylesheet type=”text/xsl” href=”product-list.
   xslt”?>` in the sitemap.xml file. THEN… I added this AddType application/xml .
   xsl to my .htaccess and now everything seems to be working fine for me.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘sitemap error loading stylesheet’ is closed to new replies.

## Tags

 * [sitemap](https://wordpress.org/support/topic-tag/sitemap/)
 * [Stylesheet](https://wordpress.org/support/topic-tag/stylesheet/)

 * 7 replies
 * 7 participants
 * Last reply from: [npen](https://wordpress.org/support/users/npen/)
 * Last activity: [18 years, 2 months ago](https://wordpress.org/support/topic/sitemap-error-loading-stylesheet/#post-565315)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
