Okay, after much delving I’ve found a solution in the archives, but as it seems a fairly common problem, I’ll repeat it here:
The stylesheet ‘sitemap.xsl’ located in the Google-Sitemap-Generator directory, requires minor alteration. Open it in a text editor, delete the first line: <?xml version="1.0" encoding="UTF-8"?>
and replace it with: `<?xml version=”1.0″ encoding=”UTF-8″?>
<?xml-stylesheet type=”text/xsl” href=”product-list.xslt”?>`
Then open your .htaccess file in an editor and insert this: AddType application/xml .xsl
That solved the problem for me. My thanks to members mrsdiva and npen for pointing me in the right direction.
NOTE: I didn’t have a .htaccess file. Apparently, it isn’t automatically created when WordPress is downloaded. To create one, open a text editor like Notepad, click on ‘file’ then ‘New’, name the new file htaccess.txt
, add the bit of code above and save it to your local WordPress folder. Then upload it to your server and rename it .htaccess
Finally, go to your WordPress Admin Google-Sitemap-Generator dashboard. In the ‘Advanced Options’ is a text box and a link, ‘Use Default’. Clicking the link will insert the path to your `sitemap.xsl’ file. Scroll down, click ‘Update Options’. Once the page has refreshed, scroll up to the ‘Status’ section (top) and click the link ‘rebuild the sitemap’. It will take a few seconds for the page to refresh, then on the first line in the ‘Status’ section click on the link: ‘sitemap’.
If all is well, your styled sitemap should magically appear.