<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:output method="html"/>

	
	<!-- override built-in template for text/atts -->
	 <xsl:template match="text()|@*"/> 

	<xsl:template match="channel">
	
	<html>
	<head>
	<link rel="trustfeed" type="application/rss+xml" title="{profile/name}" href="#" />
	<style>
	body
	{
		font-family: verdana, helvetica, arial, sans-serif;
		font-size: 12px;
		padding-top: 35px;
		color:#333;
	}
	h2
	{
		font-family: "Trebuchet MS",Verdana,Arial,Sans-serif;		
	}
	h1
	{
		font-family: "Trebuchet MS",Verdana,Arial,Sans-serif;		
	}
	#profile-box
	{
		padding: 6px 6px 6px 6px;
		margin-top: 20px;
		margin-right: 10px;
		border: 1px solid gray;
	}
	#topbar 
	{
		width:100%;
		padding-bottom:5px;
		min-height:24px;
		margin-bottom:10px;
		position:absolute !important;
		top:0;
		left:0;
		z-index:1;
		display:block !important;
		background:#B50000;
		border-bottom:1px solid #F77D31;
		color:#EFCBAD;
		text-align: right;
	}	
	</style>
	</head>
	<body>
	<div id="topbar">
	<span style='
		font-family: "Trebuchet MS",Verdana,Arial,Sans-serif;
		font-size: 20px;
		padding-bottom: 0px;
		margin-bottom: 0px;
		margin-left: 6px;
		margin-right: 6px;'
	>
	<a href="http://www.wanderingstan.com/outfoxed/" style="color:white; text-decoration:none;"><b>Outfoxed</b> informer</a>
	</span>
	</div>
	
	<center>
	<table width="600">
	
		<tr>
		<td valign="top" width="200">
			<div id="profile-box">
				<img src="{profile/image}" width="200" height="200" />

				<h1><xsl:value-of select="profile/name"/></h1> 
				<a href="{profile/homepage}"><xsl:value-of select="profile/homepage"/></a><br/>
				<xsl:value-of select="profile/description"/>
					<xsl:value-of select="date"/><br/>
			</div>
			
		</td>
		<td valign="top">
		
			<h2>Informers</h2>
			
			<xsl:for-each select="informers/informer">
				<xsl:sort select="date" order="descending"/>
					<a href="{uri}"><xsl:value-of select="uri"/></a> <small style="color:gray">(<xsl:value-of select="date"/>)</small>
					<br/>
			</xsl:for-each>
			
			<h2>Reports</h2>

			<xsl:for-each select="reports/report">
				<xsl:sort select="date" order="descending"/>
				
				<xsl:if test = "trust/@degree &gt; 0" >
					<span style="padding: 2px; margin-bottom:4px; font-weight: normal; background-color:green; color: white; "><b>good</b></span>
				</xsl:if>
				<xsl:if test = "trust/@degree &lt; 0" >
					<xsl:if test = "trust/@degree &gt; -26" >
						<span style="padding: 2px; margin-bottom:4px; font-weight: normal; background-color:orange; color: white;"><b>bad</b></span>
					</xsl:if>
					<xsl:if test = "trust/@degree &lt; -25" >
						<span style="padding: 2px; margin-bottom:4px;font-weight: normal; background-color:red; color: white; "><b>DANGEROUS</b></span>
					</xsl:if>
				</xsl:if>								
				<br/>
				
				<a href="{uri}"><xsl:value-of select="uri"/></a><br/>
					<!--<xsl:value-of select="trust/@degree"/>-->
				<xsl:value-of select="description"/>     <small style="color:gray">(<xsl:value-of select="date"/>)</small><br/>
				<br/>
			</xsl:for-each>
			
		</td>
		</tr>
		
	</table>
	</center>
</body>
</html>
	</xsl:template>
	
	
</xsl:stylesheet>