Support » Plugin: Yoast SEO » Still no XSLT stylesheet loading

Viewing 11 replies - 1 through 11 (of 11 total)
  • Do you have xml-sitemap.xsl in your wordpress home directory ?

    I went to WordPress css directory, copied xml-sitemap.xsl to main-sitemap.xsl in the wordpress home directory.

    Refresh browser, voila, now it can be seen :

    http://www.astrasuite.com/astrablog/sitemap_index.xml

    Your sitemap isn’t visible, and xml-sitemap.xsl shouldn’t be in that directory.

    I have exactly the same problem, and could’nt find a solution. What I have realized is that for Webmaster Tools the XML files are perfectly formed, and for Chrome you can see the XML without any problem. The problem comes when you want to see the file in Firefox:

    Error de lectura XML: mal formado
    Ubicación: https://www.XXXXXXXXXXXX.com/main-sitemap.xsl
    Número de línea 187, columna 34: b[c] += ( window.postMessage && request ? ‘ ‘ : ‘ no-‘ ) + cs;
    ——————————————————^

    Thanks in advance!

    As I said, it’s not a real problem, but I wanted to point out this because changelog says:

    1.4.15
    Bugfixes
    Fix the white XML sitemap errors caused by non-working XSL.

    Yes, I know that is not a real problem, because for Google Webmaster Tools the XML files are correct, but I would like to fix the Firefox visualization also.

    Thanks again tizz, I will much appreciate if you could post any solution or tip about this issue. I will do also.

    “Your sitemap isn’t visible, and xml-sitemap.xsl shouldn’t be in that directory.”

    @tizz, ok, I see what you mean. I can see it in chrome, but not in firefox.

    Many people facing same issue, try adding following code in .htaccess

    # WordPress SEO - XML Sitemap Rewrite Fix
    RewriteEngine On
    RewriteBase /
    RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L]
    RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
    RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [L]
    # END WordPress SEO - XML Sitemap Rewrite Fix

    Thank you but is not working for me.

    Thanks anyway 🙁

    I fixed this issue on 1.5.3.3 by adding next redirect to nginx config:
    rewrite ^/main-sitemap\.xsl$ /index.php?xsl=main last;

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Still no XSLT stylesheet loading’ is closed to new replies.