This is a strange one. I have a Google sitemap xslt macro and a GoogleSitemap template that both work on an existing site to create the Google sitemap correctly.
I've copied the template and the xslt into my new site, and created the macro. All items match the other site. However, I get NO output when I try to view the page.
Thing is, if I give my page a master template, then it works just fine.
Does anyone have a clue how I could go about solving this? Is there anything about Master templates that I'm missing - why would the master template make a difference? Or maybe it's something to do with changing the output type for the page?
Thanks a lot. There's definitely something strange going on. It's a v4 site. I'll be upgrading to v4.0.1 over the weekend so I should hopefully have some more info then.
Macro breaks without master template
This is a strange one. I have a Google sitemap xslt macro and a GoogleSitemap template that both work on an existing site to create the Google sitemap correctly.
I've copied the template and the xslt into my new site, and created the macro. All items match the other site. However, I get NO output when I try to view the page.
Thing is, if I give my page a master template, then it works just fine.
Does anyone have a clue how I could go about solving this? Is there anything about Master templates that I'm missing - why would the master template make a difference? Or maybe it's something to do with changing the output type for the page?
Anyway, here is my template and my xslt:
[code]
<%@ Master Language="C#" MasterPageFile="/umbraco/masterpages/default.master" AutoEventWireup="true" %>
[/code]
(doesn't work unless I give it a master template)
[code]
<>
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" exclude-result-prefixes="msxml
umbraco.library">
[/code]
David,
just quickly tried your template and your macro.
Worked just fine for me and it did give output!
What version do you use? I tried 4.0.1
PeterD
Hi Peter,
Thanks a lot. There's definitely something strange going on. It's a v4 site. I'll be upgrading to v4.0.1 over the weekend so I should hopefully have some more info then.
Cheers,
David
is working on a reply...