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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5