Copied to clipboard

Flag this post as spam?

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


  • Robert 13 posts 34 karma points
    Jun 28, 2011 @ 00:28
    Robert
    0

    XSLT to render as valid RSS XML

    I have an xslt file that generates RSS XML.  It renders the correct structure but header content-type is set to text/html; charset=utf-8 were it should be set to application/atom+xml; charset=utf-8.

    Is there an easy way to set this in umbraco?

  • Lee Kelleher 3945 posts 15163 karma points MVP 10x admin c-trib
    Jun 28, 2011 @ 00:42
    Lee Kelleher
    1

    Hi Robert,

    You can use the umbraco.library:ChangeContentType method to do this.  Add the following to your XSLT (pref towards the top):

    <xsl:value-of select="umbraco.library:ChangeContentType('application/atom+xml')"/>

    Cheers, Lee.

  • Robert 13 posts 34 karma points
    Jun 28, 2011 @ 16:35
    Robert
    1

    That did it!  Thanks.  This forum is awesome...very quick replies.  We're glad we went with Umbraco rather than the other options out there.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies