<?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/"
  xmlns:foaf="http://xmlns.com/foaf/0.1/"
  exclude-result-prefixes="rdf rss dc foaf"
>

 <xsl:template match="/">
  <xsl:apply-templates select="rdf:RDF"/>
 </xsl:template>

 <xsl:template match="rdf:RDF">
  <html xml:lang="ja" lang="ja">
   <head>
    <title><xsl:value-of select="rss:channel/rss:title"/></title>
    <link rel="stylesheet" href="/parts/kan01.css" type="text/css" />
    <style type="text/css">li {margin-bottom:0.6em; clear:both} div.desc{border:dotted 1px gray; padding:1em; margin-top:0.5em; margin-bottom:1em}</style>
   </head>
   <body>
    <xsl:call-template name="banner"/>

    <h1><a href="{rss:channel/rss:link}"><xsl:value-of select="rss:channel/rss:title"/></a></h1>
    <p class="lead"><xsl:value-of select="rss:channel/rss:description"/></p>
    <ol class="items">
     <xsl:apply-templates select="rss:item"/>
    </ol>

    <xsl:call-template name="footer">
     <xsl:with-param name="status">Status: RSS updated <xsl:value-of select="rss:channel/dc:date"/>. <a href="/info/navi#status-exp" title="This system is still experimental">Exp</a></xsl:with-param>
    </xsl:call-template>
   </body>
  </html>
 </xsl:template>

 <xsl:template match="rss:item">
  <li><a href="{rss:link}"><xsl:value-of select="rss:title"/></a> (<xsl:value-of select="substring(dc:date,1,10)"/>)<div class="desc"><xsl:apply-templates select=".//foaf:thumbnail"/><xsl:value-of select="rss:description"/></div></li>
 </xsl:template>

 <xsl:template match="foaf:thumbnail">
  <img src="{@rdf:resource}" class="dopo" alt=""/>
 </xsl:template>

 <xsl:include href="../parts/banner-footer.xsl"/>

</xsl:stylesheet>