<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="ISO-8859-1"
  doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
  doctype-system="http://www.w3.org/TR/html4/loose.dtd"/>

<xsl:template match="/">
  <html lang="en">
    <head>
      <title><xsl:value-of select="schema[1]/name"/></title>
      <link rel="stylesheet" type="text/css" href="table-stylesheet.css"/>
    </head>
    <body>
      <xsl:apply-templates/>
    </body>
  </html>
</xsl:template>

<xsl:template match="schema">
  <table>
    <caption><xsl:value-of select="name"/></caption>
    <colgroup width="6.25%" span="16"></colgroup>
    <tr>
      <th>0</th>
      <th>1</th>
      <th>2</th>
      <th>3</th>
      <th>4</th>
      <th>5</th>
      <th>6</th>
      <th>7</th>
      <th>8</th>
      <th>9</th>
      <th>10</th>
      <th>11</th>
      <th>12</th>
      <th>13</th>
      <th>14</th>
      <th>15</th>
    </tr>
    <xsl:for-each select="r">
      <tr>
        <xsl:for-each select="./c">
          <td colspan="{@b}"><xsl:value-of select="."/></td>
        </xsl:for-each>
      </tr>
    </xsl:for-each>
  </table>
</xsl:template>

</xsl:stylesheet>