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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5