RSS XSLT


Simple piece of XSL to format an RSS Feed;

<?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"></xsl:output>
    <xsl:template match="rss/channel/item">
    <li>
      <a href="{link}" title="{title}">
        <xsl:value-of select="title" />
      </a>
      <p>
        <xsl:value-of select="description" />
      </p>
    </li>
  </xsl:template>
</xsl:stylesheet>
  1. No comments yet.
(will not be published)