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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5