I am getting these errors with my xml site maps:
on /?sitemap=1 "Error loading stylesheet: Parsing an XSLT stylesheet failed."
and on sitemap_index.xml a 404 error.
I have a Nginx server.
I added these rows to nginx.conf:
# START Nginx Rewrites for Rank Math Sitemaps
rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
# END Nginx Rewrites for Rank Math Sitemaps