Quantcast
Channel: Shawson's Code Blog » XPath
Viewing all articles
Browse latest Browse all 3

RSS XSLT

$
0
0

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>

Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images