Skip to content

Instantly share code, notes, and snippets.

@djprmf
Created January 12, 2015 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djprmf/7ce8f8278bb5328c6f60 to your computer and use it in GitHub Desktop.
Save djprmf/7ce8f8278bb5328c6f60 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<!-- Edited by Lee Sykes DNN Creative Magazine http://www.dnncreative.com -->
<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:template match="rss">
<!-- Do not show channel image -->
<xsl:for-each select="channel/item[position() &lt; 4]">
<br>
<!-- to open links in a new window, change target="_main" to target="_new" -->
<strong><a href="{link}" target="_new"><xsl:value-of select="title"/></a></strong></br>
<br>
<xsl:value-of select="pubDate"/>
</br>
<!-- only display markup for description if it's present -->
</xsl:for-each>
<br></br>
</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