Path to sitemap.xsl incorrect in relation to sitemap.xml
« on: June 16, 2010, 06:34:35 AM »
Hi,

I recently upgraded and the script work well. I noticed a small problem with the relative path to the sitemap.xsl.

Our sitemap generates on the root directory / root / sitemap.xml
Our sitemap script is hidden under a password protected directory away from the public.
Example: /private/directory/sitemap/pages/mods/

When the script is generated in the root directory, the style sheet is referenced to the private directory where the pages live. Shouldn't the style directory be linked to the relative path of the sitemap.xml or placed alongside the sitemap.xml file?

Should we change this code: <?xml-stylesheet type="text/xsl" href="%GEN_URL%pages/mods/sitemap.xsl"?> to read: <?xml-stylesheet type="text/xsl" href="sitemap.xsl"?> and do I need to do this to all the templates so the stlye sheet is addressed correctly and away from the private directories?

Thanks,
Chris


Re: Path to sitemap.xsl incorrect in relation to sitemap.xml
« Reply #1 on: June 16, 2010, 10:38:22 PM »
Hello,

you should change stylesheet reference in template to:
<?xml-stylesheet type="text/xsl" href="http://www.domain.com/sitemap.xsl"?>
and move sitemap.xsl to domain root.