<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8" indent="yes"
    doctype-public="-//W3C//DTD HTML 4.01//EN"
    doctype-system="http://www.w3.org/TR/html4/strict.dtd"/>

<xsl:template match="/">
<html>
<head>
  <title><xsl:value-of select="/rss/channel/title"/></title>
</head>
<body>
  <h3><xsl:value-of select="/rss/channel/title"/></h3>
  <xsl:apply-templates select="/rss/channel/item"/>
</body>
</html>
</xsl:template>

<xsl:template match="item">
  <div style="margin-bottom: 14px;">
    <img src="https://icon.horse/icon/{category}" width="16" height="16" alt="" style="vertical-align: middle; margin-right: 5px;"/>
    <a href="{link}">
      <xsl:value-of select="title"/>
    </a>
    <small>
      - <xsl:value-of select="pubDate"/>
    </small>
  </div>
</xsl:template>

</xsl:stylesheet>
