<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
				xmlns:atom="http://www.w3.org/2005/Atom"
				xmlns:dc="http://purl.org/dc/elements/1.1/"
				version="1.0">
	<xsl:output method="html" indent="yes" encoding="UTF-8"/>
	<xsl:template match="/">
		<html>
			<head>
				<title>
					<xsl:value-of select="rss/channel/title"/> (RSS)
				</title>
				<link rel="stylesheet" href="https://unpkg.com/tachyons@4.6.1/css/tachyons.min.css"/>
			</head>
			<body class="ph3 pb3 mid-gray">
				<div class="mw8 center">
					<div class="overflow-auto">
						<table class="w-100 f6 b--silver ba bw1" cellspacing="0">
							<tbody class="lh-copy bg-near-white">
								<xsl:for-each select="rss/channel/item">
									<tr class="hover-bg-white">
										<xsl:variable name="loc">
											<xsl:value-of select="link"/>
										</xsl:variable>
										<xsl:variable name="pno">
											<xsl:value-of select="position()"/>
										</xsl:variable>
										<td class="pa3 tc b bb b--silver">
											<xsl:value-of select="$pno"/>
										</td>
										<td class="pa3 bb b--silver">
											<p>
												<a href="{$loc}" class="link blue" target="_blank">
													<xsl:value-of select="title"/>
												</a>
											</p>
										</td>
										<xsl:if test="pubDate">
											<td class="pa3 tr bb b--silver">
												<xsl:value-of select="pubDate"/>
											</td>
										</xsl:if>
									</tr>
								</xsl:for-each>
							</tbody>
						</table>
					</div>
				</div>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>