-
Notifications
You must be signed in to change notification settings - Fork 122
/
proposal-status.xsl
411 lines (369 loc) · 17.2 KB
/
proposal-status.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
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
<!--
This file renders the contents of proposals.xml as a nicely-formatted HTML page.
The proposal data and this template are loaded using JavaScript (see index.html
on the gh-pages branch).
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<!-- The main template, which renders the page body. -->
<xsl:template match="/proposals">
<html>
<head>
<title>SDL Evolution Proposal Status</title>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<xsl:call-template name="css"/>
</head>
<body>
<h1>SDL Evolution Proposal Status</h1>
<p>The <a href="https://github.com/smartdevicelink/sdl_evolution/blob/master/process.md">SDL evolution process</a> describes the process by which SDL evolves. This page tracks the currently active proposals in that process.</p>
<xsl:call-template name="section">
<xsl:with-param name="title">Active reviews</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='active']"/>
</xsl:call-template>
<!-- <xsl:call-template name="section">
<xsl:with-param name="title">Upcoming reviews</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='scheduled']"/>
</xsl:call-template> -->
<xsl:call-template name="section">
<xsl:with-param name="title">Accepted (awaiting implementation)</xsl:with-param>
<xsl:with-param name="description">This is the list of proposals which have been accepted for inclusion into SDL, but they are not implemented yet, and may not have anyone signed up to implement them. If they are not implemented in time for the next version of SDL, they will roll into a subsequent release.</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='accepted']"/>
</xsl:call-template>
<!-- This needs to include both version and platform -->
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for SDL iOS v6.7</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='ios'][@sdl-version='6.7']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for SDL iOS v7.0</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='ios'][@sdl-version='7.0']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for SDL iOS v7.1</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='ios'][@sdl-version='7.1']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for SDL Java Suite v5.0</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='java-suite'][@sdl-version='5.0']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for SDL Java Suite v5.1</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='java-suite'][@sdl-version='5.1']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for SDL Java Suite v5.4</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='java-suite'][@sdl-version='5.4']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for SDL JavaScript Suite v1.3</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='javascript'][@sdl-version='1.3']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for SDL JavaScript Suite v1.5</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='javascript'][@sdl-version='1.5']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for SDL JavaScript Suite v1.6</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='javascript'][@sdl-version='1.6']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for SDL Core v7.1</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='core'][@sdl-version='7.1']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for SDL Core v8.0</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='core'][@sdl-version='8.0']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for SDL Core v8.1</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='core'][@sdl-version='8.1']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for SDL RPC Spec v7.0</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='rpc'][@sdl-version='7.0']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for SDL RPC Spec v7.1</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='rpc'][@sdl-version='7.1']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for SDL RPC Spec v8.0</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='rpc'][@sdl-version='8.0']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for SDL Protocol Spec v5.3</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='protocol'][@sdl-version='5.3']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for SDL Protocol Spec v5.4</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='protocol'][@sdl-version='5.4']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for SDL Protocol Spec v5.4.1</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='protocol'][@sdl-version='5.2']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for SDL Policy Server v2.7</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='policy'][@sdl-version='2.7']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for SDL Policy Server v3.0</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='policy'][@sdl-version='3.0']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for ATF v6.1</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='atf'][@sdl-version='6.1']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for ATF v7.0</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='atf'][@sdl-version='7.0']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for ATF v8.0</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='atf'][@sdl-version='8.0']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for SHAID v2.6</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='shaid'][@sdl-version='2.6']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Implemented for Manticore v2.6</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='implemented'][@primary-platform='manticore'][@sdl-version='2.6']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Deferred for future discussion</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='deferred']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Returned for revision</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status='returned']"/>
</xsl:call-template>
<xsl:call-template name="section">
<xsl:with-param name="title">Rejected or withdrawn</xsl:with-param>
<xsl:with-param name="proposals" select="proposal[@status= 'rejected' or @status= 'withdrawn']"/>
</xsl:call-template>
</body>
</html>
</xsl:template>
<!-- Renders a section header and a table of proposals. -->
<xsl:template name="section">
<xsl:param name="title"/>
<xsl:param name="description"/>
<xsl:param name="proposals"/>
<section>
<h2><xsl:value-of select="$title"/></h2>
<xsl:if test="$description"><p><xsl:value-of select="$description"/></p></xsl:if>
<xsl:choose>
<xsl:when test="count($proposals) = 0">
<p>(none)</p>
</xsl:when>
<xsl:otherwise>
<table>
<xsl:apply-templates select="$proposals">
<xsl:sort select="@id" order="ascending"/>
</xsl:apply-templates>
</table>
</xsl:otherwise>
</xsl:choose>
</section>
</xsl:template>
<!-- Renders a single proposal. -->
<xsl:template match="proposal">
<tr class="proposal">
<td><a class="number status-{@status}" href="https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/{@filename}">SDL-<xsl:value-of select="@id"/></a></td>
<td><a class="number platform-{@primary-platform}" href="https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/{@filename}"><xsl:value-of select="@primary-platform"/></a></td>
<td>
<a class="title" href="https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/{@filename}">
<xsl:call-template name="format-proposal-name">
<xsl:with-param name="name" select="@name"/>
</xsl:call-template>
</a>
</td>
</tr>
</xsl:template>
<!-- Converts inline `code` in a proposal name to <code></code> elements. -->
<xsl:template name="format-proposal-name">
<xsl:param name="name"/>
<xsl:choose>
<xsl:when test="contains($name, '`')">
<xsl:variable name="before-open-tick" select="substring-before($name, '`')"/>
<xsl:variable name="after-open-tick" select="substring-after($name, '`')"/>
<xsl:variable name="between-ticks" select="substring-before($after-open-tick, '`')"/>
<xsl:variable name="after-close-tick" select="substring-after($after-open-tick, '`')"/>
<!-- Render up to and including the first occurrence of `code` -->
<xsl:value-of select="$before-open-tick"/>
<code><xsl:value-of select="$between-ticks"/></code>
<!-- Recursively format the rest of the string -->
<xsl:call-template name="format-proposal-name">
<xsl:with-param name="name" select="$after-close-tick"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$name"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="css">
<style type="text/css">
* {
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, HelveticaNeue, Helvetica, Arial, sans-serif;
-webkit-text-size-adjust: none;
}
body > h1, body > p, section > table, section > p {
margin-left: 1rem;
margin-right: 1rem;
}
p {
margin-top: 1em;
margin-bottom: 1em;
line-height: 1.5em;
}
code {
font-family: "SFMono-Regular", Menlo, Consolas, monospace;
font-size: 90%;
padding: 0.2em 0.3em;
background-color: #f7f7f7;
border-radius: 3px;
}
h1 {
margin-top: 0.6em;
margin-bottom: 0.6em;
}
h2 {
margin: 0.5em 0em 0em;
padding: 0.3em 1rem 0.4em;
position: -webkit-sticky;
position: -moz-sticky;
position: -ms-sticky;
position: -o-sticky;
position: sticky;
top: 0px;
background-color: #fff;
}
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
h2 {
background-color: rgba(255, 255, 255, 0.5);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
}
h2 + p {
margin-top: 0;
}
a {
color: #4078c0;
text-decoration: none;
}
a:hover, a:visited:hover {
text-decoration: underline;
}
.proposal a.title {
color: #647686; // SDL Steel
}
.proposal a.title:visited {
color: #8f9eac; // SDL Platinum
}
.proposal a.title:hover, .proposal a.title:visited:hover {
color: #202c36; // SDL Black
}
table {
margin-bottom: 1rem;
border-spacing: 0.5em;
}
table, tr, td {
padding: 0;
}
.proposal {
font-size: 1.1em;
}
.proposal td {
vertical-align: top;
}
.number {
text-align: center;
border-radius: 5px;
font-size: 0.7em;
font-weight: bold;
padding: 0.2em 0.5em;
display: block;
white-space: nowrap;
color: #f9fbfe; // SDL Ice
}
.proposal a.number {
color: #f9fbfe;
text-decoration: none;
}
a.number.status-implemented {
background-color: #4ea57f; // SDL Forest
}
a.number.status-accepted {
background-color: #7ebc79; // SDL Lime
}
a.number.status-active {
background-color: #39609a; // SDL Navy
}
a.number.status-scheduled {
background-color: #58bcb9; // SDL Teal
}
a.number.status-awaiting, a.number.status-deferred {
background-color: #bac6d2; // SDL Grey
color: #000;
}
a.number.status-returned {
background-color: #c691c5; // SDL Purple
}
a.number.status-rejected {
background-color: #ef5e69; // SDL Red
}
a.number.status-withdrawn {
background-color: #ef5e69; // SDL Red
}
a.number.platform-protocol {
background-color: #fb9050; // SDL Orange
}
a.number.platform-rpc {
background-color: #c691c5; // SDL Purple
}
a.number.platform-core {
background-color: #ef5e69; // SDL Red
}
a.number.platform-ios {
background-color: #39609a; // SDL Navy
}
a.number.platform-java-suite {
background-color: #4ea57f; // SDL Forest
}
a.number.platform-meta {
background-color: #58bcb9; // SDL Teal
}
a.number.platform-policy {
background-color: #394e50; // SDL Dark Grey
}
a.number.platform-atf {
background-color: #7ebc79; // SDL Lime
}
a.number.platform-mobile {
background-color: #6397cd; // SDL Light Blue
}
a.number.platform-javascript {
background-color: #bac6d2; // SDL Grey
color: #000;
}
a.number.platform-manticore {
background-color: #7ebc79; // SDL Lime
}
a.number.platform-shaid {
background-color: #58bcb9; // SDL Teal
color: #000;
}
a.number.platform-hmi {
background-color: #7ebc79; // SDL Light Blue
color: #000;
}
</style>
</xsl:template>
</xsl:stylesheet>