logoalt Hacker News

matthews3yesterday at 5:36 PM4 repliesview on HN

Could you run XSLT as part of your build process, and serve the generated HTML?


Replies

Fileformatyesterday at 10:46 PM

That is not the point: I already have the blog's HTML pages. I want the RSS feed to be an RSS feed, not another version of the HTML.

The XSLT view of the RSS feed so people (especially newcomers) aren't met with a wall of XML text. It should still be a valid XML feed.

Plus it needs to work with static site generators.

kuschkuyesterday at 6:59 PM

I have arduinos with sensors providing their measurements as XML, with an external XSLT stylesheet to make them user-friendly. The arduinos have 2KB RAM and 16 MIPS.

Which build process are you talking about? Which XSLT library would you recommend for running on microcontrollers?

show 1 reply
bilogyesterday at 5:44 PM

XML source + XSLT can be considerably more compact than the resulting transformation, saving on hosting and bandwidth.

show 1 reply
James_Kyesterday at 5:43 PM

No because then it would not be an Atom feed. Atom is a syndication format, the successor to RSS. I must provide users with a link to a valid Atom XML document, and I want them to see a web page when this link is clicked.

This is why so many people find this objectionable. If you want to have a basic blog, you need some HTML docments and and RSS/Atom feed. The technologies required to do this are HTML for the documents and XSLT to format the feed. Google is now removing one of those technologies, which makes it essentially impossible to serve a truly static website.

show 2 replies