Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2026-05-25 05:14:55

mwr
Member
From: Canada
Registered: 2006-01-31
Posts: 176
Website

XSLT to add a stylesheet to RSS

How would I go about using XSLT to add a style sheet to the RSS output by Textpattern?


Mark

Offline

#2 2026-05-25 07:48:10

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,312
Website GitHub

Re: XSLT to add a stylesheet to RSS

Hi Mark, That’s not something I’ve ever tried. Perhaps you can do it if you manually construct your RSS feed. See this thread for a beginning. That shows how you can create a custom form type with a self-defined content header (check it matches correctly for an RSS/Atom feed). You have to build your own rss feed using txp tags but that then gives you the option to insert a call to your XLST file.

You can then call your feed with yoursite.com/?f=custom-feed-form-name and it will be served with the specified content headers. If you want a cleaner url, you can add a redirect to your .htaccess file that translates a cleaner url to the ?f=… url.

There are a couple of gotchas that etc mentions in that thread, but if I recall not totally insurmountable.


TXP Builders – finely-crafted code, design and txp

Offline

#3 2026-05-28 21:02:00

mwr
Member
From: Canada
Registered: 2006-01-31
Posts: 176
Website

Re: XSLT to add a stylesheet to RSS

Turns out XSLT is being deprecated, so moving on . . .


Mark

Offline

Board footer

Powered by FluxBB