/[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 764 - (hide annotations) (download) (as text)
Sun Jun 27 18:36:46 2004 UTC (8 years, 11 months ago) by hertzog
File MIME type: application/xml
File size: 26437 byte(s)
- Encode + in %2b in all links.
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 hertzog 764 <xsl:element name="a">
161     <xsl:attribute name="href">
162     <xsl:text>http://bugs.debian.org/src:</xsl:text>
163     <xsl:call-template name="escape-name">
164     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
165     </xsl:call-template>
166     </xsl:attribute>
167     <xsl:if test="$hasother">
168     <xsl:value-of select="$other/bugs/@all"/>
169     </xsl:if>
170     </xsl:element>
171 hertzog 347 </td>
172     </tr>
173     <tr class="normalrow">
174     <td class="labelcell">Release Critical</td>
175     <td class="contentcell">
176 hertzog 530 <xsl:element name="a">
177     <xsl:attribute name="href">
178     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
179     <xsl:call-template name="escape-name">
180     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
181     </xsl:call-template>
182     <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>
183     </xsl:attribute>
184     <xsl:if test="$hasother">
185     <xsl:value-of select="$other/bugs/@rc"/>
186     </xsl:if>
187     </xsl:element>
188 hertzog 347 </td>
189     </tr>
190     <tr class="normalrow">
191     <td class="labelcell">Important and Normal</td>
192     <td class="contentcell">
193 hertzog 530 <xsl:element name="a">
194     <xsl:attribute name="href">
195     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
196     <xsl:call-template name="escape-name">
197     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
198     </xsl:call-template>
199     <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>
200     </xsl:attribute>
201     <xsl:if test="$hasother">
202     <xsl:value-of select="$other/bugs/@normal"/>
203     </xsl:if>
204     </xsl:element>
205 hertzog 347 </td>
206     </tr>
207     <tr class="normalrow">
208     <td class="labelcell">Minor and Wishlist</td>
209     <td class="contentcell">
210 hertzog 530 <xsl:element name="a">
211     <xsl:attribute name="href">
212     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
213     <xsl:call-template name="escape-name">
214     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
215     </xsl:call-template>
216     <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>
217     </xsl:attribute>
218     <xsl:if test="$hasother">
219     <xsl:value-of select="$other/bugs/@wishlist"/>
220     </xsl:if>
221     </xsl:element>
222 hertzog 347 </td>
223     </tr>
224     <tr class="normalrow">
225     <td class="labelcell">Fixed and Pending</td>
226     <td class="contentcell">
227 hertzog 530 <xsl:element name="a">
228     <xsl:attribute name="href">
229     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
230     <xsl:call-template name="escape-name">
231     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
232     </xsl:call-template>
233     <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
234     </xsl:attribute>
235     <xsl:if test="$hasother">
236     <xsl:value-of select="$other/bugs/@fixed"/>
237     </xsl:if>
238     </xsl:element>
239 hertzog 347 </td>
240     </tr>
241    
242     <tr class="titlerow">
243     <td class="titlecell" colspan="2">
244 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>
245 hertzog 347 </td></tr>
246     <tr class="normalrow">
247     <td class="labelcell">Subscribers count</td>
248     <td class="contentcell"><xsl:if test="$hasother">
249     <xsl:value-of select="$other/pts/@count"/>
250     </xsl:if></td>
251     </tr>
252     <tr class="normalrow">
253     <td class="contentcell" colspan="2">
254 hertzog 382 <form method="post" action="/cgi-bin/pts.cgi">
255 hertzog 347 <input type="hidden" name="package" value="{$package}"/>
256     <select name="what">
257     <option value="subscribe">Subscribe</option>
258     <option value="unsubscribe">Unsubscribe</option>
259     <option value="advanced">Advanced mode</option>
260     </select>
261     <input type="text" name="email" size="15" value="your email" onFocus="if(email.value=='your email'){{email.value=''}}"/>
262     <input type="submit" name="submit" value="Send"/>
263     </form>
264     </td>
265     </tr>
266    
267     <tr class="titlerow">
268     <td class="titlecell" colspan="2">
269     Binary Package(s)
270     </td></tr>
271     <tr class="normalrow">
272     <td class="normalcell" colspan="2" style="text-align: left">
273     <xsl:for-each select="binary/item">
274     <xsl:sort select="text()"/>
275     <xsl:variable name="pkg" select="text()"/>
276     <li>
277     <a href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>
278     <span style="font-size: 70%">
279     (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:
280 hertzog 530
281     <xsl:element name="a">
282     <xsl:attribute name="title">critical, grave and serious</xsl:attribute>
283     <xsl:attribute name="href">
284     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
285     <xsl:call-template name="escape-name">
286     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
287     </xsl:call-template>
288     <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>
289     </xsl:attribute>
290     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@rc"/>
291     </xsl:element>,
292    
293     <xsl:element name="a">
294     <xsl:attribute name="title">important and normal</xsl:attribute>
295     <xsl:attribute name="href">
296     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
297     <xsl:call-template name="escape-name">
298     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
299     </xsl:call-template>
300     <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>
301     </xsl:attribute>
302     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@normal"/>
303     </xsl:element>,
304    
305     <xsl:element name="a">
306     <xsl:attribute name="title">wishlist and minor</xsl:attribute>
307     <xsl:attribute name="href">
308     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
309     <xsl:call-template name="escape-name">
310     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
311     </xsl:call-template>
312     <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>
313     </xsl:attribute>
314     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/>
315     </xsl:element>,
316    
317     <xsl:element name="a">
318     <xsl:attribute name="title">pending and fixed</xsl:attribute>
319     <xsl:attribute name="href">
320     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
321     <xsl:call-template name="escape-name">
322     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
323     </xsl:call-template>
324     <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
325     </xsl:attribute>
326     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>
327     </xsl:element>)
328 hertzog 347 </span>
329     </li>
330     </xsl:for-each>
331     </td></tr>
332    
333     <tr class="titlerow">
334     <td class="titlecell" colspan="2">
335     Other available versions
336     </td></tr>
337     <xsl:if test="$hasexperimental">
338     <tr class="normalrow">
339     <td class="labelcell">Experimental</td>
340     <td class="contentcell">
341     <xsl:value-of select="document(concat('../base/', $dir, '/experimental.xml'))/source/version"/>
342     </td>
343     </tr>
344     </xsl:if>
345 hertzog 351 <xsl:if test="$hasstable-security">
346     <tr class="normalrow">
347     <td class="labelcell">Security Updates (stable)</td>
348     <td class="contentcell">
349     <xsl:value-of select="document(concat('../base/', $dir, '/stable-security.xml'))/source/version"/>
350     </td>
351     </tr>
352     </xsl:if>
353     <xsl:if test="$hastesting-security">
354     <tr class="normalrow">
355     <td class="labelcell">Security Updates (testing)</td>
356     <td class="contentcell">
357     <xsl:value-of select="document(concat('../base/', $dir, '/testing-security.xml'))/source/version"/>
358     </td>
359     </tr>
360     </xsl:if>
361 hertzog 347 <xsl:if test="$hastesting">
362     <tr class="normalrow">
363 hertzog 551 <td class="labelcell"><a href="http://www.debian.org/releases/testing/">Testing</a></td>
364 hertzog 347 <td class="contentcell">
365     <xsl:value-of select="document(concat('../base/', $dir, '/testing.xml'))/source/version"/>
366     </td>
367     </tr>
368     </xsl:if>
369 hertzog 351 <xsl:if test="$hast-p-u">
370     <tr class="normalrow">
371     <td class="labelcell">Testing Proposed Updates</td>
372     <td class="contentcell">
373     <xsl:value-of select="document(concat('../base/', $dir, '/t-p-u.xml'))/source/version"/>
374     </td>
375     </tr>
376     </xsl:if>
377 hertzog 347 <xsl:if test="$hasstable">
378     <tr class="normalrow">
379 hertzog 551 <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>
380 hertzog 347 <td class="contentcell">
381     <xsl:value-of select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/>
382     </td>
383     </tr>
384     </xsl:if>
385 hertzog 351 <xsl:if test="$hass-p-u">
386     <tr class="normalrow">
387     <td class="labelcell">Stable Proposed Updates</td>
388     <td class="contentcell">
389     <xsl:value-of select="document(concat('../base/', $dir, '/s-p-u.xml'))/source/version"/>
390     </td>
391     </tr>
392     </xsl:if>
393    
394 hertzog 347 <tr class="titlerow">
395     <td class="titlecell" colspan="2">
396     Other links
397     </td></tr>
398     <tr>
399     <td class="contentcell" colspan="2" style="text-align: left">
400     <xsl:if test="architecture!='all'">
401 hertzog 764 <li>
402     <xsl:element name="a">
403     <xsl:attribute name="href">
404     <xsl:text>http://buildd.debian.org/build.php?pkg=</xsl:text>
405     <xsl:call-template name="escape-name">
406     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
407     </xsl:call-template>
408     </xsl:attribute>
409     Buildd logs
410     </xsl:element>
411     </li>
412 hertzog 347 </xsl:if>
413 hertzog 692 <!-- DISABLED until ddtp.debian.org is back up
414 hertzog 764 <li>
415     <xsl:element name="a">
416     <xsl:attribute name="href">
417     <xsl:text>http://ddtp.debian.org/stats/pdesc/report.cgi?package=</xsl:text>
418     <xsl:call-template name="escape-name">
419     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
420     </xsl:call-template>
421     <xsl:text>&amp;lang=all&amp;type=src-drvbin&amp;subword=0</xsl:text>
422     </xsl:attribute>
423     Description's translations (DDTP)
424     </xsl:element>
425     </li>
426 hertzog 479 <xsl:if test="$other/@debconf='yes'">
427 hertzog 764 <li>
428     <xsl:element name="a">
429     <xsl:attribute name="href">
430     <xsl:text>http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&amp;package=</xsl:text>
431     <xsl:call-template name="escape-name">
432     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
433     </xsl:call-template>
434     </xsl:attribute>
435     Debconf templates's translations (DDTP)
436     </xsl:element>
437     </li>
438 hertzog 479 </xsl:if>
439 hertzog 692 -->
440 hertzog 372 <xsl:if test="$hasunstable and $other/debcheck/@unstable='yes'">
441 hertzog 764 <li>
442     <xsl:element name="a">
443     <xsl:attribute name="href">
444     <xsl:text>http://qa.debian.org/debcheck.php?dist=unstable&amp;package=</xsl:text>
445     <xsl:call-template name="escape-name">
446     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
447     </xsl:call-template>
448     </xsl:attribute>
449     Debcheck on unstable
450     </xsl:element>
451     </li>
452 hertzog 347 </xsl:if>
453 hertzog 372 <xsl:if test="$hastesting and $other/debcheck/@testing='yes'">
454 hertzog 764 <li>
455     <xsl:element name="a">
456     <xsl:attribute name="href">
457     <xsl:text>http://qa.debian.org/debcheck.php?dist=testing&amp;package=</xsl:text>
458     <xsl:call-template name="escape-name">
459     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
460     </xsl:call-template>
461     </xsl:attribute>
462     Debcheck on testing
463     </xsl:element>
464     </li>
465 hertzog 347 </xsl:if>
466 hertzog 372 <xsl:if test="$hasstable and $other/debcheck/@stable='yes'">
467 hertzog 764 <li>
468     <xsl:element name="a">
469     <xsl:attribute name="href">
470     <xsl:text>http://qa.debian.org/debcheck.php?dist=stable&amp;package=</xsl:text>
471     <xsl:call-template name="escape-name">
472     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
473     </xsl:call-template>
474     </xsl:attribute>
475     Debcheck on stable
476     </xsl:element>
477     </li>
478 hertzog 347 </xsl:if>
479 hertzog 643 <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->
480     <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-/()&#34; ', &quot;'&quot;)"/>
481     <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '____________________')"/>
482     <li><a href="http://lintian.debian.org/reports/m{$_name}.html#{$package}">Lintian report</a></li>
483    
484 hertzog 347 </td>
485     </tr>
486    
487     <tr class="titlerow">
488     <td class="titlecell" colspan="2">
489     <xsl:element name="a">
490     <xsl:attribute name="class">
491     <xsl:text>titlelink</xsl:text>
492     </xsl:attribute>
493     <xsl:attribute name="href">
494     <xsl:call-template name="mirror"/>
495     <xsl:text>/</xsl:text>
496     <xsl:value-of select="directory"/>
497     <xsl:text>/</xsl:text>
498     </xsl:attribute>
499     <xsl:text>Source files</xsl:text>
500     </xsl:element>
501     </td></tr>
502     <tr class="normalrow">
503     <td class="normalcell" colspan="2" style="text-align: left">
504     <xsl:for-each select="files/item">
505     <li>
506     <xsl:element name="a">
507     <xsl:attribute name="class">srcfile</xsl:attribute>
508     <xsl:attribute name="href">
509     <xsl:call-template name="mirror"/>
510     <xsl:text>/</xsl:text>
511     <xsl:value-of select="../../directory"/>
512     <xsl:text>/</xsl:text>
513     <xsl:value-of select="filename"/>
514     </xsl:attribute>
515     <xsl:attribute name="title">
516     <xsl:value-of select="size"/>
517     <xsl:text> bytes</xsl:text>
518     </xsl:attribute>
519     <xsl:value-of select="filename"/>
520     </xsl:element>
521     </li>
522     </xsl:for-each>
523     </td></tr>
524    
525     </table>
526     <!-- END LEFT SIDE -->
527     </td><td class="containercell">
528     <!-- RIGHT SIDE -->
529     <table class="righttable">
530    
531    
532     <!-- Todo list -->
533     <xsl:variable name="todo">
534     <xsl:if test="@nmu">
535     <li>Incorporate and acknowledge the changes from the non maintainer upload.</li>
536     </xsl:if>
537     <xsl:if test="not(uploaders)and(priority='standard' or priority='required' or priority='important')">
538     <li>The package is of priority standard or higher, you should really find some co-maintainers.</li>
539     </xsl:if>
540     <xsl:if test="not(starts-with(standards-version, $lastsv))">
541 hertzog 572 <li>The package should be updated to follow the last version of
542 hertzog 553 <a href="http://www.debian.org/doc/debian-policy/">Debian Policy</a> (Standards-Version
543 hertzog 347 <xsl:value-of select="$lastsv"/> instead of
544     <xsl:value-of select="standards-version"/>).</li>
545     </xsl:if>
546     <xsl:if test="$hasother">
547     <xsl:for-each select="$other/todo/item">
548     <xsl:call-template name="outputitem"/>
549     </xsl:for-each>
550 hertzog 643 <!-- new upstream version goes in todo [FG] -->
551     <xsl:if test="$other/@watch='yes' and $other/watch/@new!='0'">
552     <li>A new upstream version was found:
553     (<xsl:value-of select="$other/watch/@new"/>). <a href="{$other/watch/@url}"><xsl:value-of select="$other/watch/@url"/></a></li>
554     </xsl:if>
555 hertzog 347 </xsl:if>
556     </xsl:variable>
557 hertzog 372 <xsl:if test="count($todo)>0 and string($todo)!=''">
558 hertzog 347 <tr class="titlerow">
559 hertzog 352 <td class="titlecell" style="background-color: blue">
560 hertzog 347 Todo
561     </td></tr>
562     <tr class="normalrow">
563     <td class="contentcell2"><xsl:copy-of select="$todo"/>
564     </td>
565     </tr>
566     </xsl:if>
567    
568     <!-- List of problems -->
569     <xsl:variable name="problems">
570 hertzog 357 <xsl:if test="$hasexcuse and document(concat('../base/', $dir, '/excuse.xml'))/excuse/@problematic">
571 hertzog 347 <li>The package has not yet entered <a
572 hertzog 639 href="http://ftp-master.debian.org/testing/update_excuses.html.gz#{$package}">testing</a>
573 hertzog 406 even though the <xsl:value-of select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/@limit"/>-day
574 hertzog 764 delay is over.
575     <xsl:element name="a">
576     <xsl:attribute name="href">
577     <xsl:text>http://bjorn.haxx.se/debian/testing.pl?package=</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     Check why
583     </xsl:element>
584     .</li>
585 hertzog 347 </xsl:if>
586     <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">
587     <li>The package is severly out of date with respect to the Debian
588     Policy. Latest version is <xsl:value-of select="$lastsv"/>
589     and your package only follows
590     <xsl:value-of select="standards-version"/>...</li>
591     </xsl:if>
592     <xsl:if test="$hasother">
593 hertzog 560
594     <!-- Wnpp handling. [PvR] -->
595     <xsl:if test="$other/@wnpp='yes'">
596     <li>
597     <xsl:choose>
598     <xsl:when test="$other/wnpp/@type='O'">
599     <span style="font-weight: bold">This package has been orphaned</span>.
600     This means that it does not have a real maintainer at the
601     moment. Please consider adopting this package if you have some
602     interests in it.
603     </xsl:when>
604     <xsl:when test="$other/wnpp/@type='ITA'">
605     This package has been orphaned, but someone is intending to
606     resume its maintenance.
607     </xsl:when>
608     <xsl:when test="$other/wnpp/@type='RFA'">
609     The current maintainer is looking for someone who can take over
610     maintenance of this package. If you have some interests in this package,
611     please consider taking it over. Alternatively you may
612     want to be co-maintainer in order to help the actual maintainer.
613     </xsl:when>
614     <xsl:when test="$other/wnpp/@type='ITP'">
615     The WNPP database contains an ITP (Intent To Package) entry for
616     this package. This is probably an error, as it has already been
617     packaged.
618     </xsl:when>
619     <xsl:when test="$other/wnpp/@type='RFP'">
620     The WNPP database contains an RFP (Request For Package) entry
621     for this package. This is probably an error, as it has already
622     been packaged.
623     </xsl:when>
624     <xsl:otherwise>
625     The WNPP database contains an entry for this package,
626     but it is unclear what kind of entry it is. This is probably an error.
627     </xsl:otherwise>
628     </xsl:choose>
629     <xsl:variable name="bn" select="$other/wnpp/@bugnumber"/>
630     Please see bug number <a href="http://bugs.debian.org/{$bn}">
631     #<xsl:value-of select="$bn"/></a> for more information.
632     </li>
633     </xsl:if>
634 hertzog 643
635     <!-- uscan output if present [FG] -->
636     <xsl:if test="$other/@watch='yes'">
637     <li>
638     <xsl:if test="$other/watch/@warning!=''">
639     uscan had problems while searching for a new upstream version: <xsl:value-of select="$other/watch/@warning"/>
640     </xsl:if>
641     </li>
642     </xsl:if>
643 hertzog 560
644     <!-- Misc problems reported -->
645 hertzog 347 <xsl:for-each select="$other/problems/item">
646     <xsl:call-template name="outputitem"/>
647     </xsl:for-each>
648     </xsl:if>
649     </xsl:variable>
650 hertzog 372 <xsl:if test="count($problems)>0 and string($problems)!=''">
651 hertzog 347 <tr class="titlerow">
652 hertzog 352 <td class="titlecell" style="background-color: red">
653 hertzog 347 Problems
654     </td></tr>
655     <tr class="normalrow">
656     <td class="contentcell2"><xsl:copy-of select="$problems"/>
657     </td>
658     </tr>
659     </xsl:if>
660    
661 hertzog 357 <xsl:if test="$hasexcuse">
662 hertzog 347 <tr class="titlerow">
663     <td class="titlecell">
664     Testing Status
665     </td></tr>
666     <tr class="normalrow">
667     <td class="contentcell2" style="text-align: left">
668 hertzog 357 <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
669 hertzog 347 <xsl:call-template name="outputitem"/>
670     </xsl:for-each>
671     </td>
672     </tr>
673     </xsl:if>
674 hertzog 560
675 hertzog 347
676     <xsl:variable name="static">
677 hertzog 357 <xsl:if test="$hasnews">
678     <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">
679 hertzog 347 <xsl:call-template name="outputitem"/>
680     </xsl:for-each>
681     </xsl:if>
682     </xsl:variable>
683 hertzog 372 <xsl:if test="count($static)>0 and string($static)!=''">
684 hertzog 347 <tr class="titlerow">
685     <td class="titlecell">
686     Static Information
687     </td></tr>
688     <tr class="normalrow">
689     <td class="contentcell2"><xsl:copy-of select="$static"/></td>
690     </tr>
691     </xsl:if>
692    
693     <xsl:variable name="news">
694 hertzog 357 <xsl:if test="$hasnews">
695     <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">
696 hertzog 347 <xsl:call-template name="outputitem"/>
697     </xsl:for-each>
698     </xsl:if>
699     </xsl:variable>
700 hertzog 372 <xsl:if test="count($news)>0 and string($news)!=''">
701 hertzog 347 <tr class="titlerow">
702     <td class="titlecell">
703     Latest News
704     </td></tr>
705     <tr class="normalrow">
706     <td class="contentcell2"><xsl:copy-of select="$news"/></td>
707     </tr>
708     </xsl:if>
709    
710     </table>
711     <!-- END RIGHT SIDE -->
712     </td></tr>
713     </table>
714     <hr/>
715 hertzog 530 Debian Package Tracking System - Copyright 2002-2003 Raphaël Hertzog<br/>
716 hertzog 347 Last modified : <xsl:value-of select="$date"/>
717     </body>
718     </html>
719     </xsl:template>
720    
721     </xsl:stylesheet>

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5