lkiesow / python-feedgen

Python module to generate ATOM feeds, RSS feeds and Podcasts.
https://feedgen.kiesow.be/
BSD 2-Clause "Simplified" License
735 stars 124 forks source link

XML doctypes and stylesheet support #28

Closed julianwachholz closed 9 years ago

julianwachholz commented 9 years ago

Right now using atom_file() will not generate any XML doctypes, i.e.

<?xml blabla ?>

It would be nice to have this as well as an optional setting to have a <?xml-stylesheet ?> linked.

lkiesow commented 9 years ago

Any suggestion how this should work? Just an optional argument that will add a string at the beginning of the file?

julianwachholz commented 9 years ago

Yes, that should meet its purpose. I think the charset is also already available which can be incorporated in a <?xml ?> doctype tag.