Created
July 28, 2008 00:58
-
-
Save busse/2820 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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