Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • David Conlisk 432 posts 1008 karma points
    Mar 27, 2009 @ 18:30
    David Conlisk
    0

    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]

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Mar 27, 2009 @ 18:42
    Peter Dijksterhuis
    0

    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

  • David Conlisk 432 posts 1008 karma points
    Mar 27, 2009 @ 18:54
    David Conlisk
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft