Issue


Google Sitemap generating but when I open the link its blank.

when I open it in Firefox then getting the below error:

Error loading stylesheet: Parsing an XSLT stylesheet failed.

But, Default Magento sitemap working perfectly. below is the default Magento sitemap


Solution:


The style issue with the file XML site map happens when enabling Nginx page speed module.

The module Nginx page speed adds some tags on the page xmlsitemap/index/style, so it breaks style of our module.

To fix this conflict, we would like to give the hot-fix as follows:


Step 1: Edit this file app/code/Bss/XmlSiteMap/Model/Sitemap.php


Step 2: add file /var/www/codearrow/pub/style-sitemap.xsl (the attachment file)


In case you want to change the style page sitemap.xml, you could customize it on this file. Or if that style is not important on your site, you also could remove line <?xml-stylesheet type="text/xsl" in file sitemap.xml. 


Step 3: Flush the cache.


If you need any further assistance, please feel free to contact us.

We are more than happy to support you.