News for hackers. Stuff that matters.
Re:XSLT removal will break multiple government and regulator... by vstollen on Friday August 22, 2025 @04:55PM (#44989691)
One (admittedly niche) use case for XSLT is that it’s the only way I found to make RSS feeds both understandable for humans and machines.

For example, I use it add an explanation of what RSS is and some styling to the RSS feed of my personal website [1].

[1]: https://vstollen.me/atom.xml

Re:XSLT removal will break multiple government and regulator... by ptx on Friday August 22, 2025 @05:32PM (#44990083)
What about content negotiation [1] based on the Accept header? If the client indicates a preference for HTML you could send it the human-readable page and otherwise you send the RSS feed. Wouldn't that work?

[1] https://httpd.apache.org/docs/current/en/content-negotiation...

Re:XSLT removal will break multiple government and regulator... by trekz on Friday August 22, 2025 @06:21PM (#44990580)
It can be done but it's not practical because most RSS readers don't even send an Accept header at all, let alone one with an XML mime type.
Re:XSLT removal will break multiple government and regulator... by ptx on Saturday August 23, 2025 @07:29AM (#44995190)
But browsers do send the Accept header, so you could default to RSS for requests from other clients (such as RSS readers).