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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5