<?xml version="1.0" ?>
<!DOCTYPE stylesheet 
[
<!ENTITY nbsp    "&#160;">

]><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
		  version="1.0"
                  xmlns:top500="http://www.hoise.com/vmp/top500/1.0"
                 >
<xsl:output method="html" indent="yes" preserve-space="strip"/>

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

<xsl:template match="top500:list">
<html>
<head>
<title>TOP500 European sublist</title>
</head>
<body bgcolor="#fffff0">
<h1>All machines in  Europe in the <xsl:value-of select="@date"/>  supercomputer
list, sorted by Rmax performance. </h1>
<table border="1">
<tr>
 <th> Rank</th>
<th>Country </th>
 <th>World Rank </th><th>Manufacturer </th><th>Computer </th><th>Rmax </th><th>Installation Site </th><th>Year </th>
<!--<th>Area of Installation </th>-->
<th># Proc </th>
<th>Rpeak </th><th>Nmax </th><th>N1/2 </th></tr>

<xsl:apply-templates select="top500:site[top500:country ='France' or 
                                 top500:country ='Netherlands' or 
                                 top500:country ='Switzerland' or 
                                 top500:country ='UK' or 
                                 top500:country ='Sweden' or 
                                 top500:country ='Luxembourg' or 
                                 top500:country ='Germany' or 
                                 top500:country ='Norway' or 
                                 top500:country ='Finland' or 
                                 top500:country ='Austria' or 
                                 top500:country ='Denmark' or 
                                 top500:country ='Italy' or 
                                 top500:country ='Poland' or 
                                 top500:country ='Spain' or 
                                 top500:country ='Portugal' or  
                                 top500:country ='Belgium'  or 
                                 top500:country ='Russian Federation'  or 
                                 top500:country ='Greece'] "> 
<xsl:sort 
     select="top500:r-max"
     order="descending"
     data-type="number"/>
</xsl:apply-templates>
</table>
</body>
</html>
</xsl:template>

<xsl:template match="top500:site">


<xsl:variable name="Colour">
<xsl:choose>
<xsl:when test="position() mod 10 = 0" >
<xsl:value-of select="'#ffaaaa'"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'#ffffff'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<tr style="background-color: {$Colour}">
<td><xsl:value-of select="position()"/>
</td>
<td><xsl:value-of select="top500:country"/></td>
<td><xsl:value-of select="top500:rank"/></td>
<td><xsl:value-of select="top500:manufacturer"/></td>
<td><xsl:value-of select="top500:computer"/></td>
<td><xsl:value-of select="top500:r-max"/></td>
<td><a href="{top500:installation-site/top500:installation-site-address}"><xsl:value-of select="top500:installation-site/top500:installation-site-name"/></a></td>

<td><xsl:value-of select="top500:year"/></td>
<!--<td><xsl:value-of select="top500:area-of-installation"/></td>-->
<td><xsl:value-of select="top500:number-of-processors"/></td>
<td><xsl:value-of select="top500:r-peak"/></td>
<td><xsl:value-of select="top500:n-max"/></td>
<td><xsl:value-of select="top500:n-half"/></td>
</tr>


</xsl:template>



<xsl:template match="*|@*">
  <xsl:copy>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates select="node()"/>
  </xsl:copy>

</xsl:template>



</xsl:stylesheet>
