Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
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.
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.
is working on a reply...
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.
Continue discussion
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?
Hi Robert,
You can use the umbraco.library:ChangeContentType method to do this. Add the following to your XSLT (pref towards the top):
Cheers, Lee.
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.
is working on a reply...
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.