<?xml version='1.0'?>
<xsl:stylesheet
	xmlns:xsl="http://www.w3.org/TR/WD-xsl" 
	xmlns:html="http://www.w3.org/Profiles/XHTML-transitional"
>
<xsl:template>
	<xsl:apply-templates/>
	</xsl:template>

<xsl:template match="text()">
	<xsl:value-of/>
	</xsl:template>

<xsl:template match="/">
<html>
<head>
<title><xsl:value-of select="cv/name"/></title>
<base href="http://localhost/"/>

<style>
	body { margin:10px; background-color:#D0D0D0; font-family:TimesRoman; font-size:small; }
	.field_name { text-align: right; font-weight: bold; }
	.heading { text-align: left; font-weight: bold; }
</style>

</head><body>

<table cellspacing="0" cellpadding="7">
<tr>
<td align = "center"><xsl:apply-templates select="cv/logo/*"/><small><xsl:value-of select="cv/name"/></small></td>
<td>	<table cellspacing="0" cellpadding="5">
	<tr><td><big><b>The Curriculum Vitae of <xsl:value-of select="cv/name"/></b></big></td></tr>
	<tr><td><xsl:apply-templates select="cv/statement"/></td></tr>
	</table></td>
</tr>
</table>

<dl>	<dt><xsl:apply-templates select="cv/experience/heading"/></dt>
	<xsl:for-each select="cv/experience/application">
	<dd><table cellspacing="0" cellpadding="0">
	<tr><td><xsl:apply-templates/></td></tr>
	</table></dd>
	</xsl:for-each>

<p/>	<dt><xsl:apply-templates select="cv/special_skills/heading"/></dt>
	<xsl:for-each select="cv/special_skills/skill">
	<dd><table cellspacing="0" cellpadding="0">
	<tr><td><xsl:apply-templates/></td></tr>
	</table></dd>
	</xsl:for-each>

<p/>	<dt><xsl:apply-templates select="cv/general_skills/heading"/></dt>
	<xsl:for-each select="cv/general_skills/skill">
	<dd><table cellspacing="0" cellpadding="0">
	<tr><td><xsl:apply-templates/></td></tr>
	</table></dd>
	</xsl:for-each>

<p/>	<dt><xsl:apply-templates select="cv/education/heading"/></dt>
	<dd><table cellspacing="0" cellpadding="0">
	<xsl:for-each select="cv/education/*">
	<tr>
	<td nowrap="nowrap"><xsl:apply-templates select="from_to"/></td>
	<td width="10"></td>
	<td nowrap="nowrap"><xsl:apply-templates select="institution"/></td>
	<td width="10"></td>
	<td nowrap="nowrap"><xsl:apply-templates select="course"/></td>
	</tr>
	</xsl:for-each>
	</table></dd>

<p/>	<dt><xsl:apply-templates select="cv/employment/heading"/></dt>
	<dd><table cellspacing="0" cellpadding="0">
	<xsl:for-each select="cv/employment/*">
	<tr>
	<td><xsl:apply-templates select="from_to"/></td>
	<td width="10"></td>
	<td><xsl:apply-templates select="employer"/></td>
	<td width="10"></td>
	<td><xsl:apply-templates select="job_title"/></td>
	</tr>
	</xsl:for-each>
	</table></dd>
</dl>



<h2 align="center"><xsl:value-of select="cv/projects/heading"/></h2>

<dl>	<xsl:for-each select="cv/projects/*">
	<p/>	<dt><xsl:apply-templates select="heading"/></dt>
		<xsl:for-each select="project">
		<dd><xsl:apply-templates/></dd>
	</xsl:for-each>
	</xsl:for-each>
</dl>



<p><xsl:apply-templates select="cv/narrative"/></p>



<table cellpadding="0" cellspacing="0">
<tr>	<td align="right" valign="top" class="field_name">Address:</td>
	<td width="7"></td>
	<td valign="top">
	<xsl:for-each select="cv/contact_information/address/*">
		<xsl:apply-templates/>
	</xsl:for-each></td></tr>
<tr>	<td align="right" class="field_name">Phone:</td>
	<td width="7"></td>
	<td><xsl:value-of select="cv/contact_information/phone"/></td></tr>
<tr>	<td align="right" class="field_name">Email:</td>
	<td width="7"></td>
	<td><xsl:apply-templates select="cv/contact_information/email/*"/></td></tr>
<tr>	<td align="right" class="field_name">Website:</td>
	<td width="7"></td>
	<td><xsl:apply-templates select="cv/contact_information/website/*"/></td></tr>
</table>

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


  

<xsl:template match="heading">
	<span class="heading"><xsl:apply-templates/></span>
	</xsl:template>

<xsl:template match="html:img">
	<img><xsl:apply-templates select="@*"/></img>
	</xsl:template>

<xsl:template match="html:a">
	<a><xsl:apply-templates select="@*"/><xsl:value-of select="."/></a>
	</xsl:template>

<xsl:template match="@*">
	<xsl:copy><xsl:value-of/></xsl:copy>
	</xsl:template>


</xsl:stylesheet>