<?xml version="1.0"?>
<!-- COPYRIGHT 1997-2003 PolyGlot, Inc. -->

<!-- this stylesheet decl is for XALAN (Java) 2.2.0 -->
   <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:output method = "html" />

<xsl:param name="Keywords"></xsl:param>

    <xsl:template match="/">
       <html>
       <head></head>
       <body bgcolor="white">

<!-- xsl:for-each select="//person" -->
       <xsl:apply-templates select="//person"/><br/>(generated by my server from XML data using XSL)<br/><br/>
<!-- /xsl:for-each -->

<table title="Alphabetical CLIENT Summary">
<th bgcolor="orange">Alphabetical CLIENT Summary</th>
<xsl:for-each select="//client">
  <xsl:sort select="@name" />
<!-- BUG: Netscape 6.2 doesnt sort the same as IE5.0 !!! -->
<!-- BUG: Netscape 6.2 doesnt sort when translate() is used !!! -->
  <!-- xsl:sort select="translate(@name,'f','F')"/ -->
<tr><td>
<!-- simple version
<b><xsl:value-of select="@name"/></b> : <xsl:value-of select="@location"/></td>
    <td><FONT SIZE="-1"><b><i><xsl:value-of select="../short_desc"/></i></b></FONT><br/></td>
-->
<xsl:choose>
		<xsl:when test="string-length(@www)&gt;'0'">
<a href="{@www}" target="_blank"><b><xsl:value-of select="@name"/></b></a>
		</xsl:when>
		<xsl:otherwise>
<b><xsl:value-of select="@name"/></b>
		</xsl:otherwise>
		</xsl:choose>
 : <xsl:value-of select="@location"/></td>
    <td><FONT SIZE="-1"><b><i>
	 <a href="#{generate-id(..)}"><xsl:value-of select="../short_desc"/></a>
	 </i></b></FONT><br/></td>
</tr>
</xsl:for-each>
</table>
<p/>
       <!-- div style="border: solid 3px red; padding: 10px;" -->
<table title="Chronological PROJECT Details">
<th bgcolor="red">Chronological PROJECT Details</th>
<xsl:for-each select="//person">
         <xsl:apply-templates select="project"/>
     <!-- xsl:apply-templates select="project[description!='']"/ -->
</xsl:for-each>
</table>
       <!-- /div -->
       </body>
       </html>
    </xsl:template>


    <xsl:template match="*">
         <xsl:apply-templates/>
    </xsl:template>


    <xsl:template match="person">
        Resume of <b><xsl:value-of select="@name"/></b> :
        <xsl:value-of select="phone"/> ;
        <xsl:value-of select="email"/>
        <!-- ul><xsl:apply-templates/></ul  -->
    </xsl:template>


    <xsl:template match="project">
      <TR>
        <TD VALIGN="top" width="36%">
          <TABLE bgcolor="#EEEEEE" WIDTH="100%" BORDER="1"><TR><TD>
            <TABLE WIDTH="100%"><TR><TD><FONT SIZE="2">
              <xsl:value-of select="@start"/> thru <xsl:value-of select="@end"/>: <xsl:apply-templates select="position"/>
                     <BR/><xsl:apply-templates select="client[@name]"/>
                     <BR/><xsl:apply-templates select="supervisor[@name!='']"/></FONT></TD></TR>
                   <TR WIDTH="100%" ><TD bgcolor="#CCFFFF"><B><FONT SIZE="-1">KEYWORDS: </FONT></B><FONT SIZE="-2"><xsl:apply-templates select="keywords[@list]"/></FONT></TD></TR>
            </TABLE></TD></TR>
          </TABLE>
        </TD>
        <TD VALIGN="top">
		<a name="{generate-id(.)}">
	<FONT SIZE="-1">
<xsl:choose>
  <xsl:when test="description=''">
  	<i><xsl:value-of select="short_desc"/></i>
  </xsl:when>
  <xsl:otherwise>
	<xsl:value-of select="description"/>
  </xsl:otherwise>
</xsl:choose>
        <xsl:apply-templates select="staff[@headcount]"/></FONT></a>
		</TD>
      </TR>
    </xsl:template>

<!--    <xsl:template match="staff[@headcount!='0']">
- <u>Directed the efforts of a total of <xsl:value-of select="@headcount"/> other developers.</u>
    </xsl:template>-->
    <xsl:template match="staff[@headcount!='0']">
- <u>
<xsl:choose>
  <xsl:when test="starts-with($Keywords,'DIRECTED')">
<b><font color="red">Directed</font></b>
  </xsl:when>
  <xsl:otherwise>
Directed
  </xsl:otherwise>
</xsl:choose>
 the efforts of <xsl:value-of select="@headcount"/> other developers.</u>
    </xsl:template>

    <xsl:template match="client">
          <small><u>CLIENT:</u></small> <b><xsl:value-of select="@name"/></b> : <xsl:value-of select="@location"/>
    </xsl:template>


    <xsl:template match="position">
          <!-- small><u>TITLE:</u></small -->
          <b><xsl:value-of select="@title"/></b> <i> [<xsl:value-of select="@type"/>]</i>
    </xsl:template>


    <xsl:template match="client[@name]">
          <xsl:value-of select="@name"/>, <xsl:value-of select="@location"/>
    </xsl:template>


    <xsl:template match="supervisor[@name]">
          <xsl:value-of select="@name"/>, <xsl:value-of select="@title"/>
    </xsl:template>


    <xsl:template match="keywords[@list]">
          <xsl:value-of select="@list"/>
    </xsl:template>

</xsl:stylesheet>
<!-- Stylus Studio meta-information - (c)1998-2001 eXcelon Corp.
<metaInformation>
<scenarios ><scenario default="yes" name="full resume" userelativepaths="yes" url="resume.xml" htmlbaseurl="" processortype="internal" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext=""/></scenarios><MapperInfo  srcSchemaPath="" srcSchemaRoot="" srcSchemaPathIsRelative="yes" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" />
</metaInformation>
-->