/[qa]/trunk/pts/www/xsl/pts.xsl
ViewVC logotype

Contents of /trunk/pts/www/xsl/pts.xsl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1090 - (show annotations) (download) (as text)
Sat Sep 10 17:50:51 2005 UTC (7 years, 9 months ago) by hertzog
File MIME type: application/xml
File size: 34001 byte(s)
Adding support of volatile / secure-testing.
1 <?xml version="1.0" encoding="ISO-8859-1" ?>
2
3 <!--
4 # Copyright 2002-2003 Raphaël Hertzog
5 # This file is distributed under the terms of the General Public License
6 # version 2 or (at your option) any later version.
7 -->
8
9 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
10
11 <xsl:output encoding="UTF-8" method="html"/>
12
13 <xsl:param name="package"/>
14 <xsl:param name="dir"/>
15 <xsl:param name="date"/>
16 <xsl:param name="hasoldstable" select="''"/>
17 <xsl:param name="hasstable" select="''"/>
18 <xsl:param name="hastesting" select="''"/>
19 <xsl:param name="hasunstable" select="''"/>
20 <xsl:param name="hasexperimental" select="''"/>
21 <xsl:param name="hasother" select="''"/>
22 <xsl:param name="hass-p-u" select="''"/>
23 <xsl:param name="hast-p-u" select="''"/>
24 <xsl:param name="hasoldstable-security" select="''"/>
25 <xsl:param name="hasstable-security" select="''"/>
26 <xsl:param name="hastesting-security" select="''"/>
27 <xsl:param name="hassecure-testing" select="''"/>
28 <xsl:param name="hasvolatile" select="''"/>
29 <xsl:param name="hasnews" select="''"/>
30 <xsl:param name="hasexcuse" select="''"/>
31
32 <xsl:variable name="other" select="document(concat('../base/', $dir, '/other.xml'))/other"/>
33
34 <!-- Those variables controls the todo and problem item concerning
35 standards-version not being up to date -->
36 <xsl:variable name="lastsv" select="'3.6.2'"/>
37 <xsl:variable name="lastmajorsv" select="'3.'"/>
38
39 <!-- Named templates aka functions -->
40 <xsl:template name="mirror">
41 <xsl:text>http://ftp.debian.org/debian</xsl:text>
42 </xsl:template>
43
44 <xsl:template name="outputitem">
45 <xsl:choose>
46 <xsl:when test="@url">
47 <li><xsl:if test="@date">
48 <xsl:text>[</xsl:text>
49 <xsl:value-of select="@date"/>
50 <xsl:text>] </xsl:text>
51 </xsl:if><a href="{@url}">
52 <xsl:value-of select="text()"/></a><xsl:if test="@from">
53 <xsl:text> (</xsl:text>
54 <xsl:value-of select="@from"/>
55 <xsl:text>)</xsl:text></xsl:if></li>
56 </xsl:when>
57 <xsl:otherwise>
58 <li><xsl:if test="@date">
59 <xsl:text>[</xsl:text>
60 <xsl:value-of select="@date"/>
61 <xsl:text>] </xsl:text>
62 </xsl:if><xsl:value-of select="text()"/></li>
63 </xsl:otherwise>
64 </xsl:choose>
65 </xsl:template>
66
67 <!-- Convert + in %2b for URL escaping ... -->
68 <xsl:template name="escape-name">
69 <xsl:param name="text"/>
70 <xsl:if test="contains($text,'+')">
71 <xsl:value-of select="substring-before($text,'+')"/>
72 <xsl:text>%2b</xsl:text>
73 <xsl:call-template name="escape-name">
74 <xsl:with-param name="text"><xsl:value-of select="substring-after($text,'+')"/></xsl:with-param>
75 </xsl:call-template>
76 </xsl:if>
77 <xsl:if test="not(contains($text,'+'))">
78 <xsl:value-of select="$text"/>
79 </xsl:if>
80 </xsl:template>
81
82 <!-- Strip epoch -->
83 <xsl:template name="strip-epoch">
84 <xsl:param name="version"/>
85 <xsl:if test="contains($version,':')">
86 <xsl:value-of select="substring-after($version,':')"/>
87 </xsl:if>
88 <xsl:if test="not(contains($version,':'))">
89 <xsl:value-of select="$version"/>
90 </xsl:if>
91 </xsl:template>
92
93
94 <!-- All the work is done in a single template -->
95 <xsl:template match="source">
96
97 <!-- Start of html -->
98 <xsl:text disable-output-escaping="yes">
99 &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;
100 </xsl:text>
101 <html>
102 <head>
103 <meta name="ROBOTS" content="NOFOLLOW"/>
104 <link title="Default" rel="stylesheet" href="../common/pts.css"/>
105 <link title="Standard link rendering" rel="alternate stylesheet" href="../common/pts2.css"/>
106 <title>Overview of <xsl:value-of select="$package"/> source package</title>
107 </head>
108 <body>
109
110 <form method="get" action="/common/index.html" style="float: right;">
111 <!-- this link should make lynx/links happy [FG] -->
112 <p>Jump to package (<a href="/">home page</a>): <br/>
113 <input type="text" name="src" value=""/></p>
114 </form>
115 <h1>Overview of
116 <xsl:element name="a">
117 <xsl:attribute name="href">
118 <xsl:text>http://packages.debian.org/src:</xsl:text>
119 <xsl:value-of select="$package"/>
120 </xsl:attribute>
121 <xsl:value-of select="$package"/>
122 </xsl:element>
123 source package</h1>
124
125 <table class="containertable">
126 <tr class="containerrow" valign="top">
127 <td class="containercell">
128 <!-- LEFT SIDE -->
129 <table class="lefttable">
130 <tr class="titlerow">
131 <td class="titlecell" colspan="2">
132 General Information
133 </td></tr>
134 <tr class="normalrow">
135 <td class="labelcell">Last version</td>
136 <td class="contentcell"><xsl:value-of select="version"/></td>
137 </tr>
138 <xsl:if test="@release!='unstable'">
139 <tr class="normalrow">
140 <td class="labelcell">Distribution</td>
141 <td class="contentcell"><xsl:value-of select="@release"/></td>
142 </tr>
143 </xsl:if>
144 <tr class="normalrow">
145 <td class="labelcell">Maintainer</td>
146 <td class="contentcell">
147 <xsl:element name="a">
148 <xsl:attribute name="href">
149 <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
150 <xsl:call-template name="escape-name">
151 <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>
152 </xsl:call-template>
153 </xsl:attribute>
154 <xsl:value-of select="maintainer/name"/>
155 </xsl:element>
156 [<a class="email" href="mailto:{maintainer/email}">mail</a>]
157 </td>
158 </tr>
159 <tr class="normalrow">
160 <td class="labelcell"><a href="http://www.debian.org/doc/manuals/developers-reference/ch-pkgs.en.html#s-collaborative-maint">Co-Maintainers</a></td>
161 <td class="contentcell">
162 <xsl:if test="uploaders">
163 <xsl:for-each select="uploaders/item">
164 <a class="email" href="http://qa.debian.org/developer.php?login={email}"><xsl:value-of select="name"/></a> [<a class="email" href="mailto:{email}">mail</a>]<br/>
165 </xsl:for-each>
166 </xsl:if>
167 <xsl:if test="not(uploaders)">
168 <a class="none" title="You should find some co-maintainers ..." name="fake">None</a>
169 </xsl:if>
170 </td></tr>
171 <tr class="normalrow">
172 <td class="labelcell">Standards-Version</td>
173 <td class="contentcell"><xsl:value-of select="standards-version"/></td>
174 </tr>
175 <tr class="normalrow">
176 <td class="labelcell">Priority &amp; Section</td>
177 <td class="contentcell"><xsl:value-of select="priority"/> - <xsl:value-of select="section"/></td>
178 </tr>
179 <xsl:if test="architecture!='any' and architecture!='all'">
180 <tr class="normalrow">
181 <td class="labelcell">Architecture</td>
182 <td class="contentcell"><xsl:value-of select="architecture"/></td>
183 </tr>
184 </xsl:if>
185
186 <tr class="titlerow">
187 <td class="titlecell" colspan="2">
188 Bugs Count
189 </td></tr>
190 <tr class="normalrow">
191 <td class="labelcell">All bugs</td>
192 <td class="contentcell">
193 <xsl:element name="a">
194 <xsl:attribute name="href">
195 <xsl:text>http://bugs.debian.org/src:</xsl:text>
196 <xsl:call-template name="escape-name">
197 <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
198 </xsl:call-template>
199 </xsl:attribute>
200 <xsl:if test="$hasother">
201 <xsl:value-of select="$other/bugs/@all"/>
202 </xsl:if>
203 </xsl:element>
204 </td>
205 </tr>
206 <tr class="normalrow">
207 <td class="labelcell">Release Critical</td>
208 <td class="contentcell">
209 <xsl:element name="a">
210 <xsl:attribute name="href">
211 <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
212 <xsl:call-template name="escape-name">
213 <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
214 </xsl:call-template>
215 <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=critical&amp;sev-inc=grave&amp;sev-inc=serious</xsl:text>
216 </xsl:attribute>
217 <xsl:if test="$hasother">
218 <xsl:value-of select="$other/bugs/@rc"/>
219 </xsl:if>
220 </xsl:element>
221 </td>
222 </tr>
223 <tr class="normalrow">
224 <td class="labelcell">Important and Normal</td>
225 <td class="contentcell">
226 <xsl:element name="a">
227 <xsl:attribute name="href">
228 <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
229 <xsl:call-template name="escape-name">
230 <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
231 </xsl:call-template>
232 <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=important&amp;sev-inc=normal</xsl:text>
233 </xsl:attribute>
234 <xsl:if test="$hasother">
235 <xsl:value-of select="$other/bugs/@normal"/>
236 </xsl:if>
237 </xsl:element>
238 </td>
239 </tr>
240 <tr class="normalrow">
241 <td class="labelcell">Minor and Wishlist</td>
242 <td class="contentcell">
243 <xsl:element name="a">
244 <xsl:attribute name="href">
245 <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
246 <xsl:call-template name="escape-name">
247 <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
248 </xsl:call-template>
249 <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=minor&amp;sev-inc=wishlist</xsl:text>
250 </xsl:attribute>
251 <xsl:if test="$hasother">
252 <xsl:value-of select="$other/bugs/@wishlist"/>
253 </xsl:if>
254 </xsl:element>
255 </td>
256 </tr>
257 <tr class="normalrow">
258 <td class="labelcell">Fixed and Pending</td>
259 <td class="contentcell">
260 <xsl:element name="a">
261 <xsl:attribute name="href">
262 <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
263 <xsl:call-template name="escape-name">
264 <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
265 </xsl:call-template>
266 <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
267 </xsl:attribute>
268 <xsl:if test="$hasother">
269 <xsl:value-of select="$other/bugs/@fixed"/>
270 </xsl:if>
271 </xsl:element>
272 </td>
273 </tr>
274
275 <tr class="titlerow">
276 <td class="titlecell" colspan="2">
277 Subscription - <a class="titlelink" href="http://www.debian.org/doc/manuals/developers-reference/ch-resources.en.html#s-pkg-tracking-system">Package Tracking System</a>
278 </td></tr>
279 <tr class="normalrow">
280 <td class="labelcell">Subscribers count</td>
281 <td class="contentcell"><xsl:if test="$hasother">
282 <xsl:value-of select="$other/pts/@count"/>
283 </xsl:if></td>
284 </tr>
285 <tr class="normalrow">
286 <td class="contentcell" colspan="2">
287 <form method="post" action="/cgi-bin/pts.cgi">
288 <input type="hidden" name="package" value="{$package}"/>
289 <select name="what">
290 <option value="subscribe">Subscribe</option>
291 <option value="unsubscribe">Unsubscribe</option>
292 <option value="advanced">Advanced mode</option>
293 </select>
294 <input type="text" name="email" size="15" value="your email" onFocus="if(email.value=='your email'){{email.value=''}}"/>
295 <input type="submit" name="submit" value="Send"/>
296 </form>
297 </td>
298 </tr>
299
300 <tr class="titlerow">
301 <td class="titlecell" colspan="2">
302 Binary Package(s)
303 </td></tr>
304 <tr class="normalrow">
305 <td class="normalcell" colspan="2" style="text-align: left">
306 <ul>
307 <xsl:for-each select="binary/item">
308 <xsl:sort select="text()"/>
309 <xsl:variable name="pkg" select="text()"/>
310 <li>
311 <a href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>
312 <span style="font-size: 70%">
313 (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:
314
315 <xsl:element name="a">
316 <xsl:attribute name="title">critical, grave and serious</xsl:attribute>
317 <xsl:attribute name="href">
318 <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
319 <xsl:call-template name="escape-name">
320 <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
321 </xsl:call-template>
322 <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=critical&amp;sev-inc=grave&amp;sev-inc=serious</xsl:text>
323 </xsl:attribute>
324 <xsl:value-of select="$other/bugs/item[@name=$pkg]/@rc"/>
325 </xsl:element>,
326
327 <xsl:element name="a">
328 <xsl:attribute name="title">important and normal</xsl:attribute>
329 <xsl:attribute name="href">
330 <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
331 <xsl:call-template name="escape-name">
332 <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
333 </xsl:call-template>
334 <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=important&amp;sev-inc=normal</xsl:text>
335 </xsl:attribute>
336 <xsl:value-of select="$other/bugs/item[@name=$pkg]/@normal"/>
337 </xsl:element>,
338
339 <xsl:element name="a">
340 <xsl:attribute name="title">wishlist and minor</xsl:attribute>
341 <xsl:attribute name="href">
342 <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
343 <xsl:call-template name="escape-name">
344 <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
345 </xsl:call-template>
346 <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=minor&amp;sev-inc=wishlist</xsl:text>
347 </xsl:attribute>
348 <xsl:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/>
349 </xsl:element>,
350
351 <xsl:element name="a">
352 <xsl:attribute name="title">pending and fixed</xsl:attribute>
353 <xsl:attribute name="href">
354 <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
355 <xsl:call-template name="escape-name">
356 <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
357 </xsl:call-template>
358 <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
359 </xsl:attribute>
360 <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>
361 </xsl:element>)
362 </span>
363 </li>
364 </xsl:for-each>
365 </ul></td></tr>
366
367 <tr class="titlerow">
368 <td class="titlecell" colspan="2">
369 Available versions
370 </td></tr>
371
372 <!-- oldstable -->
373 <xsl:if test="$hasoldstable">
374 <tr class="normalrow">
375 <td class="labelcell"><a href="http://www.debian.org/releases/woody/">Oldstable</a></td>
376 <td class="contentcell">
377 <xsl:value-of select="document(concat('../base/', $dir, '/oldstable.xml'))/source/version"/>
378 </td>
379 </tr>
380 </xsl:if>
381 <xsl:if test="$hasoldstable-security">
382 <tr class="normalrow">
383 <td class="labelcell"><small>Oldstable Security Updates</small></td>
384 <td class="contentcell">
385 <xsl:value-of select="document(concat('../base/', $dir, '/oldstable-security.xml'))/source/version"/>
386 </td>
387 </tr>
388 </xsl:if>
389
390 <!-- stable -->
391 <xsl:if test="$hasstable">
392 <tr class="normalrow">
393 <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>
394 <td class="contentcell">
395 <xsl:value-of select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/>
396 </td>
397 </tr>
398 </xsl:if>
399 <xsl:if test="$hasstable-security">
400 <tr class="normalrow">
401 <td class="labelcell"><small>Stable Security Updates</small></td>
402 <td class="contentcell">
403 <xsl:value-of select="document(concat('../base/', $dir, '/stable-security.xml'))/source/version"/>
404 </td>
405 </tr>
406 </xsl:if>
407 <xsl:if test="$hass-p-u">
408 <tr class="normalrow">
409 <td class="labelcell"><small>Stable Proposed Updates</small></td>
410 <td class="contentcell">
411 <xsl:value-of select="document(concat('../base/', $dir, '/s-p-u.xml'))/source/version"/>
412 </td>
413 </tr>
414 </xsl:if>
415
416 <!-- testing -->
417 <xsl:if test="$hastesting">
418 <tr class="normalrow">
419 <td class="labelcell"><a href="http://www.debian.org/releases/testing/">Testing</a></td>
420 <td class="contentcell">
421 <xsl:value-of select="document(concat('../base/', $dir, '/testing.xml'))/source/version"/>
422 </td>
423 </tr>
424 </xsl:if>
425 <xsl:if test="$hastesting-security">
426 <tr class="normalrow">
427 <td class="labelcell"><small>Testing Security Updates</small></td>
428 <td class="contentcell">
429 <xsl:value-of select="document(concat('../base/', $dir, '/testing-security.xml'))/source/version"/>
430 </td>
431 </tr>
432 </xsl:if>
433 <xsl:if test="$hast-p-u">
434 <tr class="normalrow">
435 <td class="labelcell"><small>Testing Proposed Updates</small></td>
436 <td class="contentcell">
437 <xsl:value-of select="document(concat('../base/', $dir, '/t-p-u.xml'))/source/version"/>
438 </td>
439 </tr>
440 </xsl:if>
441
442 <!-- unstable -->
443 <xsl:if test="$hasunstable">
444 <tr class="normalrow">
445 <td class="labelcell">Unstable</td>
446 <td class="contentcell">
447 <xsl:value-of select="document(concat('../base/', $dir, '/unstable.xml'))/source/version"/>
448 </td>
449 </tr>
450 </xsl:if>
451
452 <!-- experimental -->
453 <xsl:if test="$hasexperimental">
454 <tr class="normalrow">
455 <td class="labelcell">Experimental</td>
456 <td class="contentcell">
457 <xsl:value-of select="document(concat('../base/', $dir, '/experimental.xml'))/source/version"/>
458 </td>
459 </tr>
460 </xsl:if>
461
462 <!-- secure-testing -->
463 <xsl:if test="$hassecure-testing">
464 <tr class="normalrow">
465 <td class="labelcell">Secure testing</td>
466 <td class="contentcell">
467 <xsl:value-of select="document(concat('../base/', $dir, '/secure-testing.xml'))/source/version"/>
468 </td>
469 </tr>
470 </xsl:if>
471
472 <!-- volatile -->
473 <xsl:if test="$hasvolatile">
474 <tr class="normalrow">
475 <td class="labelcell">Volatile</td>
476 <td class="contentcell">
477 <xsl:value-of select="document(concat('../base/', $dir, '/volatile.xml'))/source/version"/>
478 </td>
479 </tr>
480 </xsl:if>
481
482 <!-- Patches list [FG] -->
483 <xsl:if test="$other/@patches='yes'">
484 <tr class="titlerow">
485 <td class="titlecell" colspan="2">
486 Patches
487 </td></tr>
488 <tr>
489 <td class="contentcell" colspan="2" style="text-align: left">
490 <ul>
491 <xsl:for-each select="$other/patches/item">
492 <li>
493 <a href="{$other/patches/item/@url}">Patch from <xsl:value-of select="$other/patches/item/@distro"/> for version <xsl:value-of select="$other/patches/item/@version"/></a>
494 </li>
495 </xsl:for-each>
496 <xsl:if test="$other/bugs/@patch!='0'">
497 <li>
498 <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data={$package}&amp;include=patch&amp;exclude=pending">Patches from BTS (<xsl:value-of select="$other/bugs/@patch"/>)</a>
499 </li>
500 </xsl:if>
501 </ul>
502 </td>
503 </tr>
504 </xsl:if>
505
506
507 <tr class="titlerow">
508 <td class="titlecell" colspan="2">
509 Other links
510 </td></tr>
511 <tr>
512 <td class="contentcell" colspan="2" style="text-align: left">
513 <ul>
514 <li>
515 <xsl:element name="a">
516 <xsl:attribute name="href">
517 <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
518 <xsl:value-of select="directory"/>
519 <xsl:text>/</xsl:text>
520 <xsl:call-template name="escape-name">
521 <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
522 </xsl:call-template>
523 <xsl:text>_</xsl:text>
524 <xsl:call-template name="escape-name">
525 <xsl:with-param name="text">
526 <xsl:call-template name="strip-epoch">
527 <xsl:with-param name="version">
528 <xsl:value-of select="version"/>
529 </xsl:with-param>
530 </xsl:call-template>
531 </xsl:with-param>
532 </xsl:call-template>
533 <xsl:text>/changelog</xsl:text>
534 </xsl:attribute>
535 <xsl:text>Changelog</xsl:text>
536 </xsl:element>
537 /
538 <xsl:element name="a">
539 <xsl:attribute name="href">
540 <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
541 <xsl:value-of select="directory"/>
542 <xsl:text>/</xsl:text>
543 <xsl:call-template name="escape-name">
544 <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
545 </xsl:call-template>
546 <xsl:text>_</xsl:text>
547 <xsl:call-template name="escape-name">
548 <xsl:with-param name="text">
549 <xsl:call-template name="strip-epoch">
550 <xsl:with-param name="version">
551 <xsl:value-of select="version"/>
552 </xsl:with-param>
553 </xsl:call-template>
554 </xsl:with-param>
555 </xsl:call-template>
556 <xsl:text>/</xsl:text>
557 <xsl:call-template name="escape-name">
558 <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
559 </xsl:call-template>
560 <xsl:text>.copyright</xsl:text>
561 </xsl:attribute>
562 <xsl:text>Copyright</xsl:text>
563 </xsl:element>
564 </li>
565 <xsl:if test="architecture!='all'">
566 <li>
567 <xsl:element name="a">
568 <xsl:attribute name="href">
569 <xsl:text>http://buildd.debian.org/build.php?pkg=</xsl:text>
570 <xsl:call-template name="escape-name">
571 <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
572 </xsl:call-template>
573 </xsl:attribute>
574 <xsl:text>Buildd logs</xsl:text>
575 </xsl:element>
576 </li>
577 </xsl:if>
578 <!-- DISABLED until ddtp.debian.org is back up
579 <li>
580 <xsl:element name="a">
581 <xsl:attribute name="href">
582 <xsl:text>http://ddtp.debian.org/stats/pdesc/report.cgi?package=</xsl:text>
583 <xsl:call-template name="escape-name">
584 <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
585 </xsl:call-template>
586 <xsl:text>&amp;lang=all&amp;type=src-drvbin&amp;subword=0</xsl:text>
587 </xsl:attribute>
588 Description's translations (DDTP)
589 </xsl:element>
590 </li>
591 <xsl:if test="$other/@debconf='yes'">
592 <li>
593 <xsl:element name="a">
594 <xsl:attribute name="href">
595 <xsl:text>http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&amp;package=</xsl:text>
596 <xsl:call-template name="escape-name">
597 <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
598 </xsl:call-template>
599 </xsl:attribute>
600 Debconf templates's translations (DDTP)
601 </xsl:element>
602 </li>
603 </xsl:if>
604 -->
605 <xsl:if test="$hasunstable and $other/debcheck/@unstable='yes'">
606 <li>
607 <xsl:element name="a">
608 <xsl:attribute name="href">
609 <xsl:text>http://qa.debian.org/debcheck.php?dist=unstable&amp;package=</xsl:text>
610 <xsl:call-template name="escape-name">
611 <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
612 </xsl:call-template>
613 </xsl:attribute>
614 <xsl:text>Debcheck on unstable</xsl:text>
615 </xsl:element>
616 </li>
617 </xsl:if>
618 <xsl:if test="$hastesting and $other/debcheck/@testing='yes'">
619 <li>
620 <xsl:element name="a">
621 <xsl:attribute name="href">
622 <xsl:text>http://qa.debian.org/debcheck.php?dist=testing&amp;package=</xsl:text>
623 <xsl:call-template name="escape-name">
624 <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
625 </xsl:call-template>
626 </xsl:attribute>
627 <xsl:text>Debcheck on testing</xsl:text>
628 </xsl:element>
629 </li>
630 </xsl:if>
631 <xsl:if test="$hasstable and $other/debcheck/@stable='yes'">
632 <li>
633 <xsl:element name="a">
634 <xsl:attribute name="href">
635 <xsl:text>http://qa.debian.org/debcheck.php?dist=stable&amp;package=</xsl:text>
636 <xsl:call-template name="escape-name">
637 <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
638 </xsl:call-template>
639 </xsl:attribute>
640 <xsl:text>Debcheck on stable</xsl:text>
641 </xsl:element>
642 </li>
643 </xsl:if>
644 <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->
645 <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-/()&#34; ', &quot;'&quot;)"/>
646 <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '____________________')"/>
647 <li><a href="http://lintian.debian.org/reports/m{$_name}.html#{$package}">Lintian report</a></li>
648 <li>
649 <xsl:element name="a">
650 <xsl:attribute name="href">
651 <xsl:text>http://qa.debian.org/developer.php?popcon=</xsl:text>
652 <xsl:call-template name="escape-name">
653 <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
654 </xsl:call-template>
655 </xsl:attribute>
656 <xsl:text>Popcon stats</xsl:text>
657 </xsl:element>
658 </li>
659 </ul>
660 </td>
661 </tr>
662
663 <tr class="titlerow">
664 <td class="titlecell" colspan="2">
665 <xsl:element name="a">
666 <xsl:attribute name="class">
667 <xsl:text>titlelink</xsl:text>
668 </xsl:attribute>
669 <xsl:attribute name="href">
670 <xsl:call-template name="mirror"/>
671 <xsl:text>/</xsl:text>
672 <xsl:value-of select="directory"/>
673 <xsl:text>/</xsl:text>
674 </xsl:attribute>
675 <xsl:text>Source files</xsl:text>
676 </xsl:element>
677 </td></tr>
678 <tr class="normalrow">
679 <td class="normalcell" colspan="2" style="text-align: left">
680 <ul>
681 <xsl:for-each select="files/item">
682 <li>
683 <xsl:element name="a">
684 <xsl:attribute name="class">srcfile</xsl:attribute>
685 <xsl:attribute name="href">
686 <xsl:call-template name="mirror"/>
687 <xsl:text>/</xsl:text>
688 <xsl:value-of select="../../directory"/>
689 <xsl:text>/</xsl:text>
690 <xsl:value-of select="filename"/>
691 </xsl:attribute>
692 <xsl:attribute name="title">
693 <xsl:value-of select="size"/>
694 <xsl:text> bytes</xsl:text>
695 </xsl:attribute>
696 <xsl:value-of select="filename"/>
697 </xsl:element>
698 </li>
699 </xsl:for-each>
700 </ul></td></tr>
701
702 </table>
703 <!-- END LEFT SIDE -->
704 </td><td class="containercell">
705 <!-- RIGHT SIDE -->
706 <table class="righttable">
707
708
709 <!-- Todo list -->
710 <xsl:variable name="todo">
711 <xsl:if test="@nmu">
712 <li>Incorporate and acknowledge the changes from the non maintainer upload.</li>
713 </xsl:if>
714 <xsl:if test="not(uploaders)and(priority='standard' or priority='required' or priority='important')">
715 <li>The package is of priority standard or higher, you should really find some co-maintainers.</li>
716 </xsl:if>
717 <xsl:if test="not(starts-with(standards-version, $lastsv))">
718 <li>The package should be updated to follow the last version of
719 <a href="http://www.debian.org/doc/debian-policy/">Debian Policy</a> (Standards-Version
720 <xsl:value-of select="$lastsv"/> instead of
721 <xsl:value-of select="standards-version"/>).</li>
722 </xsl:if>
723 <xsl:if test="$hasother">
724 <xsl:for-each select="$other/todo/item">
725 <xsl:call-template name="outputitem"/>
726 </xsl:for-each>
727 <!-- new upstream version goes in todo [FG] -->
728 <xsl:if test="$other/@watch='yes' and $other/watch/@new!='0'">
729 <li>A new upstream version was found:
730 (<xsl:value-of select="$other/watch/@new"/>). <a href="{$other/watch/@url}"><xsl:value-of select="$other/watch/@url"/></a></li>
731 </xsl:if>
732 <xsl:if test="$other/bugs/@patch!='0'">
733 <li>The Bug Tracking System contains <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data={$package}&amp;include=patch&amp;exclude=pending"><xsl:value-of select="$other/bugs/@patch"/> patch(es)</a>, you should include it(them).</li>
734 </xsl:if>
735 </xsl:if>
736 </xsl:variable>
737 <xsl:if test="count($todo)>0 and string($todo)!=''">
738 <tr class="titlerow">
739 <td class="titlecell" style="background-color: blue">
740 Todo
741 </td></tr>
742 <tr class="normalrow">
743 <td class="contentcell2">
744 <ul>
745 <xsl:copy-of select="$todo"/>
746 </ul>
747 </td>
748 </tr>
749 </xsl:if>
750
751 <!-- List of problems -->
752 <xsl:variable name="problems">
753 <xsl:if test="$hasexcuse and document(concat('../base/', $dir, '/excuse.xml'))/excuse/@problematic">
754 <li>The package has not yet entered <a
755 href="http://ftp-master.debian.org/testing/update_excuses.html.gz#{$package}">testing</a>
756 even though the <xsl:value-of select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/@limit"/>-day
757 delay is over.
758 <xsl:element name="a">
759 <xsl:attribute name="href">
760 <xsl:text>http://bjorn.haxx.se/debian/testing.pl?package=</xsl:text>
761 <xsl:call-template name="escape-name">
762 <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
763 </xsl:call-template>
764 </xsl:attribute>
765 Check why
766 </xsl:element>
767 .</li>
768 </xsl:if>
769 <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">
770 <li>The package is severly out of date with respect to the Debian
771 Policy. Latest version is <xsl:value-of select="$lastsv"/>
772 and your package only follows
773 <xsl:value-of select="standards-version"/>...</li>
774 </xsl:if>
775 <xsl:if test="$hasother">
776
777 <!-- Override disparity handling. [JvW] -->
778 <xsl:if test="$other/@override='yes'">
779 <xsl:for-each select="$other/override/group">
780 <li>There were override disparities found in suite <xsl:value-of
781 select="@suite"/>:
782 <ul>
783 <xsl:for-each select="disparity">
784 <li><xsl:value-of select="text()"/></li>
785 </xsl:for-each>
786 </ul>
787 </li>
788 </xsl:for-each>
789 </xsl:if>
790
791 <!-- Wnpp handling. [PvR] -->
792 <xsl:if test="$other/@wnpp='yes'">
793 <li>
794 <xsl:choose>
795 <xsl:when test="$other/wnpp/@type='O'">
796 <span style="font-weight: bold">This package has been orphaned</span>.
797 This means that it does not have a real maintainer at the
798 moment. Please consider adopting this package if you are interested in it.
799 </xsl:when>
800 <xsl:when test="$other/wnpp/@type='ITA'">
801 This package has been orphaned, but someone intends to maintain it.
802 </xsl:when>
803 <xsl:when test="$other/wnpp/@type='RFA'">
804 The current maintainer is looking for someone who can take over
805 maintenance of this package. If you are interested in this package,
806 please consider taking it over. Alternatively you may
807 want to be co-maintainer in order to help the actual maintainer.
808 </xsl:when>
809 <xsl:when test="$other/wnpp/@type='RFH'">
810 The current maintainer is looking for someone who can help with the
811 maintenance of this package. If you are interested in this package,
812 please consider helping out. One way you can help is offer to be a
813 co-maintainer or triage bugs in the bts.
814 </xsl:when>
815 <xsl:when test="$other/wnpp/@type='ITP'">
816 The WNPP database contains an ITP (Intent To Package) entry for
817 this package. This is probably an error, as it has already been
818 packaged.
819 </xsl:when>
820 <xsl:when test="$other/wnpp/@type='RFP'">
821 The WNPP database contains an RFP (Request For Package) entry
822 for this package. This is probably an error, as it has already
823 been packaged.
824 </xsl:when>
825 <xsl:when test="$other/wnpp/@type='RM'">
826 <span style="font-weight: bold">This package has been requested to be
827 removed</span>.
828 This means that, when this request gets processed by an ftp-master, this
829 package will no longer be in unstable, and will automatically be removed
830 from testing too afterwards. If for some reason you want keep this
831 package in unstable, please discuss so in the bug.
832 </xsl:when>
833 <xsl:otherwise>
834 The WNPP database contains an entry for this package,
835 but it is unclear what kind of entry it is. This is probably an error.
836 </xsl:otherwise>
837 </xsl:choose>
838 <xsl:variable name="bn" select="$other/wnpp/@bugnumber"/>
839 Please see bug number <a href="http://bugs.debian.org/{$bn}">
840 #<xsl:value-of select="$bn"/></a> for more information.
841 </li>
842 </xsl:if>
843
844 <!-- uscan output if present [FG] -->
845 <xsl:if test="$other/@watch='yes'">
846 <li>
847 <xsl:if test="$other/watch/@warning!=''">
848 uscan had problems while searching for a new upstream version: <xsl:value-of select="$other/watch/@warning"/>
849 </xsl:if>
850 </li>
851 </xsl:if>
852
853 <!-- Misc problems reported -->
854 <xsl:for-each select="$other/problems/item">
855 <xsl:call-template name="outputitem"/>
856 </xsl:for-each>
857 </xsl:if>
858 </xsl:variable>
859 <xsl:if test="count($problems)>0 and string($problems)!=''">
860 <tr class="titlerow">
861 <td class="titlecell" style="background-color: red">
862 Problems
863 </td></tr>
864 <tr class="normalrow">
865 <td class="contentcell2">
866 <ul><xsl:copy-of select="$problems"/></ul>
867 </td>
868 </tr>
869 </xsl:if>
870
871 <xsl:if test="$hasexcuse">
872 <tr class="titlerow">
873 <td class="titlecell">
874 Testing Status
875 </td></tr>
876 <tr class="normalrow">
877 <td class="contentcell2" style="text-align: left">
878 <ul>
879 <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
880 <xsl:call-template name="outputitem"/>
881 </xsl:for-each>
882 </ul>
883 </td>
884 </tr>
885 </xsl:if>
886
887
888 <xsl:variable name="static">
889 <xsl:if test="$hasnews">
890 <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">
891 <xsl:call-template name="outputitem"/>
892 </xsl:for-each>
893 </xsl:if>
894 </xsl:variable>
895 <xsl:if test="count($static)>0 and string($static)!=''">
896 <tr class="titlerow">
897 <td class="titlecell">
898 Static Information
899 </td></tr>
900 <tr class="normalrow">
901 <td class="contentcell2">
902 <ul><xsl:copy-of select="$static"/></ul>
903 </td>
904 </tr>
905 </xsl:if>
906
907 <xsl:variable name="news">
908 <xsl:if test="$hasnews">
909 <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">
910 <xsl:call-template name="outputitem"/>
911 </xsl:for-each>
912 </xsl:if>
913 </xsl:variable>
914 <xsl:if test="count($news)>0 and string($news)!=''">
915 <tr class="titlerow">
916 <td class="titlecell">
917 Latest News
918 </td></tr>
919 <tr class="normalrow">
920 <td class="contentcell2">
921 <ul><xsl:copy-of select="$news"/></ul>
922 </td>
923 </tr>
924 </xsl:if>
925
926 </table>
927 <!-- END RIGHT SIDE -->
928 </td></tr>
929 </table>
930 <hr/>
931 Debian Package Tracking System - Copyright 2002-2005 Raphaël Hertzog<br/>
932 Report problems to the <a href="http://bugs.debian.org/qa.debian.org"
933 >qa.debian.org pseudopackage</a><br/>
934 Last modified : <xsl:value-of select="$date"/>
935 </body>
936 </html>
937 </xsl:template>
938
939 </xsl:stylesheet>

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.5