<?xml version='1.0' encoding = 'ISO-8859-1' ?>
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
  <xsl:output 
  method         = "xml"
  version        = "1.0"
  omit-xml-declaration = "no" 
  standalone     = "no"
  doctype-public = "-//W3C//DTD XHTML 1.0 Transitional//EN"
  doctype-system = "file:../lib/xhtml1-transitional.dtd"
  encoding       = "ISO-8859-1" 
  indent         = "yes"/>
  <xsl:template match="*"></xsl:template>
  <xsl:template match="/">
    <html>
    <head>
    <title>Dell Computers</title>
    <link rel="stylesheet" href="dellStyle.css"/>
    </head>
    <body>
    <xsl:apply-templates select="dell"/>
    </body>
    </html>
  </xsl:template>
  <xsl:template match="dell">
    <xsl:apply-templates select="desktops"/><p></p>
    <xsl:apply-templates select="servers"/><p></p>
    <xsl:apply-templates select="noteBooks"/></xsl:template>
  <xsl:template match="desktops">
    <div class="desktops">DESKTOPS</div>
    <table>
      <tr>
        <td class="desktopleftbackground"></td>
        <td class="rowheadercolumn desktopbackground"><table class="rowheadertable">
            <tr>
              <td height="163"></td>
            </tr>
            <tr>
              <td height="35"></td>
            </tr>
            <tr>
              <td height="74"></td>
            </tr>
            <tr>
              <td height="26"></td>
            </tr>
            <tr>
              <td height="83"></td>
            </tr>
            <tr>
              <td height="24"></td>
            </tr>
            <tr>
              <th class="desktophighlight" height="58" valign="top">Processor</th>
            </tr>
            <tr>
              <th height="42" valign="top">Operating System</th>
            </tr>
            <tr>
              <th class="desktophighlight" height="42" valign="top">Memory</th>
            </tr>
            <tr>
              <th height="42" valign="top">Hard Drive</th>
            </tr>
            <tr>
              <th class="desktophighlight" height="42" valign="top">Monitor</th>
            </tr>
            <tr>
              <th height="42" valign="top">Graphics Card</th>
            </tr>
            <tr>
              <th class="desktophighlight" height="26" valign="top">Optical Drive</th>
            </tr>
            <tr>
              <th height="42" valign="top">Service</th>
            </tr>
            <tr>
              <th class="desktophighlight" height="26" valign="top">Software</th>
            </tr>
            <tr>
              <td height="12"></td>
            </tr>
            <tr>
              <td height="182"></td>
            </tr>
          </table></td>
        <xsl:apply-templates select="desktop"/></tr>
    </table>
  </xsl:template>
  <xsl:template match="servers">
    <div class="servers">SERVERS</div>
    <table>
      <tr>
        <td class="serverleftbackground"></td>
        <td class="rowheadercolumn serverbackground"><table class="rowheadertable">
            <tr>
              <td height="163"></td>
            </tr>
            <tr>
              <td height="35"></td>
            </tr>
            <tr>
              <td height="58"></td>
            </tr>
            <tr>
              <td height="26"></td>
            </tr>
            <tr>
              <td height="73"></td>
            </tr>
            <tr>
              <td height="24"></td>
            </tr>
            <tr>
              <th class="serverhighlight" height="58" valign="top">Processor</th>
            </tr>
            <tr>
              <th height="42" valign="top">Processor Support</th>
            </tr>
            <tr>
              <th class="serverhighlight" height="42" valign="top">Memory</th>
            </tr>
            <tr>
              <th height="42" valign="top">Hard Drive</th>
            </tr>
            <tr>
              <th class="serverhighlight" height="42" valign="top">Raid Controller</th>
            </tr>
            <tr>
              <th height="26" valign="top">Network Card</th>
            </tr>
            <tr>
              <th class="serverhighlight" height="42" valign="top">Service</th>
            </tr>
            <tr>
              <td height="12"></td>
            </tr>
            <tr>
              <td height="196"></td>
            </tr>
          </table></td>
        <xsl:apply-templates select="server"/></tr>
    </table>
  </xsl:template>
  <xsl:template match="noteBooks">
    <div class="noteBooks">NOTEBOOKS</div>
    <table>
      <tr>
        <td class="noteBookleftbackground"></td>
        <td class="rowheadercolumn noteBookbackground"><table class="rowheadertable">
            <tr>
              <td height="163"></td>
            </tr>
            <tr>
              <td height="35"></td>
            </tr>
            <tr>
              <td height="74"></td>
            </tr>
            <tr>
              <td height="26"></td>
            </tr>
            <tr>
              <td height="73"></td>
            </tr>
            <tr>
              <td height="24"></td>
            </tr>
            <tr class="noteBookhighlight">
              <th height="106" valign="top">Processor</th>
            </tr>
            <tr>
              <th height="42" valign="top">Operating System</th>
            </tr>
            <tr class="noteBookhighlight">
              <th height="42" valign="top">Memory</th>
            </tr>
            <tr>
              <th height="26" valign="top">Hard Drive</th>
            </tr>
            <tr class="noteBookhighlight">
              <th height="42" valign="top">Monitor</th>
            </tr>
            <tr>
              <th height="42" valign="top">Graphics Card</th>
            </tr>
            <tr class="noteBookhighlight">
              <th height="42" valign="top">Optical Drive</th>
            </tr>
            <tr>
              <th height="42" valign="top">Service</th>
            </tr>
            <tr class="noteBookhighlight">
              <th height="26" valign="top">Software</th>
            </tr>
            <tr>
              <td height="12"></td>
            </tr>
            <tr>
              <td height="181"></td>
            </tr>
          </table></td>
        <xsl:apply-templates select="noteBook"/></tr>
    </table>
  </xsl:template>
  <xsl:template match="desktop">
    <xsl:if test="position() != last()">
      <td class="column desktopbackground"><table>
          <tr>
            <td height="163"><div align="center"><img alt="{concat('an image of a Dell ',desktopName,' ',desktopModelNumber, ' desktop PC')}" src="{translate(concat('images/',desktopName,desktopModelNumber,'.png'),' ','')}" /></div></td>
          </tr>
          <tr>
            <td class="desktopheader" height="35">Dell<xsl:value-of select="desktopName"/><xsl:text></xsl:text><xsl:value-of select="desktopModelNumber"/></td>
          </tr>
          <tr>
            <td class="borderleft" height="74" valign="top"><xsl:value-of select="description"/></td>
          </tr>
          <tr>
            <xsl:apply-templates select="memory" mode="header"/></tr>
          <tr>
            <td class="borderleft" height="83"><table class="normal">
                <xsl:apply-templates select="price"/></table></td>
          </tr>
          <tr>
            <td class="code borderleft" height="24">E-VALUE CODE:<xsl:value-of select="code"/></td>
          </tr>
          <tr>
            <td class="desktophighlight borderleft" height="58" valign="top"><xsl:apply-templates select="processor"/></td>
          </tr>
          <tr>
            <td class="borderleft" height="42" valign="top"><xsl:value-of select="os"/></td>
          </tr>
          <tr class="desktophighlight">
            <xsl:apply-templates select="memory" mode="main"/></tr>
          <tr>
            <td class="borderleft" height="42" valign="top"><xsl:apply-templates select="hardDrive"/></td>
          </tr>
          <tr>
            <td class="desktophighlight borderleft" height="42" valign="top"><xsl:apply-templates select="monitor"/></td>
          </tr>
          <tr>
            <td class="borderleft" height="42" valign="top"><xsl:apply-templates select="graphics"/></td>
          </tr>
          <tr>
            <td class="desktophighlight borderleft" height="26" valign="top"><xsl:apply-templates select="opticalDrive"/></td>
          </tr>
          <tr>
            <td class="borderleft" height="42" valign="top"><xsl:value-of select="service"/></td>
          </tr>
          <tr>
            <td class="desktophighlight borderleft" height="26" valign="top"><xsl:value-of select="software"/></td>
          </tr>
          <tr>
            <td class="borderleft" height="12px"></td>
          </tr>
          <tr>
            <td class="borderleft borderbottom" height="182"><table class="upgrades">
                <tr class="upgradesheader desktopcolour">
                  <td height="24" colspan="2">RECOMMENDED UPGRADES</td>
                </tr>
                <tr class="upgradepricelittle">
                  <td height="24" colspan="2">Prices Incl. VAT</td>
                </tr>
                <xsl:apply-templates select="upgrades/upgrade"/></table></td>
          </tr>
        </table></td>
    </xsl:if>
    <xsl:if test="position() = last()">
      <td class="column desktopbackground"><table>
          <tr>
            <td height="163"><div align="center"><img alt="{concat('an image of a Dell ',desktopName,' ',desktopModelNumber, ' desktop PC')}" src="{translate(concat('images/',desktopName,desktopModelNumber,'.png'),' ','')}" /></div></td>
          </tr>
          <tr>
            <td class="desktopheader" height="35">Dell<xsl:value-of select="desktopName"/><xsl:text></xsl:text><xsl:value-of select="desktopModelNumber"/></td>
          </tr>
          <tr>
            <td class="borderleft" height="74" valign="top"><xsl:value-of select="description"/></td>
          </tr>
          <tr>
            <xsl:apply-templates select="memory" mode="header"/></tr>
          <tr>
            <td class="borderleft" height="83"><table class="normal">
                <xsl:apply-templates select="price"/></table></td>
          </tr>
          <tr>
            <td class="code borderleft" height="24">E-VALUE CODE:<xsl:value-of select="code"/></td>
          </tr>
          <tr>
            <td class="desktophighlight borderleft" height="58" valign="top"><xsl:apply-templates select="processor"/></td>
          </tr>
          <tr>
            <td class="borderleft" height="42" valign="top"><xsl:value-of select="os"/></td>
          </tr>
          <tr class="desktophighlight">
            <xsl:apply-templates select="memory" mode="main"/></tr>
          <tr>
            <td class="borderleft" height="42" valign="top"><xsl:apply-templates select="hardDrive"/></td>
          </tr>
          <tr>
            <td class="desktophighlight borderleft" height="42" valign="top"><xsl:apply-templates select="monitor"/></td>
          </tr>
          <tr>
            <td class="borderleft" height="42" valign="top"><xsl:apply-templates select="graphics"/></td>
          </tr>
          <tr>
            <td class="desktophighlight borderleft" height="26" valign="top"><xsl:apply-templates select="opticalDrive"/></td>
          </tr>
          <tr>
            <td class="borderleft" height="42" valign="top"><xsl:value-of select="service"/></td>
          </tr>
          <tr>
            <td class="desktophighlight borderleft" height="26" valign="top"><xsl:value-of select="software"/></td>
          </tr>
          <tr>
            <td class="borderleft" height="12px"></td>
          </tr>
          <tr>
            <td class="borderleft borderbottom" height="182"><table class="upgrades">
                <tr class="upgradesheader desktopcolour">
                  <td height="24" colspan="2">RECOMMENDED UPGRADES</td>
                </tr>
                <tr class="upgradepricelittle">
                  <td height="24" colspan="2">Prices Incl. VAT</td>
                </tr>
                <xsl:apply-templates select="upgrades/upgrade"/></table></td>
          </tr>
        </table></td>
      <td class="desktoprightbackground"></td>
    </xsl:if>
  </xsl:template>
  <xsl:template match="server">
    <xsl:if test="position() != last()">
      <td class="column serverbackground"><table>
          <tr>
            <td height="163"><div align="center"><img alt="{concat('an image of a Dell ',serverName,' ',serverModelNumber, ' server')}" src="{translate(concat('images/',serverName,serverModelNumber,'.png'),' ','')}" /></div></td>
          </tr>
          <tr>
            <td height="35" class="serverheader">Dell<xsl:value-of select="serverName"/><xsl:text></xsl:text><xsl:value-of select="serverModelNumber"/></td>
          </tr>
          <tr>
            <td height="58" class="borderleft"><xsl:value-of select="description"/></td>
          </tr>
          <tr>
            <xsl:apply-templates select="memory" mode="header"/></tr>
          <tr>
            <td height="73" class="borderleft"><table>
                <xsl:apply-templates select="price"/></table></td>
          </tr>
          <tr>
            <td height="24" class="code borderleft">E-VALUE CODE:<xsl:value-of select="code"/></td>
          </tr>
          <tr>
            <td height="58" class="serverhighlight borderleft"><xsl:apply-templates select="processor"/></td>
          </tr>
          <tr>
            <td height="42" class="borderleft"><xsl:value-of select="support"/></td>
          </tr>
          <tr class="serverhighlight">
            <xsl:apply-templates select="memory" mode="main"/></tr>
          <tr>
            <td height="42" class="borderleft"><xsl:apply-templates select="hardDrive"/></td>
          </tr>
          <tr>
            <td height="42" class="serverhighlight borderleft"><xsl:value-of select="raidController"/></td>
          </tr>
          <tr>
            <td height="26" class="borderleft"><xsl:value-of select="networkCard"/></td>
          </tr>
          <tr>
            <td height="42" class="serverhighlight borderleft"><xsl:value-of select="service"/></td>
          </tr>
          <tr>
            <td class="borderleft" height="12px"></td>
          </tr>
          <tr>
            <td height="196" class="borderleft borderbottom"><table class="upgrades">
                <tr class="upgradesheader servercolour ">
                  <td colspan="2">RECOMMENDED UPGRADES</td>
                </tr>
                <tr class="upgradepricelittle">
                  <td colspan="2">Prices Incl. VAT</td>
                </tr>
                <xsl:apply-templates select="upgrades/upgrade"/></table></td>
          </tr>
        </table></td>
    </xsl:if>
    <xsl:if test="position() = last()">
      <td class="column serverbackground"><table>
          <tr>
            <td height="163"><div align="center"><img alt="{concat('an image of a Dell ',serverName,' ',serverModelNumber, ' server')}" src="{translate(concat('images/',serverName,serverModelNumber,'.png'),' ','')}" /></div></td>
          </tr>
          <tr>
            <td height="35" class="serverheader">Dell<xsl:value-of select="serverName"/><xsl:text></xsl:text><xsl:value-of select="serverModelNumber"/></td>
          </tr>
          <tr>
            <td height="58" class="borderleft" valign="top"><xsl:value-of select="description"/></td>
          </tr>
          <tr>
            <xsl:apply-templates select="memory" mode="header"/></tr>
          <tr>
            <td height="73" class="borderleft" valign="top"><table>
                <xsl:apply-templates select="price"/></table></td>
          </tr>
          <tr>
            <td height="24" class="code borderleft" valign="top">E-VALUE CODE:<xsl:value-of select="code"/></td>
          </tr>
          <tr>
            <td height="58" class="serverhighlight borderleft" valign="top"><xsl:apply-templates select="processor"/></td>
          </tr>
          <tr>
            <td height="42" class="borderleft" valign="top"><xsl:value-of select="support"/></td>
          </tr>
          <tr class="serverhighlight">
            <xsl:apply-templates select="memory" mode="main"/></tr>
          <tr>
            <td height="42" class="borderleft" valign="top"><xsl:apply-templates select="hardDrive"/></td>
          </tr>
          <tr>
            <td height="42" class="serverhighlight borderleft" valign="top"><xsl:value-of select="raidController"/></td>
          </tr>
          <tr>
            <td height="26" class="borderleft" valign="top"><xsl:value-of select="networkCard"/></td>
          </tr>
          <tr>
            <td height="42" class="serverhighlight borderleft" valign="top"><xsl:value-of select="service"/></td>
          </tr>
          <tr>
            <td class="borderleft" height="12px"></td>
          </tr>
          <tr>
            <td height="196" class="borderleft borderbottom"><table class="upgrades">
                <tr class="upgradesheader servercolour ">
                  <td colspan="2">RECOMMENDED UPGRADES</td>
                </tr>
                <tr class="upgradepricelittle">
                  <td colspan="2">Prices Incl. VAT</td>
                </tr>
                <xsl:apply-templates select="upgrades/upgrade"/></table></td>
          </tr>
        </table></td>
      <td class="serverrightbackground"></td>
    </xsl:if>
  </xsl:template>
  <xsl:template match="noteBook">
    <xsl:if test="position() != last()">
      <td class="column noteBookbackground"><table>
          <tr>
            <td height="163"><div align="center"><img alt="{concat('an image of a Dell ',noteBookName,' ',noteBookModelNumber, ' notebook')}" src="{concat('images/',noteBookName,noteBookModelNumber,'.png')}" /></div></td>
          </tr>
          <tr>
            <td class="noteBookheader" height="35">Dell<xsl:value-of select="noteBookName"/><xsl:text></xsl:text><xsl:value-of select="noteBookModelNumber"/></td>
          </tr>
          <tr>
            <td class="borderleft" height="74" valign="top"><xsl:value-of select="description"/></td>
          </tr>
          <tr>
            <xsl:apply-templates select="memory" mode="header"/></tr>
          <tr>
            <td class="borderleft" height="73" valign="top"><table>
                <xsl:apply-templates select="price"/></table></td>
          </tr>
          <tr>
            <td class="code borderleft" height="24" valign="top">E-VALUE CODE:<xsl:value-of select="code"/></td>
          </tr>
          <tr>
            <td class="noteBookhighlight borderleft" height="106" valign="top"><xsl:apply-templates select="processor"/></td>
          </tr>
          <tr>
            <td class="borderleft" height="42" valign="top"><xsl:value-of select="os"/></td>
          </tr>
          <tr class="noteBookhighlight">
            <xsl:apply-templates select="memory" mode="main"/></tr>
          <tr>
            <td class="borderleft" height="26" valign="top"><xsl:apply-templates select="hardDrive"/></td>
          </tr>
          <tr>
            <td class="noteBookhighlight borderleft" height="42" valign="top"><xsl:apply-templates select="monitor"/></td>
          </tr>
          <tr>
            <td class="borderleft" height="42" valign="top"><xsl:apply-templates select="graphics"/></td>
          </tr>
          <tr>
            <td class="noteBookhighlight borderleft" height="42" valign="top"><xsl:apply-templates select="opticalDrive"/></td>
          </tr>
          <tr>
            <td class="borderleft" height="42" valign="top"><xsl:value-of select="service"/></td>
          </tr>
          <tr>
            <td class="noteBookhighlight borderleft" height="26" valign="top"><xsl:value-of select="software"/></td>
          </tr>
          <tr>
            <td class="borderleft" height="12px"></td>
          </tr>
          <tr>
            <td class="borderleft borderbottom" height="181"><table class="upgrades">
                <tr class="noteBookcolour upgradesheader">
                  <td colspan="2">RECOMMENDED UPGRADES</td>
                </tr>
                <tr class="upgradepricelittle">
                  <td colspan="2">Prices Incl. VAT</td>
                </tr>
                <xsl:apply-templates select="upgrades/upgrade"/></table></td>
          </tr>
        </table></td>
    </xsl:if>
    <xsl:if test="position() = last()">
      <td class="column noteBookbackground"><table>
          <tr>
            <td height="163"><div align="center"><img alt="{concat('an image of a Dell ',noteBookName,' ',noteBookModelNumber, ' notebook')}" src="{concat('images/',noteBookName,noteBookModelNumber,'.png')}" /></div></td>
          </tr>
          <tr>
            <td class="noteBookheader" height="35">Dell<xsl:value-of select="noteBookName"/><xsl:text></xsl:text><xsl:value-of select="noteBookModelNumber"/></td>
          </tr>
          <tr>
            <td class="borderleft" height="74" valign="top"><xsl:value-of select="description"/></td>
          </tr>
          <tr>
            <xsl:apply-templates select="memory" mode="header"/></tr>
          <tr>
            <td class="borderleft" height="73" valign="top"><table>
                <xsl:apply-templates select="price"/></table></td>
          </tr>
          <tr>
            <td class="code borderleft" height="24" valign="top">E-VALUE CODE:<xsl:value-of select="code"/></td>
          </tr>
          <tr>
            <td class="noteBookhighlight borderleft" height="106" valign="top"><xsl:apply-templates select="processor"/></td>
          </tr>
          <tr>
            <td class="borderleft" height="42" valign="top"><xsl:value-of select="os"/></td>
          </tr>
          <tr class="noteBookhighlight">
            <xsl:apply-templates select="memory" mode="main"/></tr>
          <tr>
            <td class="borderleft" height="26" valign="top"><xsl:apply-templates select="hardDrive"/></td>
          </tr>
          <tr>
            <td class="noteBookhighlight borderleft" height="42" valign="top"><xsl:apply-templates select="monitor"/></td>
          </tr>
          <tr>
            <td class="borderleft" height="42" valign="top"><xsl:apply-templates select="graphics"/></td>
          </tr>
          <tr>
            <td class="noteBookhighlight borderleft" height="42" valign="top"><xsl:apply-templates select="opticalDrive"/></td>
          </tr>
          <tr>
            <td class="borderleft" height="42" valign="top"><xsl:value-of select="service"/></td>
          </tr>
          <tr>
            <td class="noteBookhighlight borderleft" height="26" valign="top"><xsl:value-of select="software"/></td>
          </tr>
          <tr>
            <td class="borderleft" height="12px"></td>
          </tr>
          <tr>
            <td class="borderleft borderbottom" height="181"><table class="upgrades">
                <tr class="noteBookcolour upgradesheader">
                  <td colspan="2">RECOMMENDED UPGRADES</td>
                </tr>
                <tr class="upgradepricelittle">
                  <td colspan="2">Prices Incl. VAT</td>
                </tr>
                <xsl:apply-templates select="upgrades/upgrade"/></table></td>
          </tr>
        </table></td>
      <td class="noteBookrightbackground"></td>
    </xsl:if>
  </xsl:template>
  <xsl:template match="memory" mode="header">
    <td class="wasnow borderleft" height="26">WAS<xsl:value-of select="was"/>MB,<span class="wasnowgreen">NOW<xsl:value-of select="now"/>MB</span></td>
  </xsl:template>
  <xsl:template match="memory" mode="main">
    <td class="borderleft" height="42" valign="top"><xsl:value-of select="now"/>MB<xsl:value-of select="memoryType"/>(Was<xsl:value-of select="was"/>MB)</td>
  </xsl:template>
  <xsl:template match="price">
    <tr class="price">
      <td>£<xsl:value-of select="excluding"/></td>
      <td>£<xsl:value-of select="including"/></td>
    </tr>
    <tr class="pricelittle">
      <td>Excl. Del &amp; VAT</td>
      <td>Incl. Del &amp; VAT</td>
    </tr>
  </xsl:template>
  <xsl:template match="processor">
    <xsl:apply-templates select="mobile"/><xsl:value-of select="manufacturer"/><xsl:text></xsl:text><xsl:value-of select="model"/>Processor<xsl:value-of select="modelNumber"/>
    <xsl:apply-templates select="modelFeature"/>(<xsl:value-of select="ghz"/>GHz,<xsl:value-of select="cache"/>cache,<xsl:value-of select="fsb"/>MHz FSB
    <xsl:apply-templates select="wireless"/>)
  </xsl:template>
  <xsl:template match="mobile">
Intel Centrino Mobile Technology with
  </xsl:template>
  <xsl:template match="modelFeature">
with    <xsl:value-of select="."/>
  </xsl:template>
  <xsl:template match="wireless">
    &amp;<xsl:value-of select="manufacturer"/><xsl:text></xsl:text><xsl:value-of select="wirelessModel"/><xsl:text></xsl:text><xsl:value-of select="wirelessModelNumber"/>(<xsl:value-of select="standard"/>
  </xsl:template>
  <xsl:template match="hardDrive">
    <xsl:value-of select="capacity"/>GB<xsl:value-of select="attatchment"/><xsl:value-of select="diskArray"/>Hard Drive
    <xsl:apply-templates select="rpm"/></xsl:template>
  <xsl:template match="rpm">
(    <xsl:value-of select="."/>RPM)
  </xsl:template>
  <xsl:template match="monitor">
    <xsl:value-of select="diagonal"/>"<xsl:value-of select="monitorType"/>
    <xsl:apply-templates select="resolution"/></xsl:template>
  <xsl:template match="resolution">
(    <xsl:value-of select="width"/>x<xsl:value-of select="height"/>) Screen
  </xsl:template>
  <xsl:template match="graphics">
    <xsl:apply-templates select="integrated"/><xsl:value-of select="manufacturer"/><xsl:text></xsl:text><xsl:value-of select="graphicsModel"/><xsl:value-of select="graphicsModelNumber"/>
    <xsl:apply-templates select="shared"/><xsl:apply-templates select="size"/></xsl:template>
  <xsl:template match="integrated">
Integrated
  </xsl:template>
  <xsl:template match="shared">
shared graphics memory up to
  </xsl:template>
  <xsl:template match="size">
    <xsl:value-of select="."/>MB
  </xsl:template>
  <xsl:template match="opticalDrive">
    <xsl:value-of select="speed"/>x<xsl:value-of select="type"/>
  </xsl:template>
  <xsl:template match="upgrade">
    <xsl:if test="position() != last()">
      <tr>
        <td class="upgrade" height="40" valign="top"><xsl:value-of select="description"/></td>
        <td class="upgradeprice" valign="top">£<xsl:value-of select="upgradePrice"/></td>
      </tr>
    </xsl:if>
    <xsl:if test="position() = last()">
      <tr class="normal">
        <td class="upgrade" height="40" valign="top"><xsl:value-of select="description"/></td>
        <td class="upgradeprice" valign="top">£<xsl:value-of select="upgradePrice"/></td>
      </tr>
    </xsl:if>
  </xsl:template>
</xsl:stylesheet>
