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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5