Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save busse/2820 to your computer and use it in GitHub Desktop.
Save busse/2820 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes"/>
<xsl:param name="TITLE"/>
<xsl:param name="start" select="0"/>
<xsl:param name="count" select="5"/>
<xsl:template match="rss">
<xsl:for-each select="channel/item[position() > $start][position() < $count + 1]">
<!-- Do not show channel image -->
<br>
<strong>
<a href="{link}" target="_main">
<xsl:value-of select="title"/>
</a>
</strong>
<br></br>
<!-- only display markup for description if it's present -->
<!-- <xsl:value-of select="description"/> -->
</xsl:for-each>
</xsl:template>
<xsl:template match="description">
<br>
<xsl:value-of select="."/>
</br>
</xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment