<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
	xmlns:foaf="http://xmlns.com/foaf/0.1/"
	xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
	xmlns:dc ="http://purl.org/dc/elements/1.1/"
	xmlns:dcterms="http://purl.org/dc/terms/"
	xmlns:contact="http://www.w3.org/2000/10/swap/pim/contact#"
	xmlns:air="http://www.daml.org/2001/10/html/airport-ont#"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	xmlns:bio="http://purl.org/vocab/bio/0.1/"
	xmlns:rss="http://purl.org/rss/1.0/"
	xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
	xmlns:exif="http://www.kanzaki.com/ns/exif#"
	xmlns:wn="http://xmlns.com/wordnet/1.6/"
	xmlns:usstate="http://www.daml.ri.cmu.edu/ont/State.daml#" 
	xmlns:iso="http://www.daml.org/2001/09/countries/iso-3166-ont#" 
	xmlns:visit="http://purl.org/net/vocab/2004/07/visit#"
	xmlns:ag="http://purl.org/rss/1.0/modules/aggregation/"
	exclude-result-prefixes="rdf rdfs foaf rss bio air contact rdf dc dcterms trackback wn exif geo usstate iso visit ag"
>

<xsl:output method="html" /> 
<!--
<xsl:output 
	method="xml"
	doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
	doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
	encoding="utf-8"
	indent="yes"
/> 
-->
 <xsl:template match="/">
  <xsl:apply-templates select="rdf:RDF"/>
  <xsl:apply-templates select="result "/>
 </xsl:template>

 <xsl:template match="result">
	<html xml:lang="ja">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>BrowseThrough : <xsl:value-of select="./@about"/></title>
		<link rel="stylesheet" href="http://onohiroki.cycling.jp/browseThrough/browseThrough.css" type="text/css" />
		<meta name="author" content="Hiroki ONO" />
	</head>
	<body>
	<div class="navi">[ <a href="http://onohiroki.cycling.jp/browseThrough/">説明</a> ]</div>
	<form class="inputUri" method="get" action="http://www.w3.org/2005/08/online_xslt/xslt">
		<input type="hidden" name="xslfile" value="http://onohiroki.cycling.jp/browseThrough/browseThrough.xsl" />
		<label>FOAF など RDF/XML の URL: 
			<input type="text" size="60" name="xmlfile">
				<xsl:attribute name="value">
					<xsl:if test="./success">
						<xsl:value-of select="./success"/>
					</xsl:if>
				</xsl:attribute>
			</input>
		</label><input type="submit" value="ブラウズする" />
	</form>
	<xsl:if test="./error">
		<div class="error">
			<h1><xsl:value-of select="./error"/></h1>
			<p>Bulkfeed で <xsl:value-of select="./@about"/> の RSS を検索したけど，見つからなかったようです．</p>
		</div>
	</xsl:if>
	<div class="footer">
	<address><a href="http://www.w3.org/2005/08/online_xslt/xslt?xslfile=http%3A%2F%2Fonohiroki.cycling.jp%2FbrowseThrough%2FbrowseThrough.xsl&amp;xmlfile=http%3A%2F%2Fonohiroki.cycling.jp%2Finfo%2Ffoaf.rdf">おのひろき</a>が <a href="http://onohiroki.cycling.jp/browseThrough/browseThrough.xsl" title="broseThough XSL">XSL ファイル</a>を書きました．自由に改変して再配布してください．</address>
	<p>これは <a href="http://www.w3.org/2001/05/xslt">W3C XSLT Service</a> を利用して <a href="http://onohiroki.cycling.jp/comp-foaf-weblog-digest.html">FOAF</a> や <a href="http://onohiroki.cycling.jp/comp-rss-weblog-digest.html">RSS</a> などの RDF/XML を表示します．</p>
	</div>
   </body>
  </html>
 </xsl:template>
 
 <xsl:template match="rdf:RDF">
	<html xml:lang="ja">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>BrowseThrough : <xsl:value-of select="/rdf:RDF/foaf:Person/foaf:name"/>　<xsl:value-of select="/rdf:RDF/foaf:Person/foaf:nick"/>　<xsl:value-of select="/rdf:RDF/rss:channel/rss:title"/></title>
		<link rel="stylesheet" href="http://onohiroki.cycling.jp/browseThrough/browseThrough.css" type="text/css" />
		<meta name="author" content="Hiroki ONO" />
	</head>
	<body>
	<div class="navi">[ <a href="http://onohiroki.cycling.jp/browseThrough/">説明</a> ]</div>
	<form class="inputUri" method="get" action="http://www.w3.org/2005/08/online_xslt/xslt">
		<input type="hidden" name="xslfile" value="http://onohiroki.cycling.jp/browseThrough/browseThrough.xsl" />
		<label>FOAF など RDF/XML の URL: 
			<input type="text" size="60" name="xmlfile">
				<xsl:attribute name="value">
					<xsl:if test="contains(./rss:channel/@rdf:about,'.rdf')">
						<xsl:value-of select="./rss:channel/@rdf:about"/>
					</xsl:if>
				</xsl:attribute>
			</input>
		</label><input type="submit" value="ブラウズする" />
	</form>
	<div class="topLevel">
	<xsl:apply-templates select="rdf:Description"/>
	<xsl:apply-templates select="foaf:Group"/>
	<xsl:apply-templates select="foaf:Person"/>
	<xsl:apply-templates select="foaf:Image"/>
	<xsl:apply-templates select="rss:channel"/>
	<xsl:apply-templates select="rss:item"/>
	<xsl:apply-templates select="exif:IFD"/>
	<xsl:call-template name="visited"/>
	</div>
	<div class="footer">
	<address><a href="http://www.w3.org/2005/08/online_xslt/xslt?xslfile=http%3A%2F%2Fonohiroki.cycling.jp%2FbrowseThrough%2FbrowseThrough.xsl&amp;xmlfile=http%3A%2F%2Fonohiroki.cycling.jp%2Finfo%2Ffoaf.rdf">おのひろき</a>が <a href="http://onohiroki.cycling.jp/browseThrough/browseThrough.xsl" title="broseThough XSL">XSL ファイル</a>を書きました．自由に改変して再配布してください．</address>
	<p>これは <a href="http://www.w3.org/2001/05/xslt">W3C XSLT Service</a> を利用して <a href="http://onohiroki.cycling.jp/comp-foaf-weblog-digest.html">FOAF</a> や <a href="http://onohiroki.cycling.jp/comp-rss-weblog-digest.html">RSS</a> などの RDF/XML を表示します．</p>
	</div>
   </body>
  </html>
 </xsl:template>

 <xsl:template match="foaf:Person">
 	
 	<div class="person">
 	<ul>
 	<xsl:apply-templates select="./@foaf:name"/>
	<xsl:apply-templates select="foaf:name"/>
	<xsl:apply-templates select="./@foaf:nick"/>
	<xsl:apply-templates select="foaf:nick"/>
	<xsl:apply-templates select="rdfs:seeAlso"/>
	<xsl:apply-templates select="foaf:depiction"/>
	<!-- <xsl:apply-templates select="foaf:title"/>
	<xsl:apply-templates select="foaf:firstName"/>
	<xsl:apply-templates select="foaf:surname"/> -->
	<xsl:apply-templates select="bio:olb"/>
	<xsl:apply-templates select="foaf:homepage"/>
	<xsl:apply-templates select="foaf:mbox"/>
	<xsl:apply-templates select="foaf:weblog"/>
	<xsl:apply-templates select="foaf:myersBriggs"/>
	<xsl:apply-templates select="foaf:made"/>
	<xsl:apply-templates select="foaf:schoolHomepage"/>
	<xsl:apply-templates select="foaf:publications"/>
	<xsl:apply-templates select="foaf:interest"/>
	<xsl:apply-templates select="foaf:mbox_sha1sum"/>
	<xsl:apply-templates select="@foaf:mbox_sha1sum"/>

	<xsl:apply-templates select="foaf:knows"/>
	</ul>
	</div>
 </xsl:template>
 
 <xsl:template match="foaf:Group">
	<div class="group">
	<ul>
 	<xsl:apply-templates select="./@foaf:name"/>
	<xsl:apply-templates select="foaf:name"/>
	<xsl:apply-templates select="./@foaf:nick"/>
	<xsl:apply-templates select="foaf:nick"/>
	<xsl:apply-templates select="rdfs:seeAlso"/>
	<xsl:apply-templates select="foaf:depiction"/>
	<xsl:apply-templates select="foaf:weblog"/>
	<xsl:apply-templates select="foaf:made"/>
	<xsl:apply-templates select="foaf:schoolHomepage"/>
	<xsl:apply-templates select="foaf:publications"/>
	<xsl:apply-templates select="foaf:interest"/>
	<xsl:apply-templates select="foaf:homepage"/>
		<div class="memberList">
			<xsl:apply-templates select="foaf:member"/>
		</div>
	</ul>
	</div>
 </xsl:template>

<xsl:template match="foaf:Image">
 	<div class="image">
 	<ul>
 	<xsl:apply-templates select="./@dc:title"/>
 	<xsl:apply-templates select="dc:title"/>
 	<xsl:apply-templates select="./@foaf:name"/>
	<xsl:apply-templates select="foaf:name"/>
	<xsl:apply-templates select="foaf:thumbnail"/>
	<xsl:apply-templates select="rdfs:seeAlso"/>
	<xsl:apply-templates select="foaf:depiction"/>
	<xsl:apply-templates select="foaf:homepage"/>
	<xsl:apply-templates select="dc:description"/>
	<xsl:apply-templates select="dc:rights"/>
	<xsl:apply-templates select="dc:date"/>
	<xsl:apply-templates select="dc:subject"/>
	<xsl:apply-templates select="dc:creator"/>
	<xsl:apply-templates select="foaf:depicts"/>
	<xsl:apply-templates select="foaf:maker"/>
	</ul>
	</div>
</xsl:template>

<xsl:template match="rdf:Description">
	<div class="rdfDescription">
	<ul>
	<xsl:if test="contains(./@rdf:about,'&amp;')">
	<xsl:if test="contains(./@rdf:about,'.rdf')">
		<li class="itemRdf"><a><xsl:attribute name="href">http://www.w3.org/2005/08/online_xslt/xslt?xslfile=http%3A%2F%2Fonohiroki.cycling.jp%2FbrowseThrough%2FbrowseThrough.xsl&amp;xmlfile=<xsl:value-of select="./@rdf:about"/>
		</xsl:attribute><xsl:attribute name="title"><xsl:value-of select="./@rdf:about"/></xsl:attribute>RDF</a></li>
	</xsl:if>
	</xsl:if>
	<xsl:apply-templates select="./@dc:title"/>
	<xsl:apply-templates select="dc:title"/>
	<xsl:apply-templates select="dc:description"/>
	<xsl:apply-templates select="rdfs:seeAlso"/>
	<xsl:apply-templates select="dc:date"/>
	<xsl:apply-templates select="dc:subject"/>
	<xsl:apply-templates select="dc:creator"/>
	<xsl:apply-templates select="dc:rights"/>
 	<xsl:apply-templates select="./@foaf:name"/>
	<xsl:apply-templates select="foaf:name"/>
	<xsl:apply-templates select="./@foaf:nick"/>
	<xsl:apply-templates select="foaf:nick"/>
	<xsl:apply-templates select="foaf:depiction"/>
	<xsl:apply-templates select="foaf:depicts"/>
	<xsl:apply-templates select="foaf:firstName"/>
	<xsl:apply-templates select="foaf:homepage"/>
	<xsl:apply-templates select="foaf:interest"/>
	<xsl:apply-templates select="foaf:knows"/>
	<xsl:apply-templates select="foaf:made"/>
	<xsl:apply-templates select="foaf:maker"/>
	<xsl:apply-templates select="foaf:mbox"/>
	<xsl:apply-templates select="foaf:myersBriggs"/>
	<xsl:apply-templates select="foaf:publications"/>
	<xsl:apply-templates select="foaf:schoolHomepage"/>
	<xsl:apply-templates select="foaf:surname"/>
	<xsl:apply-templates select="foaf:title"/>
	<xsl:apply-templates select="foaf:weblog"/>
		<div class="memberList">
			<xsl:apply-templates select="foaf:member"/>
		</div>
	<xsl:apply-templates select="bio:olb"/>
	</ul>
	</div>
</xsl:template>

 <xsl:template match="rdfs:seeAlso">
 	<xsl:choose>
 		<xsl:when test="contains(./@rdf:resource,'&amp;')">
 		</xsl:when>
		<xsl:when test="@dc:title">
			<li class="seeAlso"><a><xsl:attribute name="href">http://www.w3.org/2005/08/online_xslt/xslt?xslfile=http%3A%2F%2Fonohiroki.cycling.jp%2FbrowseThrough%2FbrowseThrough.xsl&amp;xmlfile=<xsl:value-of select="./@rdf:resource"/></xsl:attribute><xsl:value-of select="./@dc:title"/></a></li>
		</xsl:when>
		<xsl:otherwise>
			<li class="seeAlso"><a><xsl:attribute name="href">http://www.w3.org/2005/08/online_xslt/xslt?xslfile=http%3A%2F%2Fonohiroki.cycling.jp%2FbrowseThrough%2FbrowseThrough.xsl&amp;xmlfile=<xsl:value-of select="./@rdf:resource"/></xsl:attribute><xsl:attribute name="title"><xsl:value-of select="./@rdf:resource"/></xsl:attribute>追加情報</a></li>
		</xsl:otherwise>
	</xsl:choose>
 </xsl:template>

 <xsl:template match="ag:sourceURL">
	<li class="seeAlso"><a><xsl:attribute name="href">http://www.w3.org/2005/08/online_xslt/xslt?xslfile=http%3A%2F%2Fonohiroki.cycling.jp%2FbrowseThrough%2FbrowseThrough.xsl&amp;xmlfile=<xsl:value-of select="."/></xsl:attribute><xsl:attribute name="title"><xsl:value-of select="."/></xsl:attribute>RSS</a></li>
 </xsl:template>

 <xsl:template match="foaf:interest">
 	<xsl:choose>
		<xsl:when test="@dc:title">
			<li>興味: <a><xsl:attribute name="href">http://xml.mfd-consult.dk/foaf/explorer/?foaf=<xsl:value-of select="./@rdf:resource"/></xsl:attribute><xsl:value-of select="./@dc:title"/></a></li>
		</xsl:when>
		<xsl:otherwise>
			<li>興味: <a><xsl:attribute name="href">http://xml.mfd-consult.dk/foaf/explorer/?foaf=<xsl:value-of select="./@rdf:resource"/></xsl:attribute><xsl:attribute name="title"><xsl:value-of select="./@rdf:resource"/></xsl:attribute><xsl:value-of select="./@rdf:resource"/></a></li>
		</xsl:otherwise>
	</xsl:choose>
 </xsl:template>
 
 <xsl:template match="foaf:name">
 	<li class="name"><xsl:value-of select="."/></li>
 </xsl:template>
 
 <xsl:template match="@foaf:name">
 	<li class="name"><xsl:value-of select="."/></li>
 </xsl:template>
   <xsl:template match="foaf:title">
 	<li class="title"><xsl:value-of select="."/></li>
 </xsl:template>
 <xsl:template match="foaf:firstName">
	<li class="firstName"><xsl:value-of select="."/></li>
 </xsl:template>
 <xsl:template match="foaf:surname">
 	<li class="surname"><xsl:value-of select="."/></li>
 </xsl:template>
 <xsl:template match="foaf:nick">
 	<li class="nick"><xsl:value-of select="."/></li>
 </xsl:template>
 <xsl:template match="foaf:mbox">
	<li class="mbox"><a><xsl:attribute name="href">http://eikeon.com/foaf/?mbox=<xsl:value-of select="."/></xsl:attribute><xsl:value-of select="."/></a></li>
 </xsl:template>
 <xsl:template match="foaf:mbox_sha1sum">
	
 </xsl:template>
  <xsl:template match="@foaf:mbox_sha1sum">
	
 </xsl:template>
  <xsl:template match="foaf:myersBriggs">
	<li class="myersBriggs">性格類型 MyersBriggs <xsl:value-of select="."/></li>
 </xsl:template>
 <xsl:template match="foaf:homepage">
 	<li class="homepage">
	<xsl:choose>
		<xsl:when test="@dc:title">
			<a><xsl:attribute name="href"><xsl:value-of select="./@rdf:resource"/></xsl:attribute><xsl:value-of select="./@dc:title"/></a>
		</xsl:when>
		<xsl:otherwise>
			<a><xsl:attribute name="href"><xsl:value-of select="./@rdf:resource"/></xsl:attribute><xsl:attribute name="title"><xsl:value-of select="./@rdf:resource"/></xsl:attribute>Web サイト</a>
		</xsl:otherwise>
	</xsl:choose>
	</li>
 </xsl:template>
 <xsl:template match="foaf:weblog">
	<xsl:choose>
		<xsl:when test="@dc:title">
			<li class="weblog"><a><xsl:attribute name="href"><xsl:value-of select="./@rdf:resource"/></xsl:attribute><xsl:value-of select="./@dc:title"/></a></li>
		</xsl:when>
		<xsl:otherwise>
			<li class="weblog"><a><xsl:attribute name="href"><xsl:value-of select="./@rdf:resource"/></xsl:attribute><xsl:attribute name="title"><xsl:value-of select="./@rdf:resource"/></xsl:attribute>Weblog</a></li>
		</xsl:otherwise>
	</xsl:choose>
 </xsl:template>
 
 <xsl:template match="foaf:made">
	<li>
	<xsl:choose>
		<xsl:when test="contains(./@rdf:resource,'.rdf')">
			<xsl:attribute name="class">madeRdf</xsl:attribute>
		</xsl:when>
		<xsl:otherwise>
			<xsl:attribute name="class">made</xsl:attribute>
		</xsl:otherwise>
	</xsl:choose>
	<xsl:choose>
		<xsl:when test="string(@rdf:resource) = string(/rdf:RDF/rss:channel/@rdf:about)">
			制作物: 現在閲覧している RDF
		</xsl:when>
		<xsl:when test="string(@rdf:resource) = ''">
			<xsl:attribute name="class">madeRdf</xsl:attribute>
			制作物: 現在閲覧している RDF
		</xsl:when>
		<xsl:when test="contains(@rdf:resource,'&amp;')">
		</xsl:when>
		<xsl:otherwise>
			<a><xsl:choose><xsl:when test="contains(./@rdf:resource,'.rdf')"><xsl:attribute name="href">http://www.w3.org/2005/08/online_xslt/xslt?xslfile=http%3A%2F%2Fonohiroki.cycling.jp%2FbrowseThrough%2FbrowseThrough.xsl&amp;xmlfile=<xsl:value-of select="./@rdf:resource"/></xsl:attribute></xsl:when><xsl:otherwise><xsl:attribute name="href"><xsl:value-of select="./@rdf:resource"/></xsl:attribute></xsl:otherwise></xsl:choose><xsl:choose><xsl:when test="@dc:title"><xsl:value-of select="./@dc:title"/></xsl:when><xsl:otherwise>制作物</xsl:otherwise></xsl:choose></a>
		</xsl:otherwise>
	</xsl:choose>
	</li>
 </xsl:template>
 
 <xsl:template match="foaf:depiction">
	<li class="depiction"><img alt="" width="50"><xsl:attribute name="src"><xsl:value-of select="./@rdf:resource"/></xsl:attribute></img></li>
 </xsl:template>
 
 <xsl:template match="foaf:thumbnail">
	<li class="thumbnail"><img alt="" height="90"><xsl:attribute name="src"><xsl:value-of select="./@rdf:resource"/></xsl:attribute></img></li>
 </xsl:template>
 
 <xsl:template match="foaf:schoolHomepage">
	<xsl:choose>
		<xsl:when test="@dc:title">
			<li class="schoolHomepage">学校: <a><xsl:attribute name="href"><xsl:value-of select="./@rdf:resource"/></xsl:attribute><xsl:value-of select="./@dc:title"/></a></li>
		</xsl:when>
		<xsl:otherwise>
			<li class="schoolHomepage"><a><xsl:attribute name="href"><xsl:value-of select="./@rdf:resource"/></xsl:attribute>学校の Web ページ: <xsl:value-of select="./@rdf:resource"/></a></li>
		</xsl:otherwise>
	</xsl:choose>
 </xsl:template>
 
 <xsl:template match="foaf:publications">
	<li class="publications"><xsl:value-of select="."/></li>
 </xsl:template>
 
 <xsl:template match="bio:olb">
	<li class="bioOlb"><xsl:value-of select="."/></li>
 </xsl:template>
 <xsl:template match="foaf:knows">
 	<div class="knows">
	<xsl:apply-templates select="foaf:Person"/>
	</div>
 </xsl:template>
 
 <xsl:template match="foaf:member">
 	<div class="member">
	<xsl:apply-templates select="foaf:Person"/>
	<xsl:apply-templates select="foaf:Group"/>
	<xsl:apply-templates select="foaf:Organization"/>
	</div>
 </xsl:template>
 
 <xsl:template match="foaf:maker">
 	<div class="maker">
	<xsl:apply-templates select="foaf:Person"/>
	<xsl:apply-templates select="foaf:Group"/>
	<xsl:apply-templates select="foaf:Organization"/>
	</div>
 </xsl:template>
 
 <xsl:template match="foaf:topic">
 	<div class="foaftopic">
 	<xsl:if test="./geo:*">
 	<div class="gps">
		<xsl:if test="./geo:lat">
			<xsl:if test="./geo:long">
				<li>地図: <a><xsl:attribute name="href">http://www.mapquest.com/maps/map.adp?latlongtype=decimal&amp;latitude=<xsl:value-of select="./geo:lat"/>&amp;longitude=<xsl:value-of select="./geo:long"/></xsl:attribute>
				<xsl:attribute name="title">MapQuest_<xsl:value-of select="./geo:lat"/>_<xsl:value-of select="./geo:long"/></xsl:attribute>MapQuest</a></li>
			</xsl:if>
		</xsl:if>
		<xsl:if test="./geo:lat">
			<xsl:if test="./geo:long">
				<li>地図: <a><xsl:attribute name="href">http://www.multimap.com/map/browse.cgi?mapsize=big&amp;scale=25000&amp;lat=<xsl:value-of select="./geo:lat"/>&amp;lon=<xsl:value-of select="./geo:long"/></xsl:attribute>
				<xsl:attribute name="title">multimap_<xsl:value-of select="./geo:lat"/>_<xsl:value-of select="./geo:long"/></xsl:attribute>multimap</a></li>
			</xsl:if>
		</xsl:if>
	</div>
	</xsl:if>
	<xsl:apply-templates select="foaf:Image"/>
	</div>
 </xsl:template>
 
 <xsl:template match="rss:channel">
 	<div class="rss">
 	<p>RSS</p>
 	<div class="channel">
 	<ul>
		<li class="rssTitle"><a><xsl:attribute name="href"><xsl:value-of select="./rss:link"/></xsl:attribute><xsl:value-of select="./rss:title"/></a>
		<!-- [ <a class="RSS"><xsl:attribute name="href"><xsl:value-of select="./@rdf:about"/></xsl:attribute><xsl:attribute name="title">RSS of <xsl:value-of select="./rss:title"/></xsl:attribute><img src="http://onohiroki.cycling.jp/image/png/rdf.png" alt="RDF"/> / RSS</a> ]-->
		</li>
		<xsl:apply-templates select="rdfs:seeAlso"/>
		<xsl:apply-templates select="rss:description"/>
		<xsl:apply-templates select="dc:date"/>
		<xsl:apply-templates select="dc:subject"/>
		<xsl:apply-templates select="dc:creator"/>
		<xsl:apply-templates select="trackback:ping"/>
	</ul>
	</div>
	</div>
 </xsl:template>
 
  <xsl:template match="rss:item">
 	<div class="item">
 		<xsl:choose>
			<xsl:when test="./@rdf:ID">
				<xsl:attribute name="href"><xsl:value-of select="./@rdf:ID"/></xsl:attribute>
			</xsl:when>
			<xsl:otherwise>
				<xsl:if test="./rdf:ID">
					<xsl:attribute name="href"><xsl:value-of select="./rdf:ID"/></xsl:attribute>
				</xsl:if>
			</xsl:otherwise>
		</xsl:choose>
 	<ul>
 		<li class="rssTitle">
 			<xsl:if test="contains(./rss:link,'.rdf')">
 				<img src="http://onohiroki.cycling.jp/image/png/rdf.png" alt="[RDF]"/> 
 			</xsl:if>
 			<a><xsl:attribute name="href"><xsl:value-of select="./rss:link"/></xsl:attribute><xsl:value-of select="./rss:title"/></a>
 		</li>
 		<xsl:if test="contains(./@rdf:about,'&amp;')">
 		<xsl:if test="contains(./@rdf:about,'.rdf')">
			<li class="itemRdf"><a><xsl:attribute name="href">http://www.w3.org/2005/08/online_xslt/xslt?xslfile=http%3A%2F%2Fonohiroki.cycling.jp%2FbrowseThrough%2FbrowseThrough.xsl&amp;xmlfile=<xsl:value-of select="./@rdf:about"/></xsl:attribute><xsl:value-of select="./rss:title"/></a></li>
		</xsl:if>
		</xsl:if>
		<xsl:apply-templates select="foaf:thumbnail"/>
		<xsl:apply-templates select="rdfs:seeAlso"/>
		
		<xsl:apply-templates select="rss:description"/>
		<xsl:apply-templates select="dc:date"/>
		<xsl:apply-templates select="dc:subject"/>
		<xsl:apply-templates select="dc:creator"/>
		<xsl:apply-templates select="trackback:ping"/>
		<xsl:apply-templates select="dcterms:references"/>
		<xsl:apply-templates select="foaf:topic"/>
		<xsl:apply-templates select="ag:sourceURL"/>
	</ul>
	</div>
 </xsl:template>
 
 <xsl:template match="rss:title">
	<li class="rssTitle"><xsl:value-of select="."/></li>
 </xsl:template>

 <xsl:template match="rss:description">
	<li class="rssDescription"><xsl:value-of select="."/></li>
 </xsl:template>
 
 <xsl:template match="dc:date">
	<li class="dcDate"><xsl:value-of select="."/></li>
 </xsl:template>
 
 <xsl:template match="dc:subject">
	<li class="dcSubject">分類： <xsl:value-of select="."/></li>
 </xsl:template>
 
 <xsl:template match="dc:creator">
	<li class="dcCreator">著者： <xsl:value-of select="."/></li>
 </xsl:template>
 
  <xsl:template match="trackback:ping">
	<li class="trackbackPing">トラックバック URL： <xsl:value-of select="./@rdf:resource"/></li>
 </xsl:template>
 
 <xsl:template match="rss:title">
	<li class="rssTitle"><xsl:value-of select="."/></li>
 </xsl:template>
 
 <xsl:template match="dc:description">
	<li class="dcDescription"><xsl:value-of select="."/></li>
 </xsl:template>
 
 <xsl:template match="dc:title">
	<li class="dcTitle"><xsl:value-of select="."/></li>
 </xsl:template>
 
 <xsl:template match="dcterms:references">
	<xsl:choose>
		<xsl:when test="@dc:title">
			<li class="dctermsReferences">参照:<a><xsl:attribute name="href"><xsl:value-of select="./@rdf:resource"/></xsl:attribute><xsl:value-of select="./@dc:title"/></a></li>
		</xsl:when>
		<xsl:otherwise>
			<li class="dctermsReferences">参照:<a><xsl:attribute name="href"><xsl:value-of select="./@rdf:resource"/></xsl:attribute><xsl:attribute name="title"><xsl:value-of select="./@rdf:resource"/></xsl:attribute>Web サイト</a></li>
		</xsl:otherwise>
	</xsl:choose>
 </xsl:template>

 <xsl:template match="exif:IFD">
 	<div class="exif">
 		<table title="Eixf データ" summary ="Eixf データの属性と値">
 		<xsl:choose>
 			<xsl:when test="./@rdf:ID">
 				<caption><xsl:value-of select="./@rdf:ID"/></caption>
 			</xsl:when>
 			<xsl:otherwise>
 				<xsl:if test="./@rdf:resource">
 					<caption><xsl:value-of select="./@rdf:resource"/></caption>
 				</xsl:if>
 			</xsl:otherwise>
 		</xsl:choose>
 		<tbody>
 			<xsl:apply-templates select="exif:make"/>
 			<xsl:apply-templates select="exif:model"/>
 			<xsl:apply-templates select="exif:exposureTime"/>
 			<xsl:apply-templates select="exif:fNumber"/>
 			<xsl:apply-templates select="exif:exifVersion"/>
 			<xsl:apply-templates select="exif:exposureBiasValue"/>
 			<xsl:apply-templates select="exif:maxApertureValue"/>
 			<xsl:apply-templates select="exif:meteringMode"/>
 			<xsl:apply-templates select="exif:focalLength"/>
 			<xsl:apply-templates select="exif:colorSpace"/>
 			<xsl:apply-templates select="exif:exif_IFD_Pointer/exif:IFD"/>
 		</tbody>
 		</table>
 	</div>
 </xsl:template>

 <xsl:template match="exif:make">
	<tr class="exif"><th>カメラメーカ</th><td><xsl:value-of select="."/></td></tr>
 </xsl:template>
 <xsl:template match="exif:model">
	<tr class="exif"><th>カメラモデル</th><td><xsl:value-of select="."/></td></tr>
 </xsl:template>
 <xsl:template match="exif:exposureTime">
	<tr class="exif"><th>露出時間</th><td><xsl:value-of select="."/></td></tr>
 </xsl:template>
 <xsl:template match="exif:fNumber">
	<tr class="exif"><th>F 値</th><td><xsl:value-of select="."/></td></tr>
 </xsl:template>
 <xsl:template match="exif:exifVersion">
	<tr class="exif"><th>Exif バージョン</th><td><xsl:value-of select="."/></td></tr>
 </xsl:template>
 <xsl:template match="exif:exposureBiasValue">
	<tr class="exif"><th>露出バイアス値</th><td><xsl:value-of select="."/></td></tr>
 </xsl:template>
 <xsl:template match="exif:maxApertureValue">
	<tr class="exif"><th>最大絞り値</th><td><xsl:value-of select="."/></td></tr>
 </xsl:template>
 <xsl:template match="exif:meteringMode">
	<tr class="exif"><th>単位モード値</th><td><xsl:value-of select="."/></td></tr>
 </xsl:template>
 <xsl:template match="exif:focalLength">
	<tr class="exif"><th>焦点距離</th><td><xsl:value-of select="."/></td></tr>
 </xsl:template>
 <xsl:template match="exif:colorSpace">
	<tr class="exif"><th>カラースペース</th><td><xsl:value-of select="."/></td></tr>
 </xsl:template>

 <xsl:template name="visited">
	<xsl:if test="/rdf:RDF/foaf:Person/visit:country/iso:Country/iso:code">
	<ul class="visited">
		<li class="visitedcountry">
		訪問した事がある国<br/>
		<img alt=""><xsl:attribute 
			name="src">http://www.world66.com/myworld66/visitedCountries/worldmap?visited=<xsl:for-each select="/rdf:RDF/foaf:Person/visit:country/iso:Country/iso:code"><xsl:value-of select="."/></xsl:for-each></xsl:attribute></img>
		<br/>
		<a href="http://www.world66.com/myworld66">create your own visited country map</a>
		or <a href="http://www.world66.com">write about it on the open travel guide</a></li>
	</ul>
	</xsl:if>
	<xsl:if test="/rdf:RDF/foaf:Person/visit:usstate/usstate:USState/usstate:code">
	<ul class="visited">
		<li class="visitedstates">
		訪問した事がある米国の州<br/>
		<img alt=""><xsl:attribute 
			name="src">http://www.world66.com/myworld66/visitedStates/statemap?visited=<xsl:for-each select="/rdf:RDF/foaf:Person/visit:usstate/usstate:USState/usstate:code"><xsl:value-of select="."/></xsl:for-each></xsl:attribute></img>
		<br/>
		<a href="http://www.world66.com/myworld66">create your own personalized map of the USA</a>
		or <a href="http://www.world66.com">write about it on the open travel guide</a></li>
	</ul>
	</xsl:if>
	
 </xsl:template>

 <!-- 2003-12-25 公開-->
 <!-- 2003-12-29 修正-->
 <!-- 2004-01-01 修正-->
 <!-- 2004-01-21 修正-->
 <!-- 2004-07-13 visited 追加-->
 <!-- 2004-07-16 http://purl.org/rss/1.0/modules/aggregation/sourceURL 追加-->
</xsl:stylesheet>
 