Title: [Plugin: XML Sitemap Feed] Stylesheet CSS problem?
Last modified: August 19, 2016

---

# [Plugin: XML Sitemap Feed] Stylesheet CSS problem?

 *  Resolved [G](https://wordpress.org/support/users/gnetworkau/)
 * (@gnetworkau)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-xml-sitemap-feed-stylesheet-css-problem/)
 * When I updated to latest version of xml sitemap feed 3.8, on WordPress MU 3, 
   I was getting error for stylesheet on all my sites. The sitemap would not show,
   just css error.
 * I resolved this by replacing reference to stylesheet in ver 3.8, with that of
   my previous ver 3.6.1. Now all sitemaps work fine.
 * Replace in ver 3.8, line 12:
    <?xml-stylesheet type=”text/xsl” href=”‘.XMLSF_PLUGIN_URL.’/
   sitemap.xsl.php?v=’.XMLSF_VERSION.’&uri=’.str_replace(get_option(‘home’),””,XMLSF_PLUGIN_URL).'”?
   >
 * with this:
    <?xml-stylesheet type=”text/xsl” href=”‘.get_option(‘home’).’/’.str_replace(
   ABSPATH,””, XMLSF_PLUGIN_DIR).’/sitemap.xsl.php?v=’.XMLSF_VERSION.'”?>
 * [http://wordpress.org/extend/plugins/xml-sitemap-feed/](http://wordpress.org/extend/plugins/xml-sitemap-feed/)

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/plugin-xml-sitemap-feed-stylesheet-css-problem/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-xml-sitemap-feed-stylesheet-css-problem/page/2/?output_format=md)

 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-xml-sitemap-feed-stylesheet-css-problem/#post-1609386)
 * Yes, there seems to be some problem with the `& amp;` in the stylesheet URL for
   some sites. Do you have any plugin like WP Minify or W3 Total Cache that enables
   minify on your site by any chance? As far as I can tell, that is the only commonality
   between the sites that show this problem.
 * If you can give me a URL to your sitemap, I can take a look. Hopefully I can 
   pin this weird issue 🙂
 *  [Michael Bishop](https://wordpress.org/support/users/miklb/)
 * (@miklb)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-xml-sitemap-feed-stylesheet-css-problem/#post-1609525)
 * I’m not using any minify plugin and am experiencing the issue as well. Still 
   sorting out other legacy sitemap files so I’m not ready to give any links.
 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-xml-sitemap-feed-stylesheet-css-problem/#post-1609555)
 * If you wish to keep the URL private but still would like me to take a look, you
   can send it to me via the contact form on [http://4visions.nl/contact/](http://4visions.nl/contact/)
   🙂
 *  Thread Starter [G](https://wordpress.org/support/users/gnetworkau/)
 * (@gnetworkau)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-xml-sitemap-feed-stylesheet-css-problem/#post-1609602)
 * Thanks RavanH for your emails/tips, I tried the latest 3.8.3 but still had same
   problem. Reverted to my above hack, and it works fine.
 *  Thread Starter [G](https://wordpress.org/support/users/gnetworkau/)
 * (@gnetworkau)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-xml-sitemap-feed-stylesheet-css-problem/#post-1609603)
 * [http://gnetwork.com.au/sitemap.xml](http://gnetwork.com.au/sitemap.xml)
 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-xml-sitemap-feed-stylesheet-css-problem/#post-1609604)
 * In the latest revision, I’ve completely done away with that & part of the stylesheet
   URI so the next update should work for you without having to hack again 🙂
 * Thanks for your input!
 *  Thread Starter [G](https://wordpress.org/support/users/gnetworkau/)
 * (@gnetworkau)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-xml-sitemap-feed-stylesheet-css-problem/#post-1609619)
 * hacked again the 3.8.5
 *  [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-xml-sitemap-feed-stylesheet-css-problem/#post-1609687)
 * Just wanted to note that W3TC does not minify .xml files by default.
 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-xml-sitemap-feed-stylesheet-css-problem/#post-1609688)
 * [@frederick](https://wordpress.org/support/users/frederick/)
    In the case of 
   XML Sitemap Feed, it’s not a file but a feed… Does W3TC minify feeds?
 *  [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-xml-sitemap-feed-stylesheet-css-problem/#post-1609691)
 * Only when the option is selected on the page cache settings tab and the XML is
   generated dynamically.
 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-xml-sitemap-feed-stylesheet-css-problem/#post-1609692)
 * So that option is not set by default? Could you give me a (very) short description
   of which option (and where) a W3TC user should check to get caching of the dynamic
   XML feed? And I suppose that the cache is cleared upon each new publication?
 * I do not use W3TC myself but I’d like to include it in the FAQ’s of XML Sitemap
   Feed 🙂
 *  [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-xml-sitemap-feed-stylesheet-css-problem/#post-1609697)
 * There’s an checkbox option on the page cache settings tab to cache feeds. They
   will expire according to the expires field value on the browser cache setting
   for HTML.
 *  Thread Starter [G](https://wordpress.org/support/users/gnetworkau/)
 * (@gnetworkau)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-xml-sitemap-feed-stylesheet-css-problem/#post-1609723)
 * I tried hacking the new 3.8.7, no joy, same problem. I will stay with my hacked
   3.8.5 for now.
 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-xml-sitemap-feed-stylesheet-css-problem/#post-1609724)
 * Hi G, could you re-download [http://downloads.wordpress.org/plugin/xml-sitemap-feed.3.8.7.zip](http://downloads.wordpress.org/plugin/xml-sitemap-feed.3.8.7.zip)(
   not the 3.8.7 version you downloaded before) and install that in your mu-plugins
   dir to see if it works now? If not, please wait with reverting to your hacked
   version and let me know so I can take a look at the incorrect URL output that
   is being generated… Thanks 🙂
 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-xml-sitemap-feed-stylesheet-css-problem/#post-1609726)
 * I’ve (finally) been able to reproduce the problem on another server running Apache
   2.2.3 and PHP 5.1.6 on linux CentOS (no idea which version)… Any similarities
   with the server you are using? This looks like a bug in the WP internal function
   plugins_url() when installed in mu-plugins 🙁
 * If I can find any hints about why/when this is happening, I can file a bugreport.
 * Meanwhile, I applied your hack to my plugin. The latest 3.8.7 should be working
   on your server too 🙂

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/plugin-xml-sitemap-feed-stylesheet-css-problem/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-xml-sitemap-feed-stylesheet-css-problem/page/2/?output_format=md)

The topic ‘[Plugin: XML Sitemap Feed] Stylesheet CSS problem?’ is closed to new 
replies.

 * ![](https://ps.w.org/xml-sitemap-feed/assets/icon-128x128.png?rev=1112143)
 * [XML Sitemap & Google News](https://wordpress.org/plugins/xml-sitemap-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/xml-sitemap-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/xml-sitemap-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/xml-sitemap-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/xml-sitemap-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/xml-sitemap-feed/reviews/)

## Tags

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

 * 19 replies
 * 4 participants
 * Last reply from: [G](https://wordpress.org/support/users/gnetworkau/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-xml-sitemap-feed-stylesheet-css-problem/page/2/#post-1609733)
 * Status: resolved