/[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 1315 - (hide annotations) (download) (as text)
Thu Mar 23 17:13:25 2006 UTC (7 years, 2 months ago) by hertzog
File MIME type: application/xml
File size: 36943 byte(s)
Use latest version instead of last version
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 1303 <xsl:choose>
127     <xsl:when test="$removed='yes'">
128     <!-- REMOVED PACKAGE -->
129 hertzog 1305 <p>This package is no longer part of any Debian distribution. Thus you won't
130     find much information here. The old news is kept for historic purpose only.</p>
131 hertzog 1303
132     <table class="righttable">
133     <xsl:variable name="static">
134     <xsl:if test="$hasnews">
135     <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">
136     <xsl:call-template name="outputitem"/>
137     </xsl:for-each>
138     </xsl:if>
139     </xsl:variable>
140     <xsl:if test="count($static)>0 and string($static)!=''">
141     <tr class="titlerow">
142     <td class="titlecell">
143     Static Information
144     </td></tr>
145     <tr class="normalrow">
146     <td class="contentcell2">
147     <ul><xsl:copy-of select="$static"/></ul>
148     </td>
149     </tr>
150     </xsl:if>
151    
152     <xsl:variable name="news">
153     <xsl:if test="$hasnews">
154     <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">
155     <xsl:call-template name="outputitem"/>
156     </xsl:for-each>
157     </xsl:if>
158     </xsl:variable>
159     <xsl:if test="count($news)>0 and string($news)!=''">
160     <tr class="titlerow">
161     <td class="titlecell">
162     Latest News
163     </td></tr>
164     <tr class="normalrow">
165     <td class="contentcell2">
166     <ul><xsl:copy-of select="$news"/></ul>
167     </td>
168     </tr>
169     </xsl:if>
170     </table>
171    
172     <!-- END REMOVED PACKAGE -->
173     </xsl:when>
174     <xsl:otherwise>
175     <!-- NON REMOVED PACKAGE -->
176    
177 hertzog 347 <table class="containertable">
178     <tr class="containerrow" valign="top">
179     <td class="containercell">
180     <!-- LEFT SIDE -->
181     <table class="lefttable">
182     <tr class="titlerow">
183     <td class="titlecell" colspan="2">
184     General Information
185     </td></tr>
186     <tr class="normalrow">
187 hertzog 1315 <td class="labelcell">Latest version</td>
188 hertzog 347 <td class="contentcell"><xsl:value-of select="version"/></td>
189     </tr>
190     <xsl:if test="@release!='unstable'">
191     <tr class="normalrow">
192     <td class="labelcell">Distribution</td>
193     <td class="contentcell"><xsl:value-of select="@release"/></td>
194     </tr>
195     </xsl:if>
196     <tr class="normalrow">
197     <td class="labelcell">Maintainer</td>
198 hertzog 774 <td class="contentcell">
199     <xsl:element name="a">
200     <xsl:attribute name="href">
201     <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
202     <xsl:call-template name="escape-name">
203     <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>
204     </xsl:call-template>
205     </xsl:attribute>
206     <xsl:value-of select="maintainer/name"/>
207     </xsl:element>
208     [<a class="email" href="mailto:{maintainer/email}">mail</a>]
209     </td>
210 hertzog 347 </tr>
211     <tr class="normalrow">
212 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>
213 hertzog 347 <td class="contentcell">
214     <xsl:if test="uploaders">
215     <xsl:for-each select="uploaders/item">
216 jeroen 1170 <xsl:element name="a">
217     <xsl:attribute name="href">
218     <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
219     <xsl:call-template name="escape-name">
220     <xsl:with-param name="text"><xsl:value-of select="email"/></xsl:with-param>
221     </xsl:call-template>
222     </xsl:attribute>
223     <xsl:value-of select="name"/>
224     </xsl:element>
225     [<a class="email" href="mailto:{email}">mail</a>]<br/>
226 hertzog 347 </xsl:for-each>
227     </xsl:if>
228     <xsl:if test="not(uploaders)">
229     <a class="none" title="You should find some co-maintainers ..." name="fake">None</a>
230     </xsl:if>
231     </td></tr>
232     <tr class="normalrow">
233     <td class="labelcell">Standards-Version</td>
234     <td class="contentcell"><xsl:value-of select="standards-version"/></td>
235     </tr>
236 hertzog 603 <tr class="normalrow">
237     <td class="labelcell">Priority &amp; Section</td>
238     <td class="contentcell"><xsl:value-of select="priority"/> - <xsl:value-of select="section"/></td>
239     </tr>
240 hertzog 529 <xsl:if test="architecture!='any' and architecture!='all'">
241     <tr class="normalrow">
242     <td class="labelcell">Architecture</td>
243     <td class="contentcell"><xsl:value-of select="architecture"/></td>
244     </tr>
245     </xsl:if>
246 hertzog 347
247     <tr class="titlerow">
248     <td class="titlecell" colspan="2">
249     Bugs Count
250     </td></tr>
251     <tr class="normalrow">
252     <td class="labelcell">All bugs</td>
253     <td class="contentcell">
254 hertzog 764 <xsl:element name="a">
255     <xsl:attribute name="href">
256     <xsl:text>http://bugs.debian.org/src:</xsl:text>
257     <xsl:call-template name="escape-name">
258     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
259     </xsl:call-template>
260     </xsl:attribute>
261     <xsl:if test="$hasother">
262     <xsl:value-of select="$other/bugs/@all"/>
263     </xsl:if>
264     </xsl:element>
265 hertzog 347 </td>
266     </tr>
267     <tr class="normalrow">
268     <td class="labelcell">Release Critical</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-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>
277     </xsl:attribute>
278     <xsl:if test="$hasother">
279     <xsl:value-of select="$other/bugs/@rc"/>
280     </xsl:if>
281     </xsl:element>
282 hertzog 347 </td>
283     </tr>
284     <tr class="normalrow">
285     <td class="labelcell">Important and Normal</td>
286     <td class="contentcell">
287 hertzog 530 <xsl:element name="a">
288     <xsl:attribute name="href">
289     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
290     <xsl:call-template name="escape-name">
291     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
292     </xsl:call-template>
293     <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>
294     </xsl:attribute>
295     <xsl:if test="$hasother">
296     <xsl:value-of select="$other/bugs/@normal"/>
297     </xsl:if>
298     </xsl:element>
299 hertzog 347 </td>
300     </tr>
301     <tr class="normalrow">
302     <td class="labelcell">Minor and Wishlist</td>
303     <td class="contentcell">
304 hertzog 530 <xsl:element name="a">
305     <xsl:attribute name="href">
306     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
307     <xsl:call-template name="escape-name">
308     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
309     </xsl:call-template>
310     <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>
311     </xsl:attribute>
312     <xsl:if test="$hasother">
313     <xsl:value-of select="$other/bugs/@wishlist"/>
314     </xsl:if>
315     </xsl:element>
316 hertzog 347 </td>
317     </tr>
318     <tr class="normalrow">
319     <td class="labelcell">Fixed and Pending</td>
320     <td class="contentcell">
321 hertzog 530 <xsl:element name="a">
322     <xsl:attribute name="href">
323     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
324     <xsl:call-template name="escape-name">
325     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
326     </xsl:call-template>
327     <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
328     </xsl:attribute>
329     <xsl:if test="$hasother">
330     <xsl:value-of select="$other/bugs/@fixed"/>
331     </xsl:if>
332     </xsl:element>
333 hertzog 347 </td>
334     </tr>
335    
336     <tr class="titlerow">
337     <td class="titlecell" colspan="2">
338 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>
339 hertzog 347 </td></tr>
340     <tr class="normalrow">
341     <td class="labelcell">Subscribers count</td>
342     <td class="contentcell"><xsl:if test="$hasother">
343     <xsl:value-of select="$other/pts/@count"/>
344     </xsl:if></td>
345     </tr>
346     <tr class="normalrow">
347     <td class="contentcell" colspan="2">
348 hertzog 382 <form method="post" action="/cgi-bin/pts.cgi">
349 djpig 1091 <p>
350 hertzog 347 <input type="hidden" name="package" value="{$package}"/>
351     <select name="what">
352     <option value="subscribe">Subscribe</option>
353     <option value="unsubscribe">Unsubscribe</option>
354     <option value="advanced">Advanced mode</option>
355     </select>
356     <input type="text" name="email" size="15" value="your email" onFocus="if(email.value=='your email'){{email.value=''}}"/>
357     <input type="submit" name="submit" value="Send"/>
358 djpig 1091 </p>
359 hertzog 347 </form>
360     </td>
361     </tr>
362    
363     <tr class="titlerow">
364     <td class="titlecell" colspan="2">
365     Binary Package(s)
366     </td></tr>
367     <tr class="normalrow">
368     <td class="normalcell" colspan="2" style="text-align: left">
369 djpig 1085 <ul>
370 hertzog 347 <xsl:for-each select="binary/item">
371     <xsl:sort select="text()"/>
372     <xsl:variable name="pkg" select="text()"/>
373     <li>
374     <a href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>
375     <span style="font-size: 70%">
376     (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:
377 hertzog 530
378     <xsl:element name="a">
379     <xsl:attribute name="title">critical, grave and serious</xsl:attribute>
380     <xsl:attribute name="href">
381     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
382     <xsl:call-template name="escape-name">
383     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
384     </xsl:call-template>
385     <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>
386     </xsl:attribute>
387     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@rc"/>
388     </xsl:element>,
389    
390     <xsl:element name="a">
391     <xsl:attribute name="title">important and normal</xsl:attribute>
392     <xsl:attribute name="href">
393     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
394     <xsl:call-template name="escape-name">
395     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
396     </xsl:call-template>
397     <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>
398     </xsl:attribute>
399     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@normal"/>
400     </xsl:element>,
401    
402     <xsl:element name="a">
403     <xsl:attribute name="title">wishlist and minor</xsl:attribute>
404     <xsl:attribute name="href">
405     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
406     <xsl:call-template name="escape-name">
407     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
408     </xsl:call-template>
409     <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>
410     </xsl:attribute>
411     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/>
412     </xsl:element>,
413    
414     <xsl:element name="a">
415     <xsl:attribute name="title">pending and fixed</xsl:attribute>
416     <xsl:attribute name="href">
417     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
418     <xsl:call-template name="escape-name">
419     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
420     </xsl:call-template>
421     <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
422     </xsl:attribute>
423     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>
424     </xsl:element>)
425 hertzog 347 </span>
426     </li>
427     </xsl:for-each>
428 djpig 1085 </ul></td></tr>
429 hertzog 347
430     <tr class="titlerow">
431     <td class="titlecell" colspan="2">
432 jeroen 1027 Available versions
433 hertzog 347 </td></tr>
434 jeroen 1027
435     <!-- oldstable -->
436     <xsl:if test="$hasoldstable">
437 hertzog 347 <tr class="normalrow">
438 jeroen 1027 <td class="labelcell"><a href="http://www.debian.org/releases/woody/">Oldstable</a></td>
439 hertzog 347 <td class="contentcell">
440 jeroen 1027 <xsl:value-of select="document(concat('../base/', $dir, '/oldstable.xml'))/source/version"/>
441 hertzog 347 </td>
442     </tr>
443     </xsl:if>
444 jeroen 1021 <xsl:if test="$hasoldstable-security">
445     <tr class="normalrow">
446 jeroen 1027 <td class="labelcell"><small>Oldstable Security Updates</small></td>
447 jeroen 1021 <td class="contentcell">
448     <xsl:value-of select="document(concat('../base/', $dir, '/oldstable-security.xml'))/source/version"/>
449     </td>
450     </tr>
451     </xsl:if>
452 jeroen 1027
453     <!-- stable -->
454     <xsl:if test="$hasstable">
455     <tr class="normalrow">
456     <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>
457     <td class="contentcell">
458     <xsl:value-of select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/>
459     </td>
460     </tr>
461     </xsl:if>
462 hertzog 351 <xsl:if test="$hasstable-security">
463     <tr class="normalrow">
464 jeroen 1027 <td class="labelcell"><small>Stable Security Updates</small></td>
465 hertzog 351 <td class="contentcell">
466     <xsl:value-of select="document(concat('../base/', $dir, '/stable-security.xml'))/source/version"/>
467     </td>
468     </tr>
469     </xsl:if>
470 jeroen 1027 <xsl:if test="$hass-p-u">
471 hertzog 351 <tr class="normalrow">
472 jeroen 1027 <td class="labelcell"><small>Stable Proposed Updates</small></td>
473 hertzog 351 <td class="contentcell">
474 jeroen 1027 <xsl:value-of select="document(concat('../base/', $dir, '/s-p-u.xml'))/source/version"/>
475 hertzog 351 </td>
476     </tr>
477     </xsl:if>
478 jeroen 1027
479     <!-- testing -->
480 hertzog 347 <xsl:if test="$hastesting">
481     <tr class="normalrow">
482 hertzog 551 <td class="labelcell"><a href="http://www.debian.org/releases/testing/">Testing</a></td>
483 hertzog 347 <td class="contentcell">
484     <xsl:value-of select="document(concat('../base/', $dir, '/testing.xml'))/source/version"/>
485     </td>
486     </tr>
487     </xsl:if>
488 jeroen 1027 <xsl:if test="$hastesting-security">
489 hertzog 351 <tr class="normalrow">
490 jeroen 1027 <td class="labelcell"><small>Testing Security Updates</small></td>
491 hertzog 351 <td class="contentcell">
492 jeroen 1027 <xsl:value-of select="document(concat('../base/', $dir, '/testing-security.xml'))/source/version"/>
493 hertzog 351 </td>
494     </tr>
495     </xsl:if>
496 jeroen 1027 <xsl:if test="$hast-p-u">
497 jeroen 1021 <tr class="normalrow">
498 jeroen 1027 <td class="labelcell"><small>Testing Proposed Updates</small></td>
499 jeroen 1021 <td class="contentcell">
500 jeroen 1027 <xsl:value-of select="document(concat('../base/', $dir, '/t-p-u.xml'))/source/version"/>
501 jeroen 1021 </td>
502     </tr>
503     </xsl:if>
504 jeroen 1027
505 hertzog 1049 <!-- unstable -->
506 jeroen 1027 <xsl:if test="$hasunstable">
507 hertzog 347 <tr class="normalrow">
508 jeroen 1027 <td class="labelcell">Unstable</td>
509 hertzog 347 <td class="contentcell">
510 jeroen 1027 <xsl:value-of select="document(concat('../base/', $dir, '/unstable.xml'))/source/version"/>
511 hertzog 347 </td>
512     </tr>
513     </xsl:if>
514 jeroen 1027
515     <!-- experimental -->
516     <xsl:if test="$hasexperimental">
517 hertzog 351 <tr class="normalrow">
518 jeroen 1027 <td class="labelcell">Experimental</td>
519 hertzog 351 <td class="contentcell">
520 jeroen 1027 <xsl:value-of select="document(concat('../base/', $dir, '/experimental.xml'))/source/version"/>
521 hertzog 351 </td>
522     </tr>
523     </xsl:if>
524 jeroen 1027
525 hertzog 1090 <!-- secure-testing -->
526     <xsl:if test="$hassecure-testing">
527     <tr class="normalrow">
528     <td class="labelcell">Secure testing</td>
529     <td class="contentcell">
530     <xsl:value-of select="document(concat('../base/', $dir, '/secure-testing.xml'))/source/version"/>
531     </td>
532     </tr>
533     </xsl:if>
534    
535     <!-- volatile -->
536     <xsl:if test="$hasvolatile">
537     <tr class="normalrow">
538     <td class="labelcell">Volatile</td>
539     <td class="contentcell">
540     <xsl:value-of select="document(concat('../base/', $dir, '/volatile.xml'))/source/version"/>
541     </td>
542     </tr>
543     </xsl:if>
544    
545 hertzog 1049 <!-- Patches list [FG] -->
546     <xsl:if test="$other/@patches='yes'">
547     <tr class="titlerow">
548     <td class="titlecell" colspan="2">
549     Patches
550     </td></tr>
551     <tr>
552     <td class="contentcell" colspan="2" style="text-align: left">
553 djpig 1087 <ul>
554 hertzog 1049 <xsl:for-each select="$other/patches/item">
555     <li>
556     <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>
557     </li>
558     </xsl:for-each>
559     <xsl:if test="$other/bugs/@patch!='0'">
560     <li>
561 hertzog 1301 <xsl:element name="a">
562     <xsl:attribute name="href">
563     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
564     <xsl:call-template name="escape-name">
565     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
566     </xsl:call-template>
567     <xsl:text>&amp;include=patch&amp;exclude=pending</xsl:text>
568     </xsl:attribute>
569     Patches from BTS (<xsl:value-of select="$other/bugs/@patch"/>)
570     </xsl:element>
571 hertzog 1049 </li>
572     </xsl:if>
573 djpig 1087 </ul>
574 hertzog 1049 </td>
575     </tr>
576     </xsl:if>
577    
578    
579 hertzog 347 <tr class="titlerow">
580     <td class="titlecell" colspan="2">
581     Other links
582     </td></tr>
583     <tr>
584     <td class="contentcell" colspan="2" style="text-align: left">
585 djpig 1085 <ul>
586 jeroen 1026 <li>
587     <xsl:element name="a">
588     <xsl:attribute name="href">
589     <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
590     <xsl:value-of select="directory"/>
591     <xsl:text>/</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>_</xsl:text>
596     <xsl:call-template name="escape-name">
597 jeroen 1030 <xsl:with-param name="text">
598     <xsl:call-template name="strip-epoch">
599     <xsl:with-param name="version">
600     <xsl:value-of select="version"/>
601     </xsl:with-param>
602     </xsl:call-template>
603     </xsl:with-param>
604 jeroen 1026 </xsl:call-template>
605     <xsl:text>/changelog</xsl:text>
606     </xsl:attribute>
607     <xsl:text>Changelog</xsl:text>
608     </xsl:element>
609 djpig 1085 /
610     <xsl:element name="a">
611     <xsl:attribute name="href">
612     <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
613     <xsl:value-of select="directory"/>
614     <xsl:text>/</xsl:text>
615     <xsl:call-template name="escape-name">
616     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
617     </xsl:call-template>
618     <xsl:text>_</xsl:text>
619     <xsl:call-template name="escape-name">
620     <xsl:with-param name="text">
621     <xsl:call-template name="strip-epoch">
622     <xsl:with-param name="version">
623     <xsl:value-of select="version"/>
624     </xsl:with-param>
625     </xsl:call-template>
626     </xsl:with-param>
627     </xsl:call-template>
628 djpig 1094 <xsl:text>/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