<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html" encoding="UTF-8" indent="yes"/>

  <xsl:template match="/awards">
    <div class="awards-block">
      <table class="data-table awards-table">
        <thead>
          <tr><th scope="col">Year</th><th scope="col">Award</th><th scope="col">Issuer</th><th scope="col">Details</th></tr>
        </thead>
        <tbody>
          <xsl:for-each select="award">
            <xsl:sort select="year" data-type="number" order="descending"/>
            <tr>
              <td class="a-year"><xsl:value-of select="year"/></td>
              <td class="a-title"><xsl:value-of select="title"/></td>
              <td class="a-issuer"><xsl:value-of select="issuer"/></td>
              <td class="a-desc"><xsl:value-of select="description"/></td>
            </tr>
          </xsl:for-each>
        </tbody>
      </table>
    </div>
  </xsl:template>
</xsl:stylesheet>
