Title: RSS feed for OpenBSD stable packages repository (made with XSLT)
Author: Solène
Date: 05 June 2019
Tags: openbsd automation
Description:
I am happy to announce there is now a RSS feed for getting news in case
of new
packages available on my repository
[https://stable.perso.pw/](https://stable.perso.pw/)
The file is available at
[https://stable.perso.pw/rss.xml](https://stable.perso.pw/rss.xml).
I take the occasion of this blog post to explain how the file is
generated as I
did not find easy tool for this task, so I ended up doing it myself.
I choosed to use **XSLT**, which is not quite common. Briefly, **XSLT**
allows
to use some kind of XML template on a XML data file, this allow loops,
filtering etc... It requires only two parts: the template and the data.
**Simple RSS template**
The following file is a template for my RSS file, we can see a few tags
starting by `xsl` like `xsl:for-each` or `xsl:value-of`.
It's interesting to note that the `xsl-for-each` can use a condition
like
`position < 10` in order to limit the loop to the 10 first items.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
dataswamp.org:70 /~solene/article-packages-rss:38: port field too long