<?xml version="1.0" encoding="ISO-8859-1" ?>

<!--
  A template for the entire website, including headers, footers, stylesheets, scripts, etc.
-->
<xsl:stylesheet version="1.0"
		xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:param name="rtable" />
  <xsl:param name="resume" />
  <xsl:param name="base" />

  <xsl:output
	      method="xhtml"
	      version="1.0"
	      encoding="iso-8859-1"
	      indent="yes"
	      standalone="yes"
	      omit-xml-declaration="no"
	      doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
	      doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
	      />

  <xsl:template match="tr[2 &lt;= position() and position() &lt;= 9]">
    <xsl:variable name="position" select="position()" />
    <tr>
      <th>[</th>
      <xsl:apply-templates select="td[position() = 1]" />
      <xsl:apply-templates select="td[position() = 3]" />
      <xsl:apply-templates select="td[position() != 1 and position() != 3]" />
      <xsl:apply-templates select="../tr[position() = $position + 8]/td[position() != 1 and position() != 3]" />
      <th>]</th>
    </tr>
  </xsl:template>

  <xsl:template match="tr[10 &lt;= position()]" />

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

