<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:rss="http://purl.org/rss/1.0/"
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:xalan="http://xml.apache.org/xalan"
	exclude-result-prefixes="rss rdf dc sy xalan">

<xsl:import href="rss2html-item.xsl"/>

<!--
　RSS を XHTML のページへ整形。
　XSLT プロセッサ内蔵のブラウザによる利用が想定されるため、
　Xalan-Java の拡張機能を使っている common.xsl 等を呼び出さないよう注意。＞自分
   xsl:import より前にコメントがあると Safari  1.3 (v312) で XSLT 変換が作動しない。
   まぁ XSLT 変換が作動しても日本語文字は超絶文字化けモードなわけだが。ウンコ！
-->

<!-- ================ 出力設定 ================  -->

<xsl:output method="xml"
	encoding="UTF-8"
	omit-xml-declaration="no"
	doctype-public="-//W3C//DTD XHTML 1.1//EN"
	doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
	indent="yes"
	xalan:indent-amount="2"
	media-type="application/xhtml+xml"/>

<!-- ================ 各種設定 ================  -->

<xsl:param name="baseURI">http://www.remus.dti.ne.jp/~a-satomi</xsl:param>
<xsl:param name="siteName">娘娘飯店しるきぃうぇぶ</xsl:param>

<!-- ================ メインテンプレ ================  -->

<xsl:template match="/rdf:RDF">
	<html xml:lang="ja">
		<head>
			<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
			<meta http-equiv="Content-Style-Type" content="text/css" />
			<meta http-equiv="Content-Script-Type" content="text/javascript" />
			<meta name="generator" content="mi + Xalan-Java XSLT processor"/>
			<title>RSS : <xsl:value-of select="rss:channel/rss:title"/></title>
			<link rel="home" title="{$siteName}" href="{$baseURI}/" />
			<link rel="meta" title="娘娘飯店しるきぃうぇぶ更新情報" href="{$baseURI}/rss.rdf" />
			<link rel="alternate" type="application/rss+xml" title="娘娘飯店しるきぃうぇぶ更新情報" href="{$baseURI}/rss.rdf" />
			<link rel="schema.FOAF" href="http://purl.org/dc/elements/1.1/" />
			<link rel="meta FOAF.MAKER" type="application/rdf+xml" title="ありみかさとみの FOAF" href="{$baseURI}/profiles/foaf/foaf.rdf" />
			<link rel="help" title="このサイトについて" href="{$baseURI}/profiles/about_ThisSite.html" />
			<link rel="copyright" title="著作権ほか" href="{$baseURI}/profiles/about_ThisSite.html#copy" />
			<link rel="search" title="しるきぃうぇぶ検索ましーん" href="{$baseURI}/siteSearch.html" />
			<link rel="icon" type="image/png" href="{$baseURI}/common/img/icon/favicon.png" />
			<link rel="shortcut icon" type="image/x-icon" href="{$baseURI}/common/img/icon/favicon.ico" />
			<link rev="made" title="{rss:channel/dc:creator}にメール" href="mailto:a-satomi@remus.dti.ne.jp" />
			<link rel="styleSheet" type="text/css" media="screen,tv" href="{$baseURI}/common/css/rss.css" title="ぴんくすとらいぷ" />
			<script type="text/javascript" src="{$baseURI}/common/js/common.js">//</script>

		</head>
		<body>
			<xsl:call-template name="navi"/>
			<div class="section">
				<h1>RSS : <xsl:value-of select="rss:channel/rss:title"/></h1>
				<p><xsl:value-of select="rss:channel/rss:description"/></p>
				<ul class="refLink">
					<li>
						<a href="{rss:image/rss:link}" title="{rss:image/rss:title}">
							<img src="{rss:image/rss:url}" width="200" height="40" alt="{rss:image/rss:title}"/>
						</a>
					</li>
					<!--
					<li id="rsstimes">
						<a href="http://gorou.zapto.org/ruby/rsstimes/">
							<img src="http://gorou.zapto.org/ruby/rsstimes/rsstimes.rb?uri={rss:channel/@rdf:about}&amp;text=RSSTIMES&amp;mode=rss&amp;textcolor=%23e2364a&amp;fillcolor=%23ec9090&amp;linecolor=%23f9f3f5&amp;fadeout=false&amp;width=140&amp;height=20" width="150" height="36" alt="RSSTIMES" title="RSSTIMES" />
						</a>
					</li>
					-->
					<li id="feedmeter">
						<a href="http://feedmeter.net/detail.php?r={rss:channel/@rdf:about}">
							<img src="http://feedmeter.net/image.php?r={rss:channel/@rdf:about}" width="60" height="36" alt="RSS feed meter" title="RSS feed meter" />
						</a>
					</li>
				</ul>
				<div class="section" id="headlines">
					<h2><xsl:value-of select="rss:channel/rss:title"/></h2>
					<xsl:apply-imports/>
				</div>

			</div>
			<xsl:call-template name="navi"/>
			<address>
				<xsl:text>Copyright &#169; 1998-2007 ALIMIKA SATOMI/NYAN-NYAN-HANTEN.</xsl:text>
				<span class="datetime">Last-modified: <xsl:apply-templates select="rss:channel/dc:date"/></span>
			</address>
			<ul id="shortCut">

				<li id="made"><a href="mailto:a-satomi@remus.dti.ne.jp" title="ありみかさとみにメール" rev="made">
					<img src="{$baseURI}/common/img/icon/MailIcon.png" width="18" height="15" alt="" />Mail to Alimika Satomi</a></li>
				<li id="search"><a href="{$baseURI}/siteSearch.html" title="しるきぃうぇぶ検索ましーん" rel="search">
					<img src="{$baseURI}/common/img/icon/glass.png" width="15" height="15" alt="" />Site search</a></li>
				<li id="copyright"><a href="{$baseURI}/profiles/about_ThisSite.html#copy" title="著作権ほか" rel="copyright">
					<img src="{$baseURI}/common/img/icon/caution.png" width="15" height="15" alt="" />About copyrights</a></li>
				<li id="dMomo"><a href="{$baseURI}/bunsyorou/DedicateMomo.html" title="ももいろコミューン">
					<img src="{$baseURI}/common/img/banner/dedicateMomo.png" width="88" height="31" alt="ももいろコミューン" /></a></li>
				<li id="validator"><a href="http://feedvalidator.org/check.cgi?url={rss:channel/@rdf:about}" title="Feed Validator でチェキ">
					<img src="{$baseURI}/common/img/banner/valid-rss.png" width="88" height="31" alt="Feed Validator for Atom and RSS"/></a></li>
			</ul>
		</body>
	</html>
</xsl:template>

<xsl:template name="navi">
	<ul class="navigation">
		<li class="home"><a href="{$baseURI}/" title="{$siteName} [T]" accesskey="T" rel="home">
			<img src="{$baseURI}/common/img/icon/LeftArrow.png" width="15" height="15" alt="←" /><xsl:value-of select="$siteName"/></a></li>
	</ul>
</xsl:template>

</xsl:stylesheet>