<?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: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>
        <style type="text/css">
          body { font-family: Arial, Verdana, Helvetica, sans-serif; letter-spacing: 0.1em; margin-top: 15px; margin-left: 40px; margin-right: 40px; }
          a { text-decoration: underline}
          a:link { color: #333399;}
          a:visited { color: #666666;}
          a:active { color: #FF8000;}
          a:hover { color: #FF3300;}
          h1 { font-size: 130%;
          color: #333333;
          border: 1px solid #333333;
          padding: 0.5em;
          text-align: center;
          background: #EEEEEE; }
          ul {margin-left:1.5em}
          li { font-size: 90%;
		  line-height: 160%;
		  background-image: url(../webimg/list.png);
			background-position: 0px 5px;
			background-repeat: no-repeat;
			margin-left: -15px;
			padding-left: 15px;
			margin-bottom: 5px;
			list-style-type: none; }
          hr {color: #dddddd; height: 1px;}
        </style>
      </head>
      <body>
        <h1><xsl:value-of select="rss:channel/rss:title"/> 新着情報</h1>
        <xsl:value-of select="rss:channel/rss:description"/>
        <hr/>
        <ul><xsl:apply-templates select="rss:item"/></ul>
        <hr/>
        <a href="{rss:channel/rss:link}"><xsl:value-of select="rss:channel/rss:title"/> Homeへ</a>
      </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="dc:date"/>)<br/><xsl:value-of select="rss:description"/></li>
  </xsl:template>

</xsl:stylesheet>
