/[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 643 - (hide annotations) (download) (as text)
Thu Oct 2 17:44:33 2003 UTC (9 years, 8 months ago) by hertzog
File MIME type: application/xml
File size: 23882 byte(s)
* New scripts contributed by Filippo Giunchedi <filippo@esaurito.net>
  which can be used to integrate the result of uscan (scanning watch files)
  in the PTS.
1 hertzog 347 <?xml version="1.0" encoding="ISO-8859-1" ?>
2 hertzog 351
3     <!--
4 hertzog 530 # Copyright 2002-2003 Raphaël Hertzog
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     <xsl:output encoding="ISO-8859-1" method="html"/>
12    
13     <xsl:param name="package"/>
14     <xsl:param name="dir"/>
15     <xsl:param name="date"/>
16     <xsl:param name="hasstable" select="''"/>
17     <xsl:param name="hastesting" select="''"/>
18     <xsl:param name="hasunstable" select="''"/>
19     <xsl:param name="hasexperimental" select="''"/>
20     <xsl:param name="hasother" select="''"/>
21 hertzog 351 <xsl:param name="hass-p-u" select="''"/>
22     <xsl:param name="hast-p-u" select="''"/>
23     <xsl:param name="hasstable-security" select="''"/>
24     <xsl:param name="hastesting-security" select="''"/>
25 hertzog 357 <xsl:param name="hasnews" select="''"/>
26     <xsl:param name="hasexcuse" select="''"/>
27 hertzog 347
28     <xsl:variable name="other" select="document(concat('../base/', $dir, '/other.xml'))/other"/>
29    
30     <!-- Those variables controls the todo and problem item concerning
31     standards-version not being up to date -->
32 hertzog 633 <xsl:variable name="lastsv" select="'3.6.1'"/>
33 hertzog 347 <xsl:variable name="lastmajorsv" select="'3.'"/>
34    
35     <!-- Named templates aka functions -->
36     <xsl:template name="mirror">
37     <xsl:choose>
38 hertzog 600 <xsl:when test="contains(/source/section, 'non-US')">
39 hertzog 347 <xsl:text>http://non-us.debian.org/debian-non-US</xsl:text>
40     </xsl:when>
41     <xsl:otherwise>
42     <xsl:text>http://http.us.debian.org/debian</xsl:text>
43     </xsl:otherwise>
44     </xsl:choose>
45     </xsl:template>
46    
47     <xsl:template name="outputitem">
48     <xsl:choose>
49     <xsl:when test="@url">
50     <li><xsl:if test="@date">
51     <xsl:text>[</xsl:text>
52     <xsl:value-of select="@date"/>
53     <xsl:text>] </xsl:text>
54     </xsl:if><a href="{@url}"><xsl:value-of select="text()"/></a></li>
55     </xsl:when>
56     <xsl:otherwise>
57     <li><xsl:if test="@date">
58     <xsl:text>[</xsl:text>
59     <xsl:value-of select="@date"/>
60     <xsl:text>] </xsl:text>
61     </xsl:if><xsl:value-of select="text()"/></li>
62     </xsl:otherwise>
63     </xsl:choose>
64     </xsl:template>
65    
66 hertzog 530 <!-- Convert + in %2b for URL escaping ... -->
67     <xsl:template name="escape-name">
68     <xsl:param name="text"/>
69     <xsl:if test="contains($text,'+')">
70     <xsl:value-of select="substring-before($text,'+')"/>
71     <xsl:text>%2b</xsl:text>
72     <xsl:call-template name="escape-name">
73     <xsl:with-param name="text"><xsl:value-of select="substring-after($text,'+')"/></xsl:with-param>
74     </xsl:call-template>
75     </xsl:if>
76     <xsl:if test="not(contains($text,'+'))">
77     <xsl:value-of select="$text"/>
78     </xsl:if>
79     </xsl:template>
80    
81    
82 hertzog 347 <!-- All the work is done in a single template -->
83     <xsl:template match="source">
84    
85     <!-- Start of html -->
86     <html>
87     <head>
88 hertzog 350 <meta name="ROBOTS" content="NOFOLLOW"/>
89 hertzog 529 <link title="Default" rel="stylesheet" href="../common/pts.css"/>
90     <link title="Standard link rendering" rel="alternate stylesheet" href="../common/pts2.css"/>
91 hertzog 347 <title>Overview of <xsl:value-of select="$package"/> source package</title>
92     </head>
93     <body>
94 hertzog 357
95 hertzog 401 <form method="get" action="/common/index.html" style="float: right;">
96 hertzog 643 <!-- this link should make lynx/links happy [FG] -->
97     Jump to package (<a href="/">home page</a>): <br/>
98 hertzog 357 <input type="text" name="src" value=""/>
99     </form>
100 hertzog 347 <h1>Overview of <xsl:value-of select="$package"/> source package</h1>
101 hertzog 357
102 hertzog 347 <table class="containertable">
103     <tr class="containerrow" valign="top">
104     <td class="containercell">
105     <!-- LEFT SIDE -->
106     <table class="lefttable">
107     <tr class="titlerow">
108     <td class="titlecell" colspan="2">
109     General Information
110     </td></tr>
111     <tr class="normalrow">
112     <td class="labelcell">Last version</td>
113     <td class="contentcell"><xsl:value-of select="version"/></td>
114     </tr>
115     <xsl:if test="@release!='unstable'">
116     <tr class="normalrow">
117     <td class="labelcell">Distribution</td>
118     <td class="contentcell"><xsl:value-of select="@release"/></td>
119     </tr>
120     </xsl:if>
121     <tr class="normalrow">
122     <td class="labelcell">Maintainer</td>
123 hertzog 372 <td class="contentcell"><a class="email" href="http://qa.debian.org/developer.php?login={maintainer/email}">
124     <xsl:value-of select="maintainer/name"/></a> [<a class="email" href="mailto:{maintainer/email}">mail</a>]</td>
125 hertzog 347 </tr>
126     <tr class="normalrow">
127 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>
128 hertzog 347 <td class="contentcell">
129     <xsl:if test="uploaders">
130     <xsl:for-each select="uploaders/item">
131 hertzog 372 <a class="email" href="http://qa.debian.org/developer.php?login={email}"><xsl:value-of select="name"/></a> [<a class="email" href="mailto:{email}">mail</a>]<br/>
132 hertzog 347 </xsl:for-each>
133     </xsl:if>
134     <xsl:if test="not(uploaders)">
135     <a class="none" title="You should find some co-maintainers ..." name="fake">None</a>
136     </xsl:if>
137     </td></tr>
138     <tr class="normalrow">
139     <td class="labelcell">Standards-Version</td>
140     <td class="contentcell"><xsl:value-of select="standards-version"/></td>
141     </tr>
142 hertzog 603 <tr class="normalrow">
143     <td class="labelcell">Priority &amp; Section</td>
144     <td class="contentcell"><xsl:value-of select="priority"/> - <xsl:value-of select="section"/></td>
145     </tr>
146 hertzog 529 <xsl:if test="architecture!='any' and architecture!='all'">
147     <tr class="normalrow">
148     <td class="labelcell">Architecture</td>
149     <td class="contentcell"><xsl:value-of select="architecture"/></td>
150     </tr>
151     </xsl:if>
152 hertzog 347
153     <tr class="titlerow">
154     <td class="titlecell" colspan="2">
155     Bugs Count
156     </td></tr>
157     <tr class="normalrow">
158     <td class="labelcell">All bugs</td>
159     <td class="contentcell">
160     <a href="http://bugs.debian.org/src:{$package}"><xsl:if test="$hasother">
161     <xsl:value-of select="$other/bugs/@all"/>
162     </xsl:if></a>
163     </td>
164     </tr>
165     <tr class="normalrow">
166     <td class="labelcell">Release Critical</td>
167     <td class="contentcell">
168 hertzog 530 <xsl:element name="a">
169     <xsl:attribute name="href">
170     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
171     <xsl:call-template name="escape-name">
172     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
173     </xsl:call-template>
174     <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>
175     </xsl:attribute>
176     <xsl:if test="$hasother">
177     <xsl:value-of select="$other/bugs/@rc"/>
178     </xsl:if>
179     </xsl:element>
180 hertzog 347 </td>
181     </tr>
182     <tr class="normalrow">
183     <td class="labelcell">Important and Normal</td>
184     <td class="contentcell">
185 hertzog 530 <xsl:element name="a">
186     <xsl:attribute name="href">
187     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
188     <xsl:call-template name="escape-name">
189     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
190     </xsl:call-template>
191     <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>
192     </xsl:attribute>
193     <xsl:if test="$hasother">
194     <xsl:value-of select="$other/bugs/@normal"/>
195     </xsl:if>
196     </xsl:element>
197 hertzog 347 </td>
198     </tr>
199     <tr class="normalrow">
200     <td class="labelcell">Minor and Wishlist</td>
201     <td class="contentcell">
202 hertzog 530 <xsl:element name="a">
203     <xsl:attribute name="href">
204     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
205     <xsl:call-template name="escape-name">
206     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
207     </xsl:call-template>
208     <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>
209     </xsl:attribute>
210     <xsl:if test="$hasother">
211     <xsl:value-of select="$other/bugs/@wishlist"/>
212     </xsl:if>
213     </xsl:element>
214 hertzog 347 </td>
215     </tr>
216     <tr class="normalrow">
217     <td class="labelcell">Fixed and Pending</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-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
226     </xsl:attribute>
227     <xsl:if test="$hasother">
228     <xsl:value-of select="$other/bugs/@fixed"/>
229     </xsl:if>
230     </xsl:element>
231 hertzog 347 </td>
232     </tr>
233    
234     <tr class="titlerow">
235     <td class="titlecell" colspan="2">
236 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>
237 hertzog 347 </td></tr>
238     <tr class="normalrow">
239     <td class="labelcell">Subscribers count</td>
240     <td class="contentcell"><xsl:if test="$hasother">
241     <xsl:value-of select="$other/pts/@count"/>
242     </xsl:if></td>
243     </tr>
244     <tr class="normalrow">
245     <td class="contentcell" colspan="2">
246 hertzog 382 <form method="post" action="/cgi-bin/pts.cgi">
247 hertzog 347 <input type="hidden" name="package" value="{$package}"/>
248     <select name="what">
249     <option value="subscribe">Subscribe</option>
250     <option value="unsubscribe">Unsubscribe</option>
251     <option value="advanced">Advanced mode</option>
252     </select>
253     <input type="text" name="email" size="15" value="your email" onFocus="if(email.value=='your email'){{email.value=''}}"/>
254     <input type="submit" name="submit" value="Send"/>
255     </form>
256     </td>
257     </tr>
258    
259     <tr class="titlerow">
260     <td class="titlecell" colspan="2">
261     Binary Package(s)
262     </td></tr>
263     <tr class="normalrow">
264     <td class="normalcell" colspan="2" style="text-align: left">
265     <xsl:for-each select="binary/item">
266     <xsl:sort select="text()"/>
267     <xsl:variable name="pkg" select="text()"/>
268     <li>
269     <a href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>
270     <span style="font-size: 70%">
271     (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:
272 hertzog 530
273     <xsl:element name="a">
274     <xsl:attribute name="title">critical, grave and serious</xsl:attribute>
275     <xsl:attribute name="href">
276     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
277     <xsl:call-template name="escape-name">
278     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
279     </xsl:call-template>
280     <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>
281     </xsl:attribute>
282     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@rc"/>
283     </xsl:element>,
284    
285     <xsl:element name="a">
286     <xsl:attribute name="title">important and normal</xsl:attribute>
287     <xsl:attribute name="href">
288     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
289     <xsl:call-template name="escape-name">
290     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
291     </xsl:call-template>
292     <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>
293     </xsl:attribute>
294     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@normal"/>
295     </xsl:element>,
296    
297     <xsl:element name="a">
298     <xsl:attribute name="title">wishlist and minor</xsl:attribute>
299     <xsl:attribute name="href">
300     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
301     <xsl:call-template name="escape-name">
302     <xsl:with-param name="text"><xsl:value-of select="text()"/></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=minor&amp;sev-inc=wishlist</xsl:text>
305     </xsl:attribute>
306     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/>
307     </xsl:element>,
308    
309     <xsl:element name="a">
310     <xsl:attribute name="title">pending and fixed</xsl:attribute>
311     <xsl:attribute name="href">
312     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
313     <xsl:call-template name="escape-name">
314     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
315     </xsl:call-template>
316     <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
317     </xsl:attribute>
318     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>
319     </xsl:element>)
320 hertzog 347 </span>
321     </li>
322     </xsl:for-each>
323     </td></tr>
324    
325     <tr class="titlerow">
326     <td class="titlecell" colspan="2">
327     Other available versions
328     </td></tr>
329     <xsl:if test="$hasexperimental">
330     <tr class="normalrow">
331     <td class="labelcell">Experimental</td>
332     <td class="contentcell">
333     <xsl:value-of select="document(concat('../base/', $dir, '/experimental.xml'))/source/version"/>
334     </td>
335     </tr>
336     </xsl:if>
337 hertzog 351 <xsl:if test="$hasstable-security">
338     <tr class="normalrow">
339     <td class="labelcell">Security Updates (stable)</td>
340     <td class="contentcell">
341     <xsl:value-of select="document(concat('../base/', $dir, '/stable-security.xml'))/source/version"/>
342     </td>
343     </tr>
344     </xsl:if>
345     <xsl:if test="$hastesting-security">
346     <tr class="normalrow">
347     <td class="labelcell">Security Updates (testing)</td>
348     <td class="contentcell">
349     <xsl:value-of select="document(concat('../base/', $dir, '/testing-security.xml'))/source/version"/>
350     </td>
351     </tr>
352     </xsl:if>
353 hertzog 347 <xsl:if test="$hastesting">
354     <tr class="normalrow">
355 hertzog 551 <td class="labelcell"><a href="http://www.debian.org/releases/testing/">Testing</a></td>
356 hertzog 347 <td class="contentcell">
357     <xsl:value-of select="document(concat('../base/', $dir, '/testing.xml'))/source/version"/>
358     </td>
359     </tr>
360     </xsl:if>
361 hertzog 351 <xsl:if test="$hast-p-u">
362     <tr class="normalrow">
363     <td class="labelcell">Testing Proposed Updates</td>
364     <td class="contentcell">
365     <xsl:value-of select="document(concat('../base/', $dir, '/t-p-u.xml'))/source/version"/>
366     </td>
367     </tr>
368     </xsl:if>
369 hertzog 347 <xsl:if test="$hasstable">
370     <tr class="normalrow">
371 hertzog 551 <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>
372 hertzog 347 <td class="contentcell">
373     <xsl:value-of select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/>
374     </td>
375     </tr>
376     </xsl:if>
377 hertzog 351 <xsl:if test="$hass-p-u">
378     <tr class="normalrow">
379     <td class="labelcell">Stable Proposed Updates</td>
380     <td class="contentcell">
381     <xsl:value-of select="document(concat('../base/', $dir, '/s-p-u.xml'))/source/version"/>
382     </td>
383     </tr>
384     </xsl:if>
385    
386 hertzog 347 <tr class="titlerow">
387     <td class="titlecell" colspan="2">
388     Other links
389     </td></tr>
390     <tr>
391     <td class="contentcell" colspan="2" style="text-align: left">
392     <xsl:if test="architecture!='all'">
393     <li><a href="http://buildd.debian.org/build.php?pkg={$package}">Buildd logs</a></li>
394     </xsl:if>
395 hertzog 643 <li><a href="http://ddtp.debian.org/stats/pdesc/report.cgi?package={$package}&amp;lang=all&amp;type=src-drvbin&amp;subword=0">Description's translations (DDTP)</a></li>
396 hertzog 479 <xsl:if test="$other/@debconf='yes'">
397     <li><a href="http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&amp;package={$package}">Debconf templates's translations (DDTP)</a></li>
398     </xsl:if>
399 hertzog 372 <xsl:if test="$hasunstable and $other/debcheck/@unstable='yes'">
400 hertzog 347 <li><a href="http://qa.debian.org/debcheck.php?dist=unstable&amp;package={$package}">Debcheck on unstable</a></li>
401     </xsl:if>
402 hertzog 372 <xsl:if test="$hastesting and $other/debcheck/@testing='yes'">
403 hertzog 347 <li><a href="http://qa.debian.org/debcheck.php?dist=testing&amp;package={$package}">Debcheck on testing</a></li>
404     </xsl:if>
405 hertzog 372 <xsl:if test="$hasstable and $other/debcheck/@stable='yes'">
406 hertzog 347 <li><a href="http://qa.debian.org/debcheck.php?dist=stable&amp;package={$package}">Debcheck on stable</a></li>
407     </xsl:if>
408 hertzog 643 <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->
409     <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-/()&#34; ', &quot;'&quot;)"/>
410     <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '____________________')"/>
411     <li><a href="http://lintian.debian.org/reports/m{$_name}.html#{$package}">Lintian report</a></li>
412    
413 hertzog 347 </td>
414     </tr>
415    
416     <tr class="titlerow">
417     <td class="titlecell" colspan="2">
418     <xsl:element name="a">
419     <xsl:attribute name="class">
420     <xsl:text>titlelink</xsl:text>
421     </xsl:attribute>
422     <xsl:attribute name="href">
423     <xsl:call-template name="mirror"/>
424     <xsl:text>/</xsl:text>
425     <xsl:value-of select="directory"/>
426     <xsl:text>/</xsl:text>
427     </xsl:attribute>
428     <xsl:text>Source files</xsl:text>
429     </xsl:element>
430     </td></tr>
431     <tr class="normalrow">
432     <td class="normalcell" colspan="2" style="text-align: left">
433     <xsl:for-each select="files/item">
434     <li>
435     <xsl:element name="a">
436     <xsl:attribute name="class">srcfile</xsl:attribute>
437     <xsl:attribute name="href">
438     <xsl:call-template name="mirror"/>
439     <xsl:text>/</xsl:text>
440     <xsl:value-of select="../../directory"/>
441     <xsl:text>/</xsl:text>
442     <xsl:value-of select="filename"/>
443     </xsl:attribute>
444     <xsl:attribute name="title">
445     <xsl:value-of select="size"/>
446     <xsl:text> bytes</xsl:text>
447     </xsl:attribute>
448     <xsl:value-of select="filename"/>
449     </xsl:element>
450     </li>
451     </xsl:for-each>
452     </td></tr>
453    
454     </table>
455     <!-- END LEFT SIDE -->
456     </td><td class="containercell">
457     <!-- RIGHT SIDE -->
458     <table class="righttable">
459    
460    
461     <!-- Todo list -->
462     <xsl:variable name="todo">
463     <xsl:if test="@nmu">
464     <li>Incorporate and acknowledge the changes from the non maintainer upload.</li>
465     </xsl:if>
466     <xsl:if test="not(uploaders)and(priority='standard' or priority='required' or priority='important')">
467     <li>The package is of priority standard or higher, you should really find some co-maintainers.</li>
468     </xsl:if>
469     <xsl:if test="not(starts-with(standards-version, $lastsv))">
470 hertzog 572 <li>The package should be updated to follow the last version of
471 hertzog 553 <a href="http://www.debian.org/doc/debian-policy/">Debian Policy</a> (Standards-Version
472 hertzog 347 <xsl:value-of select="$lastsv"/> instead of
473     <xsl:value-of select="standards-version"/>).</li>
474     </xsl:if>
475     <xsl:if test="$hasother">
476     <xsl:for-each select="$other/todo/item">
477     <xsl:call-template name="outputitem"/>
478     </xsl:for-each>
479 hertzog 643 <!-- new upstream version goes in todo [FG] -->
480     <xsl:if test="$other/@watch='yes' and $other/watch/@new!='0'">
481     <li>A new upstream version was found:
482     (<xsl:value-of select="$other/watch/@new"/>). <a href="{$other/watch/@url}"><xsl:value-of select="$other/watch/@url"/></a></li>
483     </xsl:if>
484 hertzog 347 </xsl:if>
485     </xsl:variable>
486 hertzog 372 <xsl:if test="count($todo)>0 and string($todo)!=''">
487 hertzog 347 <tr class="titlerow">
488 hertzog 352 <td class="titlecell" style="background-color: blue">
489 hertzog 347 Todo
490     </td></tr>
491     <tr class="normalrow">
492     <td class="contentcell2"><xsl:copy-of select="$todo"/>
493     </td>
494     </tr>
495     </xsl:if>
496    
497     <!-- List of problems -->
498     <xsl:variable name="problems">
499 hertzog 357 <xsl:if test="$hasexcuse and document(concat('../base/', $dir, '/excuse.xml'))/excuse/@problematic">
500 hertzog 347 <li>The package has not yet entered <a
501 hertzog 639 href="http://ftp-master.debian.org/testing/update_excuses.html.gz#{$package}">testing</a>
502 hertzog 406 even though the <xsl:value-of select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/@limit"/>-day
503 hertzog 347 delay is over.</li>
504     </xsl:if>
505     <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">
506     <li>The package is severly out of date with respect to the Debian
507     Policy. Latest version is <xsl:value-of select="$lastsv"/>
508     and your package only follows
509     <xsl:value-of select="standards-version"/>...</li>
510     </xsl:if>
511     <xsl:if test="$hasother">
512 hertzog 560
513     <!-- Wnpp handling. [PvR] -->
514     <xsl:if test="$other/@wnpp='yes'">
515     <li>
516     <xsl:choose>
517     <xsl:when test="$other/wnpp/@type='O'">
518     <span style="font-weight: bold">This package has been orphaned</span>.
519     This means that it does not have a real maintainer at the
520     moment. Please consider adopting this package if you have some
521     interests in it.
522     </xsl:when>
523     <xsl:when test="$other/wnpp/@type='ITA'">
524     This package has been orphaned, but someone is intending to
525     resume its maintenance.
526     </xsl:when>
527     <xsl:when test="$other/wnpp/@type='RFA'">
528     The current maintainer is looking for someone who can take over
529     maintenance of this package. If you have some interests in this package,
530     please consider taking it over. Alternatively you may
531     want to be co-maintainer in order to help the actual maintainer.
532     </xsl:when>
533     <xsl:when test="$other/wnpp/@type='ITP'">
534     The WNPP database contains an ITP (Intent To Package) entry for
535     this package. This is probably an error, as it has already been
536     packaged.
537     </xsl:when>
538     <xsl:when test="$other/wnpp/@type='RFP'">
539     The WNPP database contains an RFP (Request For Package) entry
540     for this package. This is probably an error, as it has already
541     been packaged.
542     </xsl:when>
543     <xsl:otherwise>
544     The WNPP database contains an entry for this package,
545     but it is unclear what kind of entry it is. This is probably an error.
546     </xsl:otherwise>
547     </xsl:choose>
548     <xsl:variable name="bn" select="$other/wnpp/@bugnumber"/>
549     Please see bug number <a href="http://bugs.debian.org/{$bn}">
550     #<xsl:value-of select="$bn"/></a> for more information.
551     </li>
552     </xsl:if>
553 hertzog 643
554     <!-- uscan output if present [FG] -->
555     <xsl:if test="$other/@watch='yes'">
556     <li>
557     <xsl:if test="$other/watch/@warning!=''">
558     uscan had problems while searching for a new upstream version: <xsl:value-of select="$other/watch/@warning"/>
559     </xsl:if>
560     </li>
561     </xsl:if>
562 hertzog 560
563     <!-- Misc problems reported -->
564 hertzog 347 <xsl:for-each select="$other/problems/item">
565     <xsl:call-template name="outputitem"/>
566     </xsl:for-each>
567     </xsl:if>
568     </xsl:variable>
569 hertzog 372 <xsl:if test="count($problems)>0 and string($problems)!=''">
570 hertzog 347 <tr class="titlerow">
571 hertzog 352 <td class="titlecell" style="background-color: red">
572 hertzog 347 Problems
573     </td></tr>
574     <tr class="normalrow">
575     <td class="contentcell2"><xsl:copy-of select="$problems"/>
576     </td>
577     </tr>
578     </xsl:if>
579    
580 hertzog 357 <xsl:if test="$hasexcuse">
581 hertzog 347 <tr class="titlerow">
582     <td class="titlecell">
583     Testing Status
584     </td></tr>
585     <tr class="normalrow">
586     <td class="contentcell2" style="text-align: left">
587 hertzog 357 <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
588 hertzog 347 <xsl:call-template name="outputitem"/>
589     </xsl:for-each>
590     </td>
591     </tr>
592     </xsl:if>
593 hertzog 560
594 hertzog 347
595     <xsl:variable name="static">
596 hertzog 357 <xsl:if test="$hasnews">
597     <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">
598 hertzog 347 <xsl:call-template name="outputitem"/>
599     </xsl:for-each>
600     </xsl:if>
601     </xsl:variable>
602 hertzog 372 <xsl:if test="count($static)>0 and string($static)!=''">
603 hertzog 347 <tr class="titlerow">
604     <td class="titlecell">
605     Static Information
606     </td></tr>
607     <tr class="normalrow">
608     <td class="contentcell2"><xsl:copy-of select="$static"/></td>
609     </tr>
610     </xsl:if>
611    
612     <xsl:variable name="news">
613 hertzog 357 <xsl:if test="$hasnews">
614     <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">
615 hertzog 347 <xsl:call-template name="outputitem"/>
616     </xsl:for-each>
617     </xsl:if>
618     </xsl:variable>
619 hertzog 372 <xsl:if test="count($news)>0 and string($news)!=''">
620 hertzog 347 <tr class="titlerow">
621     <td class="titlecell">
622     Latest News
623     </td></tr>
624     <tr class="normalrow">
625     <td class="contentcell2"><xsl:copy-of select="$news"/></td>
626     </tr>
627     </xsl:if>
628    
629     </table>
630     <!-- END RIGHT SIDE -->
631     </td></tr>
632     </table>
633     <hr/>
634 hertzog 530 Debian Package Tracking System - Copyright 2002-2003 Raphaël Hertzog<br/>
635 hertzog 347 Last modified : <xsl:value-of select="$date"/>
636     </body>
637     </html>
638     </xsl:template>
639    
640     </xsl:stylesheet>

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5