XSLTs: For RSS 1.0

<?xml version=”1.0″?>

<xsl:stylesheet version=”1.0″
xmlns:xsl=”http://www.w3.org/1999/XSL/Transform&#8221;
xmlns:rdf=”http://www.w3.org/1999/02/22-rdf-syntax-ns#&#8221;
xmlns:rss=”http://purl.org/rss/1.0/&#8221;
xmlns:dc=”http://purl.org/dc/elements/1.1/”&gt;
<xsl:output method=”html” indent=”yes” omit-xml-declaration=”yes”/>
<xsl:template match=”rdf:RDF” >
<html>
<body>
<xsl:for-each select=”rss:channel”>
<a href=”{rss:link}” target=”_blank”>
<img src=”{../rss:image/rss:url}”
width=”{../rss:image/rss:width}”
height=”{../rss:image/rss:height}”
alt=”{rss:title}”
border=”0″/>
<br/>
<xsl:value-of select=”rss:description”/>
<br/>
<font size=”+1″><b><xsl:value-of select=”title”/></b></font></a>
<xsl:value-of select=”dc:date”/>
</xsl:for-each>
<xsl:for-each select=”rss:item”>
<p> <a href=”{rss:link}” target=”_blank”>
<font size=”+1″><b><xsl:value-of select=”rss:title”/></b></font>
<xsl:value-of select=”dc:date”/> </a>
<br/>
By <b> <xsl:value-of select=”dc:creator”/></b>
<xsl:if test=”dc:rights”> <b><br/><xsl:value-of select=”dc:rights”/></b> </xsl:if>
<br/>
<xsl:value-of select=”rss:description” disable-output-escaping=”yes”/> </p>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.