<?xml version="1.0"?>
<!--
 **************************************************************
 * Software is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied.
 *
 * The Initial Developer of this code is SoftCorporation LLC.
 * Usage of this code allowed only with reference to
 * SoftCorporation LLC. including the link to SoftCorporation LLC.
 * web site: http://www.softcorporation.com
 * Copyright (C) 2000 SoftCorporation LLC. All Rights Reserved.
 **************************************************************
<xsl:transform xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:transform xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  <!--======================================================-->
  <!-- Root Element Template                                -->
  <!-- This template specifies what creates the root        -->
  <!--  element of the result tree.                         -->
  <!--======================================================-->
  <xsl:template match="/">
    <xsl:apply-templates select="resume"/>
  </xsl:template>

  <!--======================================================-->
  <!-- <resume> template                                    -->
  <!-- This template creates the entire HTML document,      -->
  <!-- including the <head> and <body> sections.            -->
  <!--======================================================-->
  <xsl:template match="resume">
    <html>

  <!--======================================================-->
  <!-- The title of the HTML document with author's name    -->
  <!--======================================================-->
      <head>
        <title>
          Resume of <xsl:value-of select="author/name-first"/>
          <xsl:apply-templates select="author/name-middle"/>
          <xsl:value-of select="author/name-last"/>
        </title>
      </head>
      <body>
        <table border="0" width="600">
          <tr>
            <td width="250"/>
            <td width="350">
              <h1><font color="blue">RESUME</font></h1><p/>

  <!--======================================================-->
  <!-- Create address, phone, etc.                          -->
  <!--======================================================-->
              <xsl:value-of select="author/name-first"/>
              <xsl:apply-templates select="author/name-middle"/>
              <xsl:value-of select="author/name-last"/><br/>
              <xsl:value-of select="author/address/street"/><br/>
              <xsl:value-of select="author/address/town"/>,
              <xsl:value-of select="author/address/state"/>
              <xsl:value-of select="author/address/zip"/>
              <p/>
              Phone:
              <xsl:value-of select="author/phone"/><br/>
              <xsl:apply-templates select="author/e-mail"/><br/>
              <xsl:apply-templates select="author/web"/><br/>
            </td>
          </tr>
        </table>

  <!--======================================================-->
  <!-- Create professional summary                          -->
  <!--======================================================-->
        <table border="0" width="600">
          <tr>
            <td width="600"><h3>Professional Summary:</h3></td>
          </tr>
        </table>
        <table border="0" width="600">
          <tr>
            <td width="100"/>
            <td width="500">
              <xsl:value-of select="prof-summary"/>
            </td>
          </tr>
        </table>
        <br/>

  <!--======================================================-->
  <!-- Create technical profile                             -->
  <!--======================================================-->
        <table border="0" width="600">
          <tr>
            <td width="600"><h3>Technical profile:</h3></td>
          </tr>
        </table>
        <table border="0" width="600">
          <xsl:apply-templates select="tech-profile/os"/>
          <xsl:apply-templates select="tech-profile/languages"/>
          <xsl:apply-templates select="tech-profile/gui"/>
          <xsl:apply-templates select="tech-profile/databases"/>
          <xsl:apply-templates select="tech-profile/hardware"/>
          <xsl:apply-templates select="tech-profile/software"/>
          <xsl:apply-templates select="tech-profile/technology"/>
        </table>
        <br/>

  <!--======================================================-->
  <!-- Create job experience                                -->
  <!--======================================================-->
        <table border="0" width="600">
          <tr>
            <td width="600"><h3>Job experience:</h3></td>
          </tr>
        </table>
        <table border="0" width="600">
          <xsl:apply-templates select="job-experience/job"/>
        </table>

  <!--======================================================-->
  <!-- Create education                                     -->
  <!--======================================================-->
        <table border="0" width="600">
          <tr>
            <td width="600"><h3>Education:</h3></td>
          </tr>
        </table>
        <table border="0" width="600">
          <xsl:apply-templates select="education/school"/>
        </table>

  <!--======================================================-->
  <!-- Create additional information                        -->
  <!--======================================================-->
        <table border="0" width="600">
          <tr>
            <td><h3>Additional information:</h3></td>
          </tr>
        </table>
        <table border="0" width="600">
          <tr>
            <td width="100"/>
            <td width="500">
              <xsl:value-of select="add-info"/>
            </td>
          </tr>
        </table>
        <br/>

  <!--======================================================-->
  <!-- The END of HTML file                                 -->
  <!--======================================================-->
      </body>
    </html>
  </xsl:template>

  <!--======================================================-->
  <!-- <author/name-middle> template                        -->
  <!-- This template prints the optional middle name        -->
  <!--======================================================-->
  <xsl:template match="author/name-middle">
    <xsl:value-of select="."/>.
  </xsl:template>

  <!--======================================================-->
  <!-- <author/e-mail> template                             -->
  <!-- This template prints the optional email              -->
  <!--======================================================-->
  <xsl:template match="author/e-mail">
    E-mail:
    <A>
      <xsl:attribute name="HREF">mailto:<xsl:value-of select="."/></xsl:attribute>
      <xsl:value-of select="."/>
    </A>
  </xsl:template>

  <!--======================================================-->
  <!-- <author/web> template                                -->
  <!-- This template prints the optional web site           -->
  <!--======================================================-->
  <xsl:template match="author/web">
    Web:
    <A>
      <xsl:attribute name="HREF">http://<xsl:value-of select="."/></xsl:attribute>
      <xsl:value-of select="."/>
    </A>
  </xsl:template>

  <!--======================================================-->
  <!-- <tech-profile> templates                             -->
  <!--======================================================-->
  <xsl:template match="tech-profile/os">
    <tr>
      <td width="100" align="right">OS -</td>
      <td width="500"><xsl:value-of select="."/></td>
    </tr>
  </xsl:template>

  <xsl:template match="tech-profile/languages">
    <tr>
      <td width="100" align="right">Languages -</td>
      <td width="500"><xsl:value-of select="."/></td>
    </tr>
  </xsl:template>

  <xsl:template match="tech-profile/gui">
    <tr>
      <td width="100" align="right">GUI -</td>
      <td width="500"><xsl:value-of select="."/></td>
    </tr>
  </xsl:template>

  <xsl:template match="tech-profile/databases">
    <tr>
      <td width="100" align="right">Databases -</td>
      <td width="500"><xsl:value-of select="."/></td>
    </tr>
  </xsl:template>

  <xsl:template match="tech-profile/hardware">
    <tr>
      <td width="100" align="right">Hardware -</td>
      <td width="500"><xsl:value-of select="."/></td>
    </tr>
  </xsl:template>

  <xsl:template match="tech-profile/software">
    <tr>
      <td width="100" align="right">Software -</td>
      <td width="500"><xsl:value-of select="."/></td>
    </tr>
  </xsl:template>

  <xsl:template match="tech-profile/technology">
    <tr>
      <td width="100" align="right">Technology -</td>
      <td width="500"><xsl:value-of select="."/></td>
    </tr>
  </xsl:template>

  <!--======================================================-->
  <!-- <job-experience> template                            -->
  <!--======================================================-->
  <xsl:template match="job-experience/job">
    <tr>
      <td width="10"/>
      <td width="90">
        <xsl:value-of select="date-from"/> -<br/>
        <xsl:value-of select="date-to"/><p/>
      </td>
      <td width="500">
        <b><xsl:value-of select="company"/></b>
        <xsl:value-of select="location"/><br/><br/>
        <xsl:value-of select="title"/>.<br/>
        <xsl:value-of select="projects"/>
        <p/>
     </td>
    </tr>
  </xsl:template>

  <!--======================================================-->
  <!-- <education> template                                 -->
  <!--======================================================-->
  <xsl:template match="education/school">
    <tr>
      <td width="10"/>
      <td width="90">
        <xsl:value-of select="date-from"/> -<br/>
        <xsl:value-of select="date-to"/><p/>
      </td>
      <td width="500">
        <xsl:value-of select="study"/>.<br/>
        <xsl:value-of select="school-name"/>.
        <xsl:value-of select="location"/><br/>
        <p/>
      </td>
    </tr>
  </xsl:template>

</xsl:stylesheet>

