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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5