﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35420	Add support for RSS stylesheets	Baptiste Mispelon	nobody	"Inspired by a blog post I read recently [1] I wanted to see how feasible it would be to add an RSS stylesheet to the feeds that Django's syndication framework generates.

In XML, that means adding a ""processing instruction"" (`<?xml-stylesheet href=""/rss.xsl"" type=""text/xsl""?>`) right after the start of the document (`<?xml version=""1.0"" encoding=""utf-8""?>`) but before the root node. It turns out the syndication framework doesn't have the right hooks to make this easy.

I would like to suggest adding support for a new optional argument that would let users specify a path to a stylesheet URL. Or if that's considered too specific/niche of a feature, then at least add a hook to let users add the behavior without rewriting methods (for example by moving `handler.startDocument()` out of `RssFeed.write()` and into a new method).


[1] https://hyteck.de/post/django-rss/"	New feature	closed	contrib.syndication	5.0	Normal	duplicate	rss, stylesheet		Unreviewed	1	0	0	0	0	0
