<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/1999/xhtml" xmlns:rss="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" exclude-result-prefixes="rdf rss dc">
	<xsl:output method="html" encoding="UTF-8"/>
	<xsl:template match="/">
		<xsl:apply-templates select="rdf:RDF" />
	</xsl:template> 
	<xsl:template match="rdf:RDF">
		<html xml:lang="ja" lang="ja">
			<head>
				<meta http-equiv="Content-Style-Type" content="text/css" />
				<title>
					<xsl:value-of select="rss:channel/rss:title" />
				</title>
				<style type="text/css">
.body {
	/* width: 70%; */
	width: 560px;
	background-color: #ddd;
}
.body h2 {
	border-top    : 8px solid #bbb;
	border-right  : 4px solid #bbb;
	border-bottom : 0px solid #bbb;
	border-left   : 0px solid #bbb;
	font-size: medium;
	font-weight: normal;
	background-color: #ddd;
}
.body h3 {
	border-top   : 4px dashed #bbb;
	border-right : 0px solid #bbb;
	border-bottom: 0px solid #bbb;
	border-left  : 0px solid #bbb;
	padding: 5pt 0pt 0pt 5pt;
	font-size: medium;
	font-weight: normal;
	background-color: white;
}
.body .story {
	border-top    : 0px solid #bbb;
	border-right  : 0px solid #bbb;
	border-bottom : 0px solid #bbb;
	border-left   : 4px solid #bbb;
	background-color: #fff;
}
.body .story p {
	margin: 10.5pt 0pt;
	padding: 0pt 0pt 0pt 5pt;
	font-size: 10.5pt;
	line-height: 150%;
}
				</style>
			</head>
			<body>
				<h1>
					<a href="{rss:channel/rss:link}">
						<xsl:value-of select="rss:channel/rss:title" />
					</a>
					のヘッドライン
				</h1>
				<div class="body">
					<xsl:apply-templates select="rss:item" />
				</div>
			</body>
		</html>
	</xsl:template> 
	<xsl:template match="rss:item">
		<div class="story">
			<h3>
				<a href="{rss:link}">
					<span class="sanchor">■</span> 
				</a>
				<xsl:value-of select="rss:title" />
			</h3>
			<p>
				<xsl:value-of select="rss:description" />
				(<xsl:value-of select="dc:date" />)
			</p>
		</div>
	</xsl:template>
</xsl:stylesheet>
