<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : curriculum-vitae.xsl
    Created on : Mai 2011, 15:45
    Author     : yhs
    Description: Transforme mon CV au format RDF en page XHTML strict.
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
        xmlns:owl="http://www.w3.org/2002/07/owl#"
        xmlns:vcard="http://www.w3.org/2006/vcard/ns#"
        xmlns:dc="http://purl.org/dc/terms/"
        xmlns:foaf="http://xmlns.com/foaf/0.1/"
        xmlns:doac="http://ramonantonio.net/doac/0.1/"
        xmlns:cv="http://rdfs.org/resume-rdf/"
        xmlns="http://www.w3.org/1999/xhtml">

    <xsl:output
	    method="xml"
            indent="yes"
            encoding="utf-8"
            omit-xml-declaration="yes"
            doctype-system="http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"
            doctype-public="-//W3C//DTD XHTML+RDFa 1.0//EN" />

    <xsl:template match="/rdf:RDF/cv:CV">
	<html xml:lang="fr-CA">
	    <head>
		<meta http-equiv="content-type" content="text/html;charset=utf-8" />
		<title>
		    <xsl:apply-templates select="//cv:cvTitle" />,
		    <xsl:apply-templates select="//vcard:title" />
		    (<xsl:apply-templates select="//vcard:locality" />,
		    <xsl:apply-templates select="//vcard:region" />) — hugosoucy.name
		</title>

		<link href="css/cv.css" media="screen" rel="stylesheet" type="text/css" />

		<meta name="viewport" content="width=device-width, initial-scale=1.0" />

		<link rel="prev" title="Page Web personnelle de Hugo Soucy" href="http://hugosoucy.name/" />
		<link rel="home" title="Accueil" href="http://hugosoucy.name/" />
		<link rel="meta" type="application/rdf+xml" title="ResumeRDF" href="http://hugosoucy.name/docs/cv/curriculum-vitae.rdf#" />

		<script type="text/javascript">
		  var _gaq = _gaq || [];
		  _gaq.push(['_setAccount', 'UA-13258941-2']);
		  _gaq.push(['_trackPageview']);

		  (function() {
		    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		  })();
		</script>
	    </head>
	    <body class="no_debug" id="cv" typeof="cv:CV">
		<div rel="cv:aboutPerson">
		    <div about="http://hugosoucy.name/docs/foaf.rdf#yhs" typeof="foaf:Person">
			<xsl:apply-templates select="*[not(self::cv:cvTitle)]"/>
		    </div>
		</div>
		<div class="container" id="footer">
		    <div class="row">
			<p class="twelvecol last">Cette page Web conçue par
			    <a href="http://hugosoucy.name/#">Hugo Soucy</a> est propulsée par
			    <a href="curriculum-vitae.rdf">RDF</a>,
			    <a href="curriculum-vitae.xsl">XSLT</a>,
			    <a href="http://validator.w3.org/check?verbose=1&amp;uri=http%3A%2F%2Fhugosoucy.name%2Fdocs%2Fcv%2F">XHTML+RDFa</a>
			    et PHP.
			    <em class="time" id="pgeLastUpdate">2011-09-22</em>
			</p>
		    </div>
		</div>
		<script type="text/javascript" src="scripts/js/lib/jquery/jquery-1.6.1.min.js">
		    <xsl:comment>Importation de la librairie JQuery v.1.6.1.</xsl:comment>
		</script>
		<script type="text/javascript" src="scripts/js/custom.js">
		    <xsl:comment>Le JavaScript maison.</xsl:comment>
		</script>
	    </body>
	</html>
    </xsl:template>

    <xsl:template match="foaf:Person">
	<div class="container vcard" id="header">
	    <div class="row sep">
		<div class="col sixcol">
		    <h1 class="fn" id="nom" property="foaf:name">
			<xsl:apply-templates select="foaf:name" />
		    </h1>
		    <h2 class="italic title" id="jobTitle" property="foaf:title">
			<xsl:apply-templates select="vcard:title" />
		    </h2>
		</div>

		<div class="col threecol" id="boxCoordonnees">
		    <div class="adr" rel="vcard:Address">
			<strong class="locality" property="vcard:locality">
			    <xsl:apply-templates select="vcard:Address/vcard:locality" />
			</strong>,
			<span class="region" property="vcard:region">
			    <xsl:apply-templates select="vcard:Address/vcard:region" />
			</span>
		    </div>

		    <div>
			<span class="tel">
			    <em>Téléphone</em> :
			    <span class="value" property="foaf:phone">
				<xsl:apply-templates select="foaf:phone" />
			    </span>
			</span>
			<br/>
			<span>
			    <em>Courriel</em> :
			    <a class="email" href="mailto:{foaf:mbox}" rel="foaf:mbox">
				<xsl:apply-templates select="foaf:mbox" />
			    </a>
			</span>
			<br/>
			<span>
			    <em>Jabber/gTalk</em> :
			    <a href="xmpp:{foaf:jabberID}" rel="foaf:jabberID">
				<xsl:apply-templates select="foaf:jabberID" />
			    </a>
			</span>
			<br/>
			<span>
			    <a class="url" href="{foaf:homepage}" rel="foaf:homepage">
				<xsl:apply-templates select="foaf:homepage" />
			    </a>
			</span>
		    </div>
		</div>
		<div class="threecol last" id="cvPdf" about="#cv">
		    <a	class="block flowHidden"
			href="./2011/pdf/hsoucy-cv-2011.pdf"
			rel="foaf:Document"
			title="Télécharger ce CV au format PDF (82 K)">
			Télécharger ce CV au format PDF (82 K)
		    </a>
		</div>
	    </div>
	<!--FIN .row-->
	</div>
	<!--FIN .container #header-->

	<div class="container" id="profil">
	    <div class="row sep">
		<h3 class="italic col threecol">Profil</h3>
		<div class="col ninecol last">
		    <p property="cv:cvDescription">
			<xsl:apply-templates select="dc:description" />
		    </p>
		</div>
	    </div>
	<!--FIN .row-->
	</div>
	<!--FIN .container #profil-->

        <!--COMPÉTENCES-->
	<div about="http://hugosoucy.name/docs/foaf.rdf#yhs" class="container" id="competences">
	    <div class="row sep" rel="doac:OrganizationalSkill">
		<h3 class="italic col threecol">Compétences</h3>
		<xsl:for-each select="doac:OrganizationalSkill/doac:skill">
		    <xsl:choose>
			<xsl:when test="position()=last()">
			    <div class="col threecol last">
				<dl typeof="doac:skill">
				    <dt class="titre" property="dc:title">
					<xsl:apply-templates select="dc:title" />
				    </dt>
				    <dd property="dc:description">
					<xsl:apply-templates select="dc:description" />
				    </dd>
				</dl>
			    </div>
			</xsl:when>
			<xsl:otherwise>
			    <div class="col threecol">
				<dl typeof="doac:skill">
				    <dt class="titre" property="dc:title">
					<xsl:apply-templates select="dc:title" />
				    </dt>
				    <dd property="dc:description">
					<xsl:apply-templates select="dc:description" />
				    </dd>
				</dl>
			    </div>
			</xsl:otherwise>
		    </xsl:choose>
		</xsl:for-each>
	    </div>
	<!--FIN .row-->
	</div>
	<!--FIN .container #competences-->
        <!--FIN COMPÉTENCES-->

	<!--CONNAISSANCES-->
	<div about="http://hugosoucy.name/docs/foaf.rdf#yhs" class="container" id="connaissances">
	    <div class="row sep" rel="cv:hasSkill">
		<h3 class="italic col threecol">Connaissances</h3>
		<ul class="noBullets col ninecol last">
		    <xsl:for-each select="cv:hasSkill/cv:Skill">
			<xsl:choose>
			    <xsl:when test="(position() + 1) mod 3 = 1">
				<li class="col fourcol last" typeof="cv:Skill">
				    <abbr property="cv:skillName" title="{dc:description}">
					<xsl:apply-templates select="cv:skillName" />
				    </abbr>
				    <xsl:text> </xsl:text>
				    <small property="cv:skillLevel">
					<xsl:apply-templates select="cv:skillLevel" />
				    </small>
				    <xsl:text> </xsl:text>
				</li>
			    </xsl:when>
			    <xsl:otherwise>
				<li class="col fourcol" typeof="cv:Skill">
				    <abbr property="cv:skillName" title="{dc:description}">
					<xsl:apply-templates select="cv:skillName" />
				    </abbr>
				    <xsl:text> </xsl:text>
				    <small property="cv:skillLevel">
					<xsl:apply-templates select="cv:skillLevel" />
				    </small>
				    <xsl:text> </xsl:text>
				</li>
			    </xsl:otherwise>
			</xsl:choose>
		    </xsl:for-each>
		</ul>
		<noscript>
		    <p class="txtAlignCenter"><em>La note est sur 5.</em></p>
		</noscript>
	    </div>
	    <!--FIN .row-->
	</div>
	<!--FIN .container #connaissances-->
	<!--FIN CONNAISSANCES-->

        <!--JOBS-->
	<div about="http://hugosoucy.name/docs/foaf.rdf#yhs" class="container" id="jobs">
	    <div class="row sep" rel="cv:hasWorkHistory">
		<h3 class="italic col threecol">Expérience professionnelle</h3>
		<div  class="col ninecol last">
		    <xsl:for-each select="cv:hasWorkHistory/cv:workHistory">
			<dl typeof="cv:workHistory">
			    <dt class='titre' property="cv:jobTitle">
				<xsl:apply-templates select="cv:jobTitle" />
			    </dt>
			    <dd class='employeur'>
				<span property="cv:employedIn">
				    <xsl:apply-templates select="cv:employedIn" />
				</span>,
				<em property="doac:location">
				    <xsl:apply-templates select="doac:location" />
				</em> |
				<span property="cv:startDate"><xsl:apply-templates select="cv:startDate" /></span> -
				<span property="cv:endDate"><xsl:apply-templates select="cv:endDate" /></span>
			    </dd>
			    <dd>
				<ul>
				    <xsl:for-each select="doac:activity">
					<li property="doac:activity">
					    <xsl:value-of select="."/>
					</li>
				    </xsl:for-each>
				</ul>
			    </dd>
			</dl>
		    </xsl:for-each>
		</div>
	    </div>
	    <!--FIN .row-->
	</div>
	<!--FIN .container #jobs-->
        <!--FIN JOBS-->

	<!--ÉDUCATION-->
	<div about="http://hugosoucy.name/docs/foaf.rdf#yhs" class="container" id="education">
	    <div class="row sep" rel="cv:hasEducation">
		<h3 class="italic col threecol">Scolarité</h3>
		<div class="col ninecol last">
		    <xsl:for-each select="cv:hasEducation/cv:Education">
			<dl typeof="cv:Education">
			    <dt class='titre' property="cv:degreeType">
				<xsl:apply-templates select="cv:degreeType" />
			    </dt>
			    <dd class='lieu'>
				<span property="cv:studiedIn"><xsl:apply-templates select="cv:studiedIn" /></span> |
				<span property="cv:eduGradDate"><xsl:apply-templates select="cv:eduGradDate" /></span>
			    </dd>
			</dl>
		    </xsl:for-each>
		</div>
	    </div>
	<!--FIN .row-->
	</div>
	<!--FIN .container #education-->
	<!--FIN ÉDUCATION-->

	<!--COURS-->
	<div about="http://hugosoucy.name/docs/foaf.rdf#yhs" class="container" id="cours">
	    <div class="row sep" rel="cv:hasCourse">
		<h3 class="italic col threecol">Autre formation</h3>
		<div class="col ninecol last">
		    <xsl:for-each select="cv:hasCourse/cv:Course">
			<dl typeof="cv:Course">
			    <dt class='titre' property="cv:courseTitle">
				<xsl:apply-templates select="cv:courseTitle" />
			    </dt>
			    <dd class='lieu'>
				<span property="cv:organizedBy"><xsl:apply-templates select="cv:organizedBy" /></span> |
				<span property="cv:courseStartDate"><xsl:apply-templates select="cv:courseStartDate" /></span>
			    </dd>
			</dl>
		    </xsl:for-each>
		</div>
	    </div>
	<!--FIN .row-->
	</div>
	<!--FIN .container #cours-->
	<!--FIN COURS-->

	<!--IMPLICATIONS-->
	<div about="http://hugosoucy.name/docs/foaf.rdf#yhs" class="container" id="implications">
	    <div class="row sep" rel="cv:hasOtherInfo">
		<h3 class="italic col threecol">Implications et membership</h3>
		<div class="col ninecol last">
		    <xsl:for-each select="cv:hasOtherInfo/cv:OtherInfo">
			<dl typeof="cv:OtherInfo">
			    <dt class='titre' property="cv:otherInfoType">
				<xsl:apply-templates select="cv:otherInfoType" />
			    </dt>

			    <xsl:if test="cv:otherInfoDescription !=''">
				<dd property="cv:otherInfoDescription">
				    <xsl:apply-templates select="cv:otherInfoDescription" />
				</dd>
			    </xsl:if>

			    <xsl:if test="cv:Organization !=''">
				<dd class='lieu'>
				    <span property="cv:Organization">
					<xsl:apply-templates select="cv:Organization" />
				    </span>,
				    <em property="cv:Locality">
					<xsl:apply-templates select="cv:Locality" />
				    </em> |
				    <span property="cv:startDate"><xsl:apply-templates select="cv:startDate" /></span> -
				    <span property="cv:endDate"><xsl:apply-templates select="cv:endDate" /></span>
				</dd>
			    </xsl:if>
			</dl>
		    </xsl:for-each>
		</div>
	    </div>
	<!--FIN .row-->
	</div>
	<!--FIN .container #implications-->
        <!--FIN IMPLICATIONS-->

    </xsl:template>

</xsl:stylesheet>

