Hi!
Thanks for the info & tips! I’ve played around with 1.4 and 1.5a and the use of an "empty" template for different files so I can control their appearance (or disappearance) in the sitemap. There are many little quirks though, here’s what I’ve stumbled on so far;
Viewing sitemap while logged on as manager does not work
-----------------------------------------------
I had a lot of errors like this (applies for both stylesheets 1.4 and 1.5a):
"Error during XSLT transformation: An unknown XPath extension function was called."
I’m using Firefox, so I followed the advice in the Wiki and added this:
"AddType application/xml .xsl"
to the .htaccess.
I added it just in case, but sitemap is still quirky. I can access the sitemap, but only if I am NOT logged on to the manager interface. As soon as I have a cookie set from the manager logon, I’m back to the above error. This is not a big issue, I can just make sure I have no cookie there when I need to see the sitemap.
Trying IE6 instead, I get a similar result. I can access the sitemap fine as long as I haven’t logged on to the manager first. If I log on to the manager first and then access the sitemap, I get this error:
---
Line: 88
Char: 15
Error: Object required
Code: 0
URL:
http://www.mysite.com/sitemap.xml
---
I tried to kill cookies etc in IE6 but no amount of killing cookies, files, cache etc helps. Closing IE completely and
starting with a "fresh" IE, accessing the sitemap will work though.
Excluding CSS files, Javascript files etc from the sitemap
--------------------------------------------
Adding the [*content*] to my own "empty" template did it for CSS files, thanks for that tip! I didn’t realise I had to have [*content*] there, I first simply made a (totally) empty template, then made a CSS file based on that. But that does not work, no CSS is applied in that case (mentioning it here as a reference in case anyone else tries this).
However - for the sitemap.xml and sitemap.xsl (just a renamed 1.5a gss.xsl), I get a strange "extra" listing for the homepage (the others are fine):
SITEMAP URL Last modification date
http://www.mysite.com// 1969-12-31
There is also a line for
http://www.mysite.com/index.html, with the correct date and not with the double //.
This seems to be the case whether I use my new "empty" template or the (blank) system template - it seems to be a problem in the 1.5a sitemap.xsl file. I have changed back to the 1.4 version (+ CSS file + Javascript file) and the extra site line has disappeared again. With the new "empty" template I can at least get rid of the sitemap listing for all the CSS files and the Javascript file - remaining now is only the sitemap.xml and sitemap.xsl.
I wouldn’t mind getting it all in one file as intended in the 1.5a though so I’m grateful for any tips and ideas here.