WordPress.org

Ready to get started?Download WordPress

Forums

Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype: (6 posts)

  1. globalkris
    Member
    Posted 6 years ago #

    Hi,

    The generator states that the sitemap was built, and everything seems to be fine in the options page, but when i actually click on the link to where the sitemap should be, I see this:
    Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype:

    I have no idea why this is there or what to do about it. I'm using XML-Sitemap Generator for WordPress 3.0.3

    Thanks.

  2. globalkris
    Member
    Posted 6 years ago #

    anyone?

  3. globalkris
    Member
    Posted 6 years ago #

    bump

  4. mrsdiva
    Member
    Posted 6 years ago #

    The sitemap.xls file doesn't declare a stylesheet. To make it work I did the following:

    Substitute the following in the sitemap.xls file in the 1st line:

    FROM:
    <?xml version="1.0" encoding="UTF-8" ?>

    TO:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <stylesheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform">

    This solved the problem for me.

    Check it out here:
    Divas Blog

    http://www.divas-blog.com/sitemap.xml

    Found the answer to problem here:

    http://www.theerrormessage.com/2007/06/08/an-xslt-stylesheet-does-not-have-an-xml-mimetype/

  5. npen
    Member
    Posted 6 years ago #

    I have been having a problem like this as well. Here is what I did to get mine working in FF and IE

    I changed this <?xml version="1.0" encoding="UTF-8"?> to this `<?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/xsl" href="product-list.xslt"?>`
    in the sitemap.xml file. THEN... I added this AddType application/xml .xsl to my .htaccess and now everything seems to be working fine for me. So some people might want to give this a try and see if it works.

  6. BioTecK
    Member
    Posted 6 years ago #

    Great! Your tip works for me too npen!! :D
    Thnx a lot!! :D

Topic Closed

This topic has been closed to new replies.

About this Topic