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

<!--

resume.xsl - Translates resume.xml into HTML.

Revision: $Id: resume.xsl,v 1.12 2004/08/05 23:46:01 stephens Exp $
Author: ks.xml@kurtstephens.com

-->

<xsl:transform
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  version="1.0"
>

<xsl:output
  method="html"
  omit-xml-declaration="yes"
  indent="no"
/>

<xsl:strip-space elements="*"/>

<xsl:template match="resume">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
   <meta name="Author" content="{contact/name}"></meta>
   <meta name="GENERATOR" content="resume.xsl"></meta>
   <title><xsl:value-of select="contact/name"/> Resume</title>
</head>
<body text="#000000" bgcolor="#FFFFFF">

<!-- Main document table -->
<table>

<!-- Main document content -->
<tr><td>
<xsl:apply-templates/>
</td></tr>

<!-- Footer -->
<tr><td>
<hr/>
<font size="-1">
<center>Generated by <a href="http://kurtstephens.com/resume.xsl">resume.xsl</a> from <a href="http://kurtstephens.com/resume.xml">resume.xml</a>, written by Kurt Stephens.</center>
</font>
<hr/>
</td></tr>

<!-- End Main document table -->
</table>

</body>
</html>
</xsl:template>

<xsl:template match="header">
<table>
<xsl:apply-templates/>
</table>
</xsl:template>

<!-- ================================================================= -->

<xsl:template match="contact">
<tr>
<td colspan="2" align="left" valign="top"><b><u><a href="mailto:{email}"><xsl:apply-templates/></a></u></b></td>
</tr>
</xsl:template>

<xsl:template match="contact/email"/>
<xsl:template match="contact/name"><xsl:value-of select="."/></xsl:template>
<!--
<xsl:template match="contact/address"><xsl:text>, </xsl:text><xsl:value-of select="."/></xsl:template>
-->
<xsl:template match="contact/city"><xsl:text>, </xsl:text><xsl:value-of select="."/></xsl:template>
<xsl:template match="contact/state"><xsl:text>, </xsl:text><xsl:value-of select="."/></xsl:template>
<xsl:template match="contact/country"><xsl:text>, </xsl:text><xsl:value-of select="."/></xsl:template>
<!--
<xsl:template match="contact/postcode"><xsl:text>, </xsl:text><xsl:value-of select="."/></xsl:template>
<xsl:template match="contact/phone"><xsl:text>, </xsl:text><xsl:value-of select="."/></xsl:template>
-->

<!-- ================================================================= -->

<xsl:template match="header/introduction">
<tr>
<td align="left" valign="top"><b>Introduction</b></td>
<td align="left" valign="top"><xsl:apply-templates/></td>
</tr>
</xsl:template>

<xsl:template match="header/objective">
<tr>
<td align="left" valign="top"><b>Objective</b></td>
<td align="left" valign="top"><xsl:apply-templates/></td>
</tr>
</xsl:template>

<xsl:template match="header/tools">
<tr>
<td align="left" valign="top"><b>Tools</b></td>
<td align="left" valign="top"><xsl:apply-templates/></td>
</tr>
</xsl:template>

<xsl:template match="header/oss">
<tr>
<td align="left" valign="top"><b>Operating Systems</b></td>
<td align="left" valign="top"><xsl:apply-templates/></td>
</tr>
</xsl:template>

<xsl:template match="header/orgs">
<tr>
<td align="left" valign="top"><b>Organizations</b></td>
<td align="left" valign="top"><xsl:apply-templates/></td>
</tr>
</xsl:template>

<!-- ================================================================= -->

<xsl:template match="experience">
<p><b>Experience</b></p>
<table>
<xsl:apply-templates/>
</table>
</xsl:template>

<xsl:template match="experience/stint">
<tr>
<td align="left" valign="top"><b><xsl:value-of select="place"/></b>, <xsl:value-of select="city"/>, <xsl:value-of select="state"/></td>
<td align="right" valign="top"><xsl:value-of select="period"/></td>
</tr>
<xsl:apply-templates/>
<tr><td><xsl:text> </xsl:text><br/></td></tr>
</xsl:template>

<xsl:template match="experience/stint/place"/>
<xsl:template match="experience/stint/period"/>
<xsl:template match="experience/stint/city"/>
<xsl:template match="experience/stint/state"/>

<xsl:template match="experience/stint/url">
<tr><td colspan="2" align="left" valign="top">
<a href="{.}"><xsl:value-of select="."/></a>
</td></tr>
</xsl:template>

<xsl:template match="experience/stint/title">
<tr>
<td colspan="1" align="left" valign="top"><i><xsl:apply-templates/></i></td>
</tr>
</xsl:template>

<xsl:template match="experience/stint/objective">
<tr>
<td colspan="2" align="left" valign="top"><p>Objective: <xsl:apply-templates/></p></td>
</tr>
</xsl:template>

<xsl:template match="experience/stint/desc">
<tr>
<td colspan="2" align="left" valign="top"><p><xsl:apply-templates/></p></td>
</tr>
</xsl:template>

<xsl:template match="experience/stint/tools">
<tr>
<td colspan="2" align="left" valign="top"><p>Tools: <xsl:value-of select="."/>.</p></td>
</tr>
</xsl:template>

<xsl:template match="experience/stint/oss">
<tr>
<td colspan="2" align="left" valign="top"><p>OS: <xsl:value-of select="."/>.</p></td>
</tr>
</xsl:template>

<!-- ================================================================= -->

<xsl:template match="education">
<p><b>Education</b></p>
<table>
<xsl:apply-templates/>
</table>
</xsl:template>

<xsl:template match="education/stint">
<tr>
<td align="left" valign="top">
<b><xsl:value-of select="place"/></b>,
<xsl:value-of select="city"/>, 
<xsl:value-of select="state"/>
<p>
<xsl:value-of select="period"/>:
<xsl:value-of select="objective"/>
</p>
<xsl:apply-templates/>
</td>
</tr>
</xsl:template>

<xsl:template match="education/stint/place"/>
<xsl:template match="education/stint/city"/>
<xsl:template match="education/stint/state"/>
<xsl:template match="education/stint/period"/>
<xsl:template match="education/stint/objective"/>

<xsl:template match="education/stint/desc">
<p><xsl:apply-templates/></p>
</xsl:template>

<!-- ================================================================= -->

<xsl:template match="interests">
<p><b>Interests</b></p>
<table>
<tr><td>
<xsl:apply-templates/>
</td></tr>
</table>
</xsl:template>

<!-- ================================================================= -->


<xsl:template match="notes">
<p><b>Notes</b></p>
<table><tr><td align="left" valign="top">
<xsl:apply-templates/>
</td></tr></table>
</xsl:template>

<xsl:template match="note">
<xsl:apply-templates/><br/>
</xsl:template>

<!-- ================================================================= -->

<xsl:template match="note/email">
<a href="mailto:{.}"><xsl:value-of select="."/></a>
</xsl:template>

<xsl:template match="url">
<a href="{.}"><xsl:value-of select="."/></a>
</xsl:template>

<xsl:template match="see">
<br/>&#xa0;&#xa0;See: <a href="{.}"><xsl:value-of select="."/></a>.
</xsl:template>

<xsl:template match="p">
<p><xsl:apply-templates/></p>
</xsl:template>

<!-- ================================================================= -->

</xsl:transform>


