PHP Classes

File: rss.xsl

Recommend this page to a friend!
  Classes of Paulius Lescinskas  >  Easy RSS  >  rss.xsl  >  Download  
File: rss.xsl
Role: Auxiliary data
Content type: text/plain
Description: Sample XSL stylesheet file
Class: Easy RSS
Parse or create XML RSS feeds
Author: By
Last change:
Date: 13 years ago
Size: 1,025 bytes


Class file image Download
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="">
<xsl:output method="html"/>
<xsl:template match="rss/channel">
	<title><xsl:value-of select="title"/></title>
	<div style="margin: 20px">
		<a href="{link}" style="font-family: sans; font-size: 24px; color: #399; margin: 20px"><xsl:value-of select="description"/></a>
	<xsl:for-each select="item">
			<a href="{link}" style="font-family: sans; font-size: 16px; color: #39c;"><xsl:value-of select="title"/></a><xsl:if test="pubDate"><span style="font-family: sans; font-size: 12px; color: #000;"> (posted on <xsl:value-of select="pubDate"/>)</span></xsl:if>
		<div style="font-family: sans; font-size: 12px; color: #000; border-left: 1px dashed #399; border-bottom: 1px dashed #399; margin: 10px; padding: 10px"> <xsl:value-of select="description" disable-output-escaping="yes" /></div>