<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rss="http://purl.org/rss/1.0/">

	<xsl:output method="xml" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" />

	<xsl:template match="/">
		<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
			<head>
				<title>RSS Feed for <xsl:value-of select="rss/channel/title"/></title>
				<style type="text/css" media="all">@import "/code/styles/rss.css";</style>
			</head>
			<body xmlns="http://www.w3.org/1999/xhtml">
				<div id="header">
					<h1><a href="{rss/channel/link}"><xsl:value-of select="rss/channel/title"/></a></h1>
					<h2>An RSS Feed created with <a href="http://junecode.com/"><xsl:value-of select="rss/channel/generator"/></a></h2>				
				</div>
				<div id="about">

					<p>You&#8217;re currently viewing an RSS news feed. News feeds are easy to use, and they&#8217;ll help you keep track of news sites, web logs, and other sites that are updated often. To use them you&#8217;ll need a newsreader application like <a href="http://www.newsgator.com/Individuals/NetNewsWire/">NetNewsWire</a> for Mac or <a href="http://www.newsgator.com/Individuals/FeedDemon/">FeedDemon</a> for Windows. Both are free. Many web browsers, such as <a href="http://www.mozilla.org/">Firefox</a>, also support RSS feeds. Just add a new subscription using the address of this page. In most cases you can simply copy it from the address bar and paste it in your newsreader&#8217;s subscribe dialog.</p>

					<p>You can create a custom feed using the search box below. Just enter a word or phrase and the resulting feed will include only entries with those words.</p>
					
					<form name="search" id="search" method="get" action="./">
						<input type="text" name="search" size="25" value="" />
						<input type="submit" value="Search" class="button" />
					</form>

					<!-- <p><a href="http://feedvalidator.org/check?url=">Validate this feed</a>.</p> -->

				</div>
				<div id="content">

					<xsl:for-each select="rss/channel/item">
						<div>
							<h3><a href="{guid}"><xsl:value-of select="title" /></a></h3>
							<h4><xsl:value-of select="pubdate" /></h4>
							<xsl:value-of select="description" disable-output-escaping="yes" />
						</div>
					</xsl:for-each>

				</div>
			</body>
		</html>
	</xsl:template>

</xsl:stylesheet>
