-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresume.xsl
117 lines (108 loc) · 5.36 KB
/
resume.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="resume">
<html>
<head>
<title>CV - <xsl:value-of select="name" /></title>
<link rel="stylesheet" href="build/resume.css" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&subset=latin,latin-ext" />
</head>
<body>
<header>
<h1><xsl:value-of select="name" /></h1>
</header>
<section id="basicData">
<div class="row">
<div class="label">Born</div>
<div class="value"><xsl:value-of select="birthday" /></div>
</div>
<div class="row">
<div class="label">Place of living</div>
<div class="value"><xsl:value-of select="city" /></div>
</div>
<div class="row">
<div class="label">Phone number</div>
<div class="value"><xsl:value-of select="phone" /></div>
</div>
<div class="row">
<div class="label">E-mail</div>
<div class="value"><xsl:apply-templates select="email" /></div>
</div>
<div class="row">
<div class="label">Links</div>
<div class="value">
<xsl:for-each select="links/link">
<a href="{.}"><xsl:value-of select="." /></a><br />
</xsl:for-each>
</div>
</div>
</section>
<section class="history">
<h2>Education</h2>
<xsl:for-each select="education/*">
<div class="row">
<div class="dateRange"><xsl:value-of select="startYear" /> – <xsl:value-of select="endYear" /></div>
<div class="value"><xsl:value-of select="name" /> – <xsl:value-of select="title" /><br /><xsl:value-of select="division" /></div>
</div>
</xsl:for-each>
</section>
<section class="history">
<h2>Work experience</h2>
<xsl:for-each select="employment/job">
<div class="row">
<div class="dateRange">
<xsl:value-of select="startDate" /> – <xsl:value-of select="endDate" />
<xsl:if test="not(endDate)">
now
</xsl:if>
</div>
<div class="value"><xsl:value-of select="company" /> – <xsl:value-of select="duties" /></div>
</div>
</xsl:for-each>
</section>
<section>
<h2>Technologies</h2>
<ul class="skills">
<xsl:for-each select="skills/skill">
<li><xsl:value-of select="." /></li>
</xsl:for-each>
</ul>
</section>
<section id="conferences">
<h2>Conferences</h2>
<ul>
<xsl:for-each select="conferences/conference">
<li>
<xsl:value-of select="name" /> – <xsl:value-of select="date" /> – <em><xsl:value-of select="title" /></em>
<xsl:if test="link"> – <a href="{link}"><xsl:value-of select="link" /></a></xsl:if>
</li>
</xsl:for-each>
</ul>
</section>
<section>
<h2>Would like to know better</h2>
<ul class="skills">
<xsl:for-each select="dreams/dream">
<li><xsl:value-of select="." /></li>
</xsl:for-each>
</ul>
</section>
<section>
<h2>Interests</h2>
<ul>
<xsl:for-each select="interests/interest">
<li><xsl:value-of select="." /></li>
</xsl:for-each>
</ul>
</section>
<footer>
This document was written in XML and converted to HTML with an XSLT sheet. PDF generated using headless Google Chrome<br />
Source code is available at <a href="https://github.com/phorzycki/resume">https://github.com/phorzycki/resume</a>
</footer>
</body>
</html>
</xsl:template>
<xsl:template match="email">
<a href="mailto:{username}@{domain}"><xsl:value-of select="username" />@<xsl:value-of select="domain" /></a>
</xsl:template>
</xsl:stylesheet>