
<xsl:stylesheet
		xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		version="1.0"
>
<xsl:template match='/rss'>
<html id="HtmlRootTag" dir="ltr">
	<head>
		<title><xsl:value-of select='channel/title'/></title>
		<style type="text/css">
		.blankline {
			height: 10px;
		}
		.padfive {
			padding: 5px;
		}
		.padten {
			padding: 10px;
		}
		.seventyp {
			width: 70%;
		}
		.underlinestyle, .hoverstyle a:hover {
			text-decoration: underline ! important;
		}
		</style>
		
	</head>
	<body>
		<div class="padten">
			<div class="ms-authoringcontrols seventyp padfive">
				<h2 class="padfive"><span id="ContentFrameTitle">RSS FEED for <a href='{channel/link}'><xsl:value-of select='channel/title'/></a></span></h2>
				<div><span id="ContentFrameDescription">
      With Really Simple Syndication (RSS) it's easy to track changes to
      important lists and libraries. If you have an RSS reader, simply
      <a id="feedlink">subscribe to this RSS feed</a>, and your reader will record the changes
      for you. You can also browse the RSS feed here in your browser.
    </span></div>
				<script type="text/javascript">// <![CDATA[ 


				var loc = window.location.href;
				if (loc.substring(0, 5) == "http:")
				{
					document.getElementById("feedlink").href =
						"feed:" + loc.substring(5);
				}
				else if (loc.substring(0, 6) == "https:")
				{
					document.getElementById("feedlink").href =
						"feeds:" + loc.substring(6);
				}
				// ]]>
</script>
				<h3>Table of Contents</h3>
				<ul>
					<xsl:apply-templates select='channel/item' mode='toc'/>
				</ul>
			</div>
			<xsl:apply-templates select='channel/item'/>
		</div>
	</body>
</html>
</xsl:template>
<xsl:template match='title'>
	<xsl:value-of select="." />
</xsl:template>
<xsl:template match='author'>
	<xsl:value-of select="." />
</xsl:template>
<xsl:template match='item' mode='toc'>
	<li class="ms-globallinks hoverstyle"><a>
	<xsl:attribute name='href'> #<xsl:number/></xsl:attribute>
	<xsl:apply-templates select='title' />
	</a></li>
</xsl:template>
<xsl:template match='item'>
<br/><br/>
<div class="ms-inputuserfield padfive seventyp">
	<h4><a class="underlinestyle" href='{link}'><xsl:attribute name='name'><xsl:number /></xsl:attribute><xsl:apply-templates select='title'/></a></h4>
	<div>
		<xsl:value-of select='description' disable-output-escaping='yes' />
	</div>
	<span class="blankline"> </span>
	<div>
		<span id="LastModified"><xsl:choose><xsl:when test='number(string-length(pubDate)) != 0'><xsl:choose><xsl:when test='number(string-length(author)) != 0'>Created at <xsl:value-of select='pubDate' /> by <xsl:apply-templates select='author' /></xsl:when><xsl:otherwise>Last modified at <xsl:value-of select='pubDate' /></xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise><xsl:if test='number(string-length(author)) != 0'>Last modified by <xsl:apply-templates select='author' /></xsl:if></xsl:otherwise></xsl:choose></span><br/>
		<a class="underlinestyle" href='{link}'>Read the full item</a>.
	</div>
</div>
</xsl:template>
</xsl:stylesheet>
