Every website that updates routinely should have an RSS or Atom news feed that people (and search engines) can use to watch for changes.
By default, these files look horrible when a human looks at them in a browser. But there is a simple way to make them look better: RSS Style!
If you are not a webmaster, checkout out What is a new feed? and Picking a news reader for how to get started!
In your feed file (often feed.xml
but see below) add a line to the top (after the <?xml...?>
but before any real xml) of with one of the styles here on RSS Style:
The xml-stylesheet
processing instruction tells the browser to use the XSLT stylesheet to transform the raw XML into HTML. This has been supported by all major browsers for a long time.
The entire XSLT stylesheet needs to be included because of a bug in Chrome that prevents cross-domain loading.
You can host the XSLT file yourself and point to it directly:
/localcopy.xslt
in the example below).Yes! You can also use a CSS stylesheet. I plan on having some examples here, but in the meantime check out Pete Freitag's overview for making your own.
Website | News Feed | Notes | |
---|---|---|---|
Hacker News (front page) | before → after | Missing ‘self’ link, No link in home page body. analyze | |
Hacker News (Show HN) | before → after | Title doesn’t have ‘Show HN’. Missing ‘self’ link. No discovery link. analyze | |
Fly.io | before → after | Bad ‘self’ link. HTML page is missing the discovery link analyze | |
Jacques Mattheij | before → after | Bad ‘self’ link (404) analyze | |
Dave Winer | before → after | Missing the ‘self’ link. No link in home page body. analyze | |
Dan Nguyen | before → after | Opens ‘Save As’ in Firefox. (also no https: support) analyze | |
Thomas Schranz | before → after | Different ‘self’ link is different, though it works. No link in home page body. analyze | |
Colin Wright | before → after | Already has styling! CSS. No discovery link. analyze | |
Hillel Wayne | before → after | Opens ‘Save as’ dialog in Firefox. Mismatched discovery link. No link in home page body. analyze | |
Patrick McKenzie | before → after | No link in home page body. analyze | |
Allen Downey | before → after | Opens ‘Save as’ dialog in Firefox. Home page link has a redirect. No link in home page body. analyze | |
Julia Evans | before → after | Self and home page links are ‘http:’ analyze | |
Thomas Park | before → after | Opens ‘Save as’ dialog in Firefox analyze | |
Kyle Kingsbury | before → after | Opens ‘Save as’ dialog in Firefox. No link in home page body. analyze | |
Mark Nottingham | before → after | Opens ‘Save as’ dialog in Firefox. analyze | |
Tim Bray | before → after | Opens ‘Save as’ dialog in Firefox analyze | |
John Graham-Cumming | before → after | CSS stylesheet, but insecure so it doesn’t work. Mismatched ‘self’ link but working. analyze | |
Dan Luu | before → after | Bad ‘self’ link. Bad home page link. No title. analyze | |
Steve Klabnik | before → after | Missing the ‘self’ link. No link in home page body. analyze | |
Stavros Korokithakis | before → after | Discovery vs ‘self’ link mismatch but working. ‘link’ element value is in an attribute instead of the content. analyze | |
Terence Eden | before → after | Has styling, but not exactly pretty. Home page link has a redirect. analyze | |
Chris Coyier | before → after | Opens ‘Save as’ dialog in Firefox. analyze | |
Logo of the day | before → after | Perfect, since it is my sample for testing. analyze | |
Try it on your own feed! | Problems?Feed Analyzer |