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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5