﻿<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet
     version="1.0"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="xml" />
  <xsl:template match="rss/channel">

        <style media="all" lang="en" type="text/css">
          .ChannelTitle
          {
          font-family:  Verdana;
          font-size:  11pt;
          font-weight:  bold;
          width:  90%;
          text-align:  center;
          }
          .ArticleEntry
          {
          border-width:  2px;
          border-color:  #336699;
          border-style:  solid;
          width:  90%;
	  text-align:center;
          }
          .ArticleTitle
          {
          background-color:  #3366CC;
          color:  #FFFFFF;
          font-family:  Verdana;
          font-size:  9pt;
          font-weight:  bold;
          padding-left:  5px;
          padding-top:  5px;
          padding-bottom:  5px;
          }
          .ArticleHeader
          {
          background-color:  #3399FF;
          color:  #FFFFFF;
          font-family:  Verdana;
          font-size:  7pt;
          padding-left:  5px;
          padding-top:  2px;
          padding-bottom:  2px;
          }
          .ArticleHeader A:visited
          {
          color:  #FFFFFF;
          text-decoration:  none;
          }
          .ArticleHeader A:link
          {
          color:  #FFFFFF;
          text-decoration:  none;
          }
          .ArticleHeader A:hover
          {
          color:  #FFFF00;
          text-decoration:  underline;
          }
          .ArticleDescription
          {
          color:  #000000;
          font-family:  Verdana;
          font-size:  9pt;
          padding-left:  5px;
          padding-top:  5px;
          padding-bottom:  5px;
          padding-right:  5px;
          }
        </style>


        <xsl:apply-templates select="title" />
        <xsl:apply-templates select="item" />


  </xsl:template>
  <xsl:template match="title">
    <div class="ChannelTitle">
      <xsl:value-of select="text()" />
    </div>
    <br />
  </xsl:template>
  <xsl:template match="item">
    
    <center>
    <div class="ArticleEntry">
      <div class="ArticleTitle">
        <xsl:value-of select="title" /><xsl:text> </xsl:text><a href="{link}">[Link]</a> 
      </div>
      <div class="ArticleHeader">
        <xsl:value-of select="pubDate" /> by <xsl:value-of select="author" /> in <xsl:value-of select="category" />
      </div>
      
    </div>
    </center>
    <br />
  </xsl:template>
</xsl:stylesheet>

