<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp "&#160;">
]>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:xlink="http://www.w3.org/1999/xlink"
				xmlns:dsc="http://salix.spepping.descriptions"
                version="1.0">

<xsl:import href="descriptions.xsl"/>

<xsl:output method="html" encoding="iso-8859-1"/>

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

<xsl:template match="index">
    <head>
      <title><xsl:apply-templates select="kop/naam"/></title>
    </head>
    <body bgcolor="white" link="red" vlink="#ffaaaa" alink="red">
      <xsl:apply-templates select="kop"/>
	  <xsl:apply-templates select="dist"/>
      <hr/>
      <xsl:apply-templates select="dsc:beschrijving"/>
      <hr/>
	  <xsl:apply-templates select="dist"/>
    </body>
</xsl:template>

<xsl:template match="kop">
  <table cellspacing="5" cellpadding="5">
    <tbody>
      <tr>
        <td>
          <img src="{logo/@src}" alt="{logo/@alt}"/>
        </td>
        <td>
          <font size="+5">
            <b>
              <em><xsl:apply-templates select="naam"/></em>
              <xsl:text> -- </xsl:text>
              <xsl:apply-templates select="omschrijving"/>
            </b>
          </font>
        </td>
      </tr>
    </tbody>
  </table>
</xsl:template>

<!-- dsc:beschrijving is in descriptions.xsl -->

<xsl:template match="dist">
    <p>
      <xsl:text>Download: </xsl:text>
      <xsl:variable name="naam" select="naam"/>
      <xsl:variable name="versie" select="versie"/>
      <xsl:variable name="ext" select="ext"/>
      <xsl:variable name="distfile"
                    select="concat($naam, '-', $versie, '.', $ext)"/>
      <a href="{$distfile}">
        <tt><xsl:value-of select="$distfile"/></tt>
      </a>
      <xsl:text> (</xsl:text>
      <xsl:apply-templates select="size"/>
      <xsl:text>).</xsl:text>
    </p>
</xsl:template>

<xsl:template match="bestand|parameter">
  <tt><xsl:apply-templates/></tt>
</xsl:template>

<xsl:template match="anchor">
  <a name="{@ID}"><xsl:apply-templates/></a>
</xsl:template>

</xsl:stylesheet>