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)
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.
Why choosing BSS Commerce?
BSS Commerce is a full-service ecommerce agency with 14+ years of experience, supporting 75,000+ customers worldwide. As an Adobe Commerce Solution Bronze Partner and Select Magento Extensions Builder, we deliver trusted end-to-end solutions.
Our core strength is Magento, with 150+ extensions designed to enhance store performance and drive growth. With deep expertise from years of working on Magento websites, we deliver scalable, high-impact solutions backed by strong client trust.
Discover our extensions: https://bsscommerce.com/magento-2-extensions.html
Our top-tier extensions:
- BSS Commerce’s Magento 2 B2B Extension enhances B2B performance with streamlined workflows and tailored pricing strategies.
- BSS Commerce’s Magento 2 SEO Extension improves rankings and maximizes organic growth through advanced SEO automation.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article