Hello All,
I am trying to generate an XML Sitemap using Wayfinder. I followed the technique described in this forum post -
http://modxcms.com/forums/index.php?topic=30354.0 - and it produces the sitemap as desired, with the exception of one oddity! Each of the links has had the "http://" munged into "http:/", so for example, I get something like the following:
<?xml version="1.0" encoding="UTF-8" ?>
<urlset xmlns="http:/www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http:/www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:/www.sitemaps.org/schemas/sitemap/0.9 http:/www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>http:/www.foo.com/</loc>
<changefreq>weekly</changefreq>
</url>
etc, etc...
</urlset>
The content for the <loc> tag comes from the wf.link variable in the template. However, notice that even the xmlns address has been munged, so this problem might not be specific to the Wayfinder code (if so, apologies for posting in the wrong place!). Does anyone have any suggestions as to where the slash might be being consumed? I noticed that if if use the string "http:////" for the hardcoded xmlns directive, it appears as "http://" in the final sitemap, so this looks like an character escaping problem somewhere.
I am using MODx 1.0.0 presently.
Regards,
Dan