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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5