<?xml version='1.0' encoding='UTF-8'?>

<!-- XSLT stylesheet for the Microsoft topic RSS feed from The Seattle Times -->
<!-- http://seattletimes.nwsource.com/rss/microsoft.xml -->
<!-- Copyright © 2005 LCSS --> 

<xsl:stylesheet
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	version="1.0"
>

<!-- Style rss node -->
<xsl:template match='/rss'>
	<style type="text/css">
		#block { font-family: verdana, sans-serif; margin:0px auto; width:600px; text-align:left; }
		p { font-size: 80%; padding-top: 0px; margin-top: 0px; }
		h1 { font-size: 100%; padding-bottom: 0px; margin-bottom: 0px; }
		h2 { font-size: 80%; margin-bottom: 0px; } 
	</style>
	<div id="block">
	<hr />
	<h1>RSS Feed for <xsl:value-of select='channel/title'/></h1><br />
	<xsl:apply-templates select='channel/item' />
	</div>
</xsl:template>

<!-- Style item node to display title, description, author, published date, and category -->
<xsl:template match='item'>
	<!-- Style title element as a separate table -->
	<table border="0" cellpadding="4" width="100%">
	<tr>
    <td align="left" bgcolor="#CEE7F7" width="100%"> <b>
	<h2> <a href='{link}' style="text-decoration:none">	<xsl:value-of select='title'/> </a> </h2>
	</b>
	</td>
	</tr>
	 </table>
	<p>
	<xsl:value-of select='description' disable-output-escaping='yes' /> <br />
	<strong>Author: </strong>
	<xsl:choose>
		<!-- If author element does not exist, display "Staff" -->
		<xsl:when test="not(author)">
			Staff
		</xsl:when>
		<xsl:otherwise>
			<xsl:value-of select='author' />
		</xsl:otherwise>
	</xsl:choose>
	<br />
	<strong>Published Date: </strong><xsl:value-of select='pubDate' /> <br />
	<font color='gray'>
	<strong>Section: </strong><xsl:value-of select='category' /> </font> <br />
	<a href='{link}'>Read the full item</a>.
	</p>
</xsl:template>

</xsl:stylesheet>