You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cv.xsl 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE HTML [
  3. <!ENTITY nbsp "&#160;"><!--espace insécable-->
  4. ]>
  5. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  6. <xsl:output method="html" encoding="utf-8" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" indent="no" />
  7. <xsl:template match="cv">
  8. <html>
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  11. <title>_ Desmidt Clément _ CV _ Curriculum Vitæ</title>
  12. <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
  13. <script type="text/javascript" src="http://shikiryu.com/js/konami.js"></script>
  14. <script type="text/javascript" src="http://shikiryu.com/js/jquery.tipsy.js"></script>
  15. <script type="text/javascript" src="decodingFunction.js"></script>
  16. <link href="main.css" media="screen" rel="Stylesheet" type="text/css" />
  17. <link href="print.css" media="print" rel="Stylesheet" type="text/css" />
  18. <!--[if IE]>
  19. <link href="http://www.shikiryu.com/mainIE.css" rel="Stylesheet" type="text/css" />
  20. <![endif]-->
  21. </head>
  22. <body onload="goDecoding();">
  23. <a href="en.xml" id="en-lang" class="tips" title="English"></a>
  24. <a href="fr.xml" id="fr-lang" class="tips" title="Français"></a>
  25. <div id="wrapper">
  26. <div id="presentation">
  27. <img src="images/ShikiryuPic.png" alt="Photo de Shikiryu" />
  28. <xsl:apply-templates select="presentation" />
  29. </div>
  30. <div id="competences">
  31. <xsl:apply-templates select="competences" />
  32. </div>
  33. <div id="works">
  34. <xsl:apply-templates select="experiences" />
  35. </div>
  36. <div id="formation">
  37. <xsl:apply-templates select="formations" />
  38. </div>
  39. <div id="contact">
  40. <xsl:apply-templates select="contacts" />
  41. </div>
  42. </div>
  43. <script type="text/javascript">
  44. $(document).ready(function(){
  45. $('.tips').tipsy({gravity: $.fn.tipsy.autoNS,fade: true});
  46. $(window).konami(function(){
  47. window.location.href='http://portfolio.shikiryu.com/showreel/showreel-hq.html'
  48. });
  49. $('.decode').html($(this).html());
  50. });
  51. </script>
  52. </body>
  53. </html>
  54. </xsl:template>
  55. <xsl:template match="presentation">
  56. <h2><xsl:value-of select="title" /></h2>
  57. <p>
  58. <strong><xsl:value-of select="naissance/@name" /></strong>&nbsp; <xsl:value-of select="naissance" /><br/>
  59. <xsl:for-each select="sites/site">
  60. <a href="{.}"><xsl:value-of select="@name" /></a>
  61. <xsl:if test="position() != last()"> - </xsl:if>
  62. </xsl:for-each>
  63. <br/>
  64. <strong><xsl:value-of select="langues/@name" /></strong>
  65. <xsl:for-each select="langues/langue">
  66. / <strong><xsl:value-of select="@name" /> :&nbsp;</strong> <xsl:value-of select="." />
  67. </xsl:for-each>
  68. <br/><br/>
  69. </p>
  70. <p class="telechargement">
  71. <strong><xsl:value-of select="telechargement/@name" /></strong> <a href="{telechargement/fichier[1]}" title="{telechargement/fichier[1]/@name}" class="pdf"><xsl:value-of select="telechargement/fichier[1]/@name" /></a> &nbsp;<xsl:value-of select="telechargement/ou" />&nbsp; <a href="{telechargement/fichier[2]}" title="{telechargement/fichier[2]/@name}" class="word"><xsl:value-of select="telechargement/fichier[2]/@name" /></a>
  72. </p>
  73. </xsl:template>
  74. <xsl:template match="competences">
  75. <h2 class="skills"><xsl:value-of select="@name" /></h2>
  76. <div id="leftComp">
  77. <h3 class="{competence[1]/@class}"><xsl:value-of select="competence[1]/@name" /></h3>
  78. <p>
  79. <xsl:for-each select="competence[1]/detail">
  80. <span name="decode"> <xsl:value-of select="." disable-output-escaping="yes" /></span><br/>
  81. </xsl:for-each>
  82. <br /><br /></p>
  83. <h3 class="{competence[2]/@class}"><xsl:value-of select="competence[2]/@name" /></h3>
  84. <p>
  85. <xsl:for-each select="competence[2]/detail">
  86. <span name="decode"> <xsl:value-of select="." disable-output-escaping="yes" /></span><br/>
  87. </xsl:for-each>
  88. </p>
  89. </div>
  90. <div id="rightComp">
  91. <h3 class="{competence[3]/@class}"><xsl:value-of select="competence[3]/@name" /></h3>
  92. <p>
  93. <xsl:for-each select="competence[3]/detail">
  94. <span name="decode"> <xsl:value-of select="." disable-output-escaping="yes" /></span><br/>
  95. </xsl:for-each>
  96. <br /><br /></p>
  97. <h3 class="{competence[4]/@class}"><xsl:value-of select="competence[4]/@name" /></h3>
  98. <p>
  99. <xsl:for-each select="competence[4]/detail">
  100. <span name="decode"> <xsl:value-of select="." disable-output-escaping="yes" /></span><br/>
  101. </xsl:for-each>
  102. </p>
  103. </div>
  104. </xsl:template>
  105. <xsl:template match="experiences">
  106. <h2><xsl:value-of select="@name" /></h2>
  107. <ul class="proExp">
  108. <xsl:for-each select="experience">
  109. <li class="exp"><span class="date"><xsl:value-of select="date" /></span>&nbsp;
  110. <span class="lieu">
  111. <xsl:if test="lien = ''">
  112. <xsl:value-of select="lieu" />
  113. </xsl:if>
  114. <xsl:if test="lien != ''">
  115. <a href="{lien}"><xsl:value-of select="lieu" /> </a>
  116. </xsl:if>
  117. </span>&nbsp;
  118. <span class="titre"><xsl:value-of select="titre" />&nbsp;<strong><xsl:value-of select="type" /></strong></span><br/>
  119. <ul class="missions">
  120. <xsl:for-each select="missions/mission">
  121. <li>- <xsl:value-of select="." /></li>
  122. </xsl:for-each>
  123. </ul>
  124. </li>
  125. </xsl:for-each>
  126. </ul>
  127. </xsl:template>
  128. <xsl:template match="formations">
  129. <h2><xsl:value-of select="@name" /></h2>
  130. <ul>
  131. <xsl:for-each select="formation">
  132. <li><span class="date"><xsl:value-of select="date" /></span>&nbsp;
  133. <span class="lieu">
  134. <xsl:if test="lien = ''">
  135. <xsl:value-of select="lieu" />
  136. </xsl:if>
  137. <xsl:if test="lien != ''">
  138. <a href="{lien}"><xsl:value-of select="lieu" /> </a>
  139. </xsl:if>
  140. </span>&nbsp;
  141. <span class="titre"><strong><xsl:value-of select="titre/@name" /></strong> &nbsp;
  142. <span class="decode" name="decode"><xsl:value-of select="titre" disable-output-escaping="yes" /></span>
  143. </span>
  144. </li>
  145. </xsl:for-each>
  146. </ul>
  147. </xsl:template>
  148. <xsl:template match="contacts">
  149. <div id="Sites">
  150. <h2><xsl:value-of select="contact[1]/@name" /></h2>
  151. <p>
  152. <xsl:for-each select="contact[1]/lien">
  153. <a href="{.}" title="{@title}" target="_blank" class="{@class}"></a>
  154. </xsl:for-each>
  155. </p>
  156. </div>
  157. <div id="Forms">
  158. <h2><xsl:value-of select="contact[2]/@name" /></h2>
  159. <p class="contactWays">
  160. <a href="{contact[2]/lien}" class="{contact[2]/lien/@class}"><xsl:value-of select="contact[2]/lien/@texte" /></a><br />
  161. </p>
  162. </div>
  163. </xsl:template>
  164. </xsl:stylesheet>