Simple XSLT RSS Reader
A simple RSS reader written in XSLT
Copy this code and paste it in your HTML
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<h1><a href="{rss/channel/link}"><xsl:value-of select="rss/channel/title" /></a></h1> <p><xsl:value-of select="rss/channel/description" /></p> <xsl:for-each select="rss/channel/item">
<h1><a href="{link}"><xsl:value-of select="title" /></a></h1> <p><xsl:value-of select="description" /></p> </xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Report this snippet
Comments
Subscribe to comments