I tried to use pretty-feed-v3.xsl for my Atom feeds, but it didn't work at all because Atom and RSS have different XML structures.
I tried to build an alternative version for Atom feeds, but I don't know if my specific Atom feeds match the common use case.
I also don't know if it would be possible to share a single XSL stylesheet for both RSS and Atom.
Here's my version:
https://github.com/nhoizey/nicolas-hoizey.com/blob/main/src/assets/pretty-atom-feed-v3.xsl
Here's how it looks:
https://nicolas-hoizey.com/feeds/all.xml
A few notes:
- I removed the
target="_blank" attributes for accessibility
- I moved the code for each item in a specific
<xsl:template> to ease maintenance
I can make a PR if you want to iterate over it.
I tried to use
pretty-feed-v3.xslfor my Atom feeds, but it didn't work at all because Atom and RSS have different XML structures.I tried to build an alternative version for Atom feeds, but I don't know if my specific Atom feeds match the common use case.
I also don't know if it would be possible to share a single XSL stylesheet for both RSS and Atom.
Here's my version:
https://github.com/nhoizey/nicolas-hoizey.com/blob/main/src/assets/pretty-atom-feed-v3.xsl
Here's how it looks:
https://nicolas-hoizey.com/feeds/all.xml
A few notes:
target="_blank"attributes for accessibility<xsl:template>to ease maintenanceI can make a PR if you want to iterate over it.