-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresume.html.xsl
299 lines (259 loc) · 12 KB
/
resume.html.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
<?xml version="1.0"?>
<!DOCTYPE stylesheet [
<!ENTITY mdash "—">
]>
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" xmlns:xlink = "http://www.w3.org/1999/xlink" version = "1.0">
<xsl:output method = "html" media-type = "application/xhtml+xml" />
<xsl:param name = "lang" >en</xsl:param>
<xsl:template match = "*[ @xlink:role = 'locator' ]">
<a>
<xsl:attribute name = 'href'><xsl:value-of select = "@xlink:href" /></xsl:attribute>
<xsl:choose>
<xsl:when test = 'text()'><xsl:value-of select = "." /></xsl:when>
<xsl:otherwise><xsl:value-of select = "@xlink:href" /></xsl:otherwise>
</xsl:choose>
</a>
</xsl:template>
<xsl:template match = "/">
<xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text>
<html lang="en">
<head>
<xsl:apply-templates select = '/Document/Meta/Title' />
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Andrey Zakharov's CV" />
<meta name="author" content="Andrey Zakharov" />
<!-- Bootstrap Core CSS -->
<link href="assets/startbootstrap-freelancer/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<!-- Theme CSS -->
<link href="assets/startbootstrap-freelancer/css/freelancer.min.css" rel="stylesheet" />
<!-- Custom Fonts -->
<link href="assets/startbootstrap-freelancer/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css" />
<link href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet" type="text/css" />
<link href="assets/cv.css" rel="stylesheet" />
</head>
<body id="page-top" class="index">
<!-- Navigation -->
<nav id="mainNav" class="navbar navbar-default navbar-fixed-top navbar-custom">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span> Menu <i class="fa fa-bars"></i>
</button>
<a class="navbar-brand" href="#page-top"><xsl:value-of select = '/Document/Meta/Title' /></a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li class="hidden">
<a href="#page-top"></a>
</li>
<li class="page-scroll">
<a href="#Experience">Experience</a>
</li>
<li class="page-scroll">
<a href="#about">About</a>
</li>
<li class="page-scroll">
<a href="#contact">Contact</a>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
<xsl:apply-templates select = '/Document/Meta' />
<xsl:apply-templates select = '/Document/Meta/following-sibling::*' />
<script src="assets/js/modernizr.js"></script>
<!-- jQuery -->
<script src="assets/startbootstrap-freelancer/vendor/jquery/jquery.min.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="assets/startbootstrap-freelancer/vendor/bootstrap/js/bootstrap.min.js"></script>
<!-- Plugin JavaScript -->
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
<!-- Contact Form JavaScript -->
<!-- <script src="assets/startbootstrap-freelancer/js/jqBootstrapValidation.js"></script> -->
<!-- <script src="assets/startbootstrap-freelancer/js/contact_me.js"></script> -->
<!-- Theme JavaScript -->
<script src="assets/startbootstrap-freelancer/js/freelancer.min.js"></script>
<script src="assets/js/timeline.js"></script>
</body>
</html>
</xsl:template>
<xsl:template match="Period"><xsl:value-of select = "@From" />—<xsl:value-of select = "@To" /></xsl:template>
<!-- Meta -->
<xsl:template match = '/Document/Meta'><xsl:apply-templates select = "*[@lang=$lang]"/></xsl:template>
<xsl:template match = '/Document/Meta/Personal'> <!-- Header -->
<header>
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="intro-text">
<xsl:apply-templates select="Photo"/>
<span class="name"><xsl:value-of select = '/Document/Meta/Title' /></span>
<hr class="star-light" />
<xsl:apply-templates select="Skills"/>
</div>
</div>
</div>
</div>
</header>
</xsl:template>
<xsl:template match = '//Meta/Title'><title><xsl:value-of select = '.' /></title></xsl:template>
<xsl:template match = '//Personal/FirstName'><span class='firstname'><xsl:value-of select = '.' /></span></xsl:template>
<xsl:template match = '//Personal/FamilyName'><span class='familyname'><xsl:value-of select = '.' /></span></xsl:template>
<xsl:template match = '//Personal/Address'><span class='address'><xsl:value-of select = '.' /></span></xsl:template>
<xsl:template match = '//Personal/Phone'>
<span class='phone'>
<xsl:if test = '@type = "cell"'>
<xsl:attribute name = 'class'>mobile</xsl:attribute>
</xsl:if>
<xsl:value-of select = '.' />
</span>
</xsl:template>
<xsl:template match = '//Personal/Email'><span class='email'><a>
<xsl:attribute name='href'>mailto:<xsl:value-of select = '.' /></xsl:attribute>
<xsl:value-of select = '.' /></a></span></xsl:template>
<xsl:template match = '//Personal/Extra[ @type = "skype" ]'><span class='skype'>skype: <xsl:value-of select = '.' /></span></xsl:template>
<xsl:template match = '//Personal/Photo'>
<img class="img-responsive clip-circle">
<!--xsl:attribute name = 'width'>
<xsl:value-of select = '@width' />
</xsl:attribute-->
<xsl:attribute name = 'src'>
<xsl:value-of select = '.' />
</xsl:attribute>
</img>
</xsl:template>
<xsl:template match = '//Personal/Skills'><span class="skills"><xsl:value-of select = '.' /></span></xsl:template>
<xsl:template match = '/Document/*'>
<section>
<xsl:attribute name = 'id'>
<xsl:value-of select = 'name()' />
</xsl:attribute>
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2><xsl:value-of select = 'name()' /></h2>
<hr class="star-primary" />
</div>
</div>
<xsl:apply-templates />
</div>
</section>
</xsl:template>
<xsl:template match = '/Document/Experience/Vocational'>
<section id="experience-timeline" class="cd-container">
<xsl:apply-templates />
</section>
</xsl:template>
<xsl:template match = '//Vocational/Entry'>
<div class="cd-timeline-block">
<div class="cd-timeline-img">
<img alt="Picture">
<xsl:attribute name="src">assets/img/<xsl:value-of select = 'Employer/Logo' /></xsl:attribute>
</img>
</div> <!-- cd-timeline-img -->
<div class="cd-timeline-content">
<h3><xsl:value-of select = '@Job' /></h3>
<xsl:value-of select = 'Employer/Name' />, <xsl:value-of select = 'Employer/City' />,
<em><xsl:value-of select = 'Employer/Description' /></em>
<p><xsl:apply-templates select = 'Description' /></p>
<!--a href="#0" class="cd-read-more">Read more</a-->
<span class="cd-date period"><xsl:apply-templates select = 'Period' /></span>
<xsl:apply-templates select="Achievement[@lang='en']" /><br/>
<span class = 'techs'>Key technologies and languages: <xsl:value-of select = 'Techs' /></span>
</div> <!-- cd-timeline-content -->
</div> <!-- cd-timeline-block -->
</xsl:template>
<xsl:template match = '/Document/*/*'><h2><xsl:value-of select = 'name()' /></h2>
<table class = 'subsection'>
<xsl:apply-templates />
</table>
</xsl:template>
<xsl:template match = '/Document/Programs'></xsl:template>
<xsl:template match = '/Document/Objective'></xsl:template>
<xsl:template match = '/Document/Strengths'>
<section>
<xsl:attribute name = 'id'>
<xsl:value-of select = 'name()' />
</xsl:attribute>
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2><xsl:value-of select = 'name()' /></h2>
<hr class="star-primary" />
</div>
</div>
<ul>
<xsl:apply-templates />
</ul>
</div>
</section>
</xsl:template>
<xsl:template match = '//Strengths/Entry'><li><xsl:apply-templates /></li></xsl:template>
<xsl:template match = '//Education/Entry'>
<xsl:apply-templates select = 'Period' />, <strong><xsl:value-of select = 'Degree' /></strong>,
<xsl:value-of select = 'Institution' />,
<xsl:value-of select = 'City' />,
<em><xsl:value-of select = 'Grade' /></em>,
<small><xsl:value-of select = 'Description' /></small>.<br />
</xsl:template>
<xsl:template match = '//Education/Thesis'>
<h2>Master thesis</h2>
<table class = 'subsection'>
<tr><td>title</td><td><em><xsl:value-of select = 'Title' /></em></td></tr>
<tr><td>supervisors</td><td><xsl:value-of select = 'Supervisors' /></td></tr>
<tr><td>description</td><td><small><xsl:value-of select = 'Description' />}</small></td></tr>
</table>
</xsl:template>
<xsl:template match = '//Achievement'><li><xsl:value-of select = '.' /></li></xsl:template>
<xsl:template match = '//Languages'><h1>Languages</h1><table class = 'languages'><xsl:apply-templates /></table></xsl:template>
<xsl:template match = '//Language'><tr><td class='name'><xsl:value-of select = '@name' /></td>
<td class='skill'><xsl:value-of select = '@skill' /></td><td><xsl:value-of select = '.' /></td></tr></xsl:template>
<xsl:template match = '/Document/Skills'><h1>Computer skills</h1><xsl:apply-templates /></xsl:template>
<xsl:template match = '/Document/Skills/Group'><h2><xsl:value-of select = '@type' /></h2>
<table class = 'subsection'>
<xsl:apply-templates />
</table>
</xsl:template>
<xsl:template match = '/Document/Skills//Entry'><tr>
<xsl:choose>
<xsl:when test = '@type'>
<td class = 'type'><xsl:value-of select = '@type' /></td>
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
<td class='entry'><xsl:value-of select = '.' /></td></tr></xsl:template>
<xsl:template match = '/Document/Bibliography'><h1>Publications</h1>
<table cellpadding = "1" cellspacing = "0" border = "0">
<xsl:apply-templates />
</table></xsl:template>
<xsl:template match = '/Document/Bibliography/Entry'>
<tr>
<td><xsl:value-of select = '@Author' />, </td>
<td>
<a><xsl:attribute name = "href"><xsl:value-of select = '@Url' /></xsl:attribute><xsl:value-of select = '@Title' /></a>,
</td>
<td><xsl:value-of select = '@Year' /></td>
</tr>
</xsl:template>
<xsl:template match = '/Document/Links/Profiles'><ul class = "ProfileLinks"><xsl:apply-templates /></ul></xsl:template>
<xsl:template match = '/Document/Links/Profiles/Entry'>
<li>
<a>
<xsl:attribute name = "href">
<xsl:value-of select = '@xlink:href' />
</xsl:attribute>
<strong><xsl:value-of select = '@type' /></strong>
[
<xsl:value-of select="@xlink:href" />
]
</a>
</li>
</xsl:template>
</xsl:stylesheet>