WordPress.org

Ready to get started?Download WordPress

Forums

sitemap error loading stylesheet (8 posts)

  1. podictionary
    Member
    Posted 7 years ago #

    I have installed the Google Sitemap Generator plugin and it appears in the dashboard as it should. However, when I look at what it generates I see:
    Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype:http://www.podictionary.com/wp-content/plugins/google-sitemap-generator/sitemap.xsl
    I don't know why or how to fix. Any clues?

  2. arnee
    Member
    Posted 7 years ago #

    Hi,

    the plugin used the wrong location for your XSLT file since you've installed WordPress in a separate folder. Please try the new beta (3.0b7) and let me know if that fixes your problem :)

    Best regards,

    Arne

  3. podictionary
    Member
    Posted 7 years ago #

    Thanks Arne
    I have upgraded as you suggest and that did not work. But your hint that it was pointing to the wrong file path allowed me to put in a second (fake) file path for it to point to the right file and it is now working with this temporary workaround.

  4. globalkris
    Member
    Posted 6 years ago #

    I'm having the same problem but do not understand what exactly you did to get it working...

  5. stevehl42
    Member
    Posted 6 years ago #

    I, as well, have this problem and do not understand exactly how you got this working. Any help is much appreciated, thanks.

  6. 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/

  7. max2
    Member
    Posted 6 years ago #

    Hi mrsdiva,

    Thanks!

    The way you suggested was properly solved my problems in Firefox(FF)
    But when I tried to open the URL in IE, it was failed again.

    Including both your sitemap.xml and my sitemay.xml.
    http://www.max2.tw/blog/sitemap.xml

    In my case,
    Using the code <?xml version="1.0" encoding="UTF-8"?>
    the result is OK for IE , and FF showed the error message.

    Using the code <?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">
    the result is OK for FF ,and IE showed blank page.

    Thus I wonder the root cause is the coding-complier in both IE and FF,
    or just the setting of my laptop?

    Is there anyone could appear the sitemap.xml using both IE and FF?

  8. 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.

Topic Closed

This topic has been closed to new replies.

About this Topic