Skip to content

XSL for presentation of Atom feeds #26

@nhoizey

Description

@nhoizey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions