/[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 949 - (hide annotations) (download) (as text)
Sun Feb 13 18:29:50 2005 UTC (8 years, 4 months ago) by jeroen
File MIME type: application/xml
File size: 28092 byte(s)
Display override disparities
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 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     <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 jeroen 929 </xsl:if><a href="{@url}">
55     <xsl:value-of select="text()"/></a><xsl:if test="@from">
56     <xsl:text> (</xsl:text>
57     <xsl:value-of select="@from"/>
58     <xsl:text>)</xsl:text></xsl:if></li>
59 hertzog 347 </xsl:when>
60     <xsl:otherwise>
61     <li><xsl:if test="@date">
62     <xsl:text>[</xsl:text>
63     <xsl:value-of select="@date"/>
64     <xsl:text>] </xsl:text>
65     </xsl:if><xsl:value-of select="text()"/></li>
66     </xsl:otherwise>
67     </xsl:choose>
68     </xsl:template>
69    
70 hertzog 530 <!-- Convert + in %2b for URL escaping ... -->
71     <xsl:template name="escape-name">
72     <xsl:param name="text"/>
73     <xsl:if test="contains($text,'+')">
74     <xsl:value-of select="substring-before($text,'+')"/>
75     <xsl:text>%2b</xsl:text>
76     <xsl:call-template name="escape-name">
77     <xsl:with-param name="text"><xsl:value-of select="substring-after($text,'+')"/></xsl:with-param>
78     </xsl:call-template>
79     </xsl:if>
80     <xsl:if test="not(contains($text,'+'))">
81     <xsl:value-of select="$text"/>
82     </xsl:if>
83     </xsl:template>
84    
85    
86 hertzog 347 <!-- All the work is done in a single template -->
87     <xsl:template match="source">
88    
89     <!-- Start of html -->
90     <html>
91     <head>
92 hertzog 350 <meta name="ROBOTS" content="NOFOLLOW"/>
93 hertzog 529 <link title="Default" rel="stylesheet" href="../common/pts.css"/>
94     <link title="Standard link rendering" rel="alternate stylesheet" href="../common/pts2.css"/>
95 hertzog 347 <title>Overview of <xsl:value-of select="$package"/> source package</title>
96     </head>
97     <body>
98 hertzog 357
99 hertzog 401 <form method="get" action="/common/index.html" style="float: right;">
100 hertzog 643 <!-- this link should make lynx/links happy [FG] -->
101     Jump to package (<a href="/">home page</a>): <br/>
102 hertzog 357 <input type="text" name="src" value=""/>
103     </form>
104 hertzog 347 <h1>Overview of <xsl:value-of select="$package"/> source package</h1>
105 hertzog 357
106 hertzog 347 <table class="containertable">
107     <tr class="containerrow" valign="top">
108     <td class="containercell">
109     <!-- LEFT SIDE -->
110     <table class="lefttable">
111     <tr class="titlerow">
112     <td class="titlecell" colspan="2">
113     General Information
114     </td></tr>
115     <tr class="normalrow">
116     <td class="labelcell">Last version</td>
117     <td class="contentcell"><xsl:value-of select="version"/></td>
118     </tr>
119     <xsl:if test="@release!='unstable'">
120     <tr class="normalrow">
121     <td class="labelcell">Distribution</td>
122     <td class="contentcell"><xsl:value-of select="@release"/></td>
123     </tr>
124     </xsl:if>
125     <tr class="normalrow">
126     <td class="labelcell">Maintainer</td>
127 hertzog 774 <td class="contentcell">
128     <xsl:element name="a">
129     <xsl:attribute name="href">
130     <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
131     <xsl:call-template name="escape-name">
132     <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>
133     </xsl:call-template>
134     </xsl:attribute>
135     <xsl:value-of select="maintainer/name"/>
136     </xsl:element>
137     [<a class="email" href="mailto:{maintainer/email}">mail</a>]
138     </td>
139 hertzog 347 </tr>
140     <tr class="normalrow">
141 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>
142 hertzog 347 <td class="contentcell">
143     <xsl:if test="uploaders">
144     <xsl:for-each select="uploaders/item">
145 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/>
146 hertzog 347 </xsl:for-each>
147     </xsl:if>
148     <xsl:if test="not(uploaders)">
149     <a class="none" title="You should find some co-maintainers ..." name="fake">None</a>
150     </xsl:if>
151     </td></tr>
152     <tr class="normalrow">
153     <td class="labelcell">Standards-Version</td>
154     <td class="contentcell"><xsl:value-of select="standards-version"/></td>
155     </tr>
156 hertzog 603 <tr class="normalrow">
157     <td class="labelcell">Priority &amp; Section</td>
158     <td class="contentcell"><xsl:value-of select="priority"/> - <xsl:value-of select="section"/></td>
159     </tr>
160 hertzog 529 <xsl:if test="architecture!='any' and architecture!='all'">
161     <tr class="normalrow">
162     <td class="labelcell">Architecture</td>
163     <td class="contentcell"><xsl:value-of select="architecture"/></td>
164     </tr>
165     </xsl:if>
166 hertzog 347
167     <tr class="titlerow">
168     <td class="titlecell" colspan="2">
169     Bugs Count
170     </td></tr>
171     <tr class="normalrow">
172     <td class="labelcell">All bugs</td>
173     <td class="contentcell">
174 hertzog 764 <xsl:element name="a">
175     <xsl:attribute name="href">
176     <xsl:text>http://bugs.debian.org/src:</xsl:text>
177     <xsl:call-template name="escape-name">
178     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
179     </xsl:call-template>
180     </xsl:attribute>
181     <xsl:if test="$hasother">
182     <xsl:value-of select="$other/bugs/@all"/>
183     </xsl:if>
184     </xsl:element>
185 hertzog 347 </td>
186     </tr>
187     <tr class="normalrow">
188     <td class="labelcell">Release Critical</td>
189     <td class="contentcell">
190 hertzog 530 <xsl:element name="a">
191     <xsl:attribute name="href">
192     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
193     <xsl:call-template name="escape-name">
194     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
195     </xsl:call-template>
196     <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>
197     </xsl:attribute>
198     <xsl:if test="$hasother">
199     <xsl:value-of select="$other/bugs/@rc"/>
200     </xsl:if>
201     </xsl:element>
202 hertzog 347 </td>
203     </tr>
204     <tr class="normalrow">
205     <td class="labelcell">Important and Normal</td>
206     <td class="contentcell">
207 hertzog 530 <xsl:element name="a">
208     <xsl:attribute name="href">
209     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
210     <xsl:call-template name="escape-name">
211     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
212     </xsl:call-template>
213     <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>
214     </xsl:attribute>
215     <xsl:if test="$hasother">
216     <xsl:value-of select="$other/bugs/@normal"/>
217     </xsl:if>
218     </xsl:element>
219 hertzog 347 </td>
220     </tr>
221     <tr class="normalrow">
222     <td class="labelcell">Minor and Wishlist</td>
223     <td class="contentcell">
224 hertzog 530 <xsl:element name="a">
225     <xsl:attribute name="href">
226     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
227     <xsl:call-template name="escape-name">
228     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
229     </xsl:call-template>
230     <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>
231     </xsl:attribute>
232     <xsl:if test="$hasother">
233     <xsl:value-of select="$other/bugs/@wishlist"/>
234     </xsl:if>
235     </xsl:element>
236 hertzog 347 </td>
237     </tr>
238     <tr class="normalrow">
239     <td class="labelcell">Fixed and Pending</td>
240     <td class="contentcell">
241 hertzog 530 <xsl:element name="a">
242     <xsl:attribute name="href">
243     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
244     <xsl:call-template name="escape-name">
245     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
246     </xsl:call-template>
247     <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
248     </xsl:attribute>
249     <xsl:if test="$hasother">
250     <xsl:value-of select="$other/bugs/@fixed"/>
251     </xsl:if>
252     </xsl:element>
253 hertzog 347 </td>
254     </tr>
255    
256     <tr class="titlerow">
257     <td class="titlecell" colspan="2">
258 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>
259 hertzog 347 </td></tr>
260     <tr class="normalrow">
261     <td class="labelcell">Subscribers count</td>
262     <td class="contentcell"><xsl:if test="$hasother">
263     <xsl:value-of select="$other/pts/@count"/>
264     </xsl:if></td>
265     </tr>
266     <tr class="normalrow">
267     <td class="contentcell" colspan="2">
268 hertzog 382 <form method="post" action="/cgi-bin/pts.cgi">
269 hertzog 347 <input type="hidden" name="package" value="{$package}"/>
270     <select name="what">
271     <option value="subscribe">Subscribe</option>
272     <option value="unsubscribe">Unsubscribe</option>
273     <option value="advanced">Advanced mode</option>
274     </select>
275     <input type="text" name="email" size="15" value="your email" onFocus="if(email.value=='your email'){{email.value=''}}"/>
276     <input type="submit" name="submit" value="Send"/>
277     </form>
278     </td>
279     </tr>
280    
281     <tr class="titlerow">
282     <td class="titlecell" colspan="2">
283     Binary Package(s)
284     </td></tr>
285     <tr class="normalrow">
286     <td class="normalcell" colspan="2" style="text-align: left">
287     <xsl:for-each select="binary/item">
288     <xsl:sort select="text()"/>
289     <xsl:variable name="pkg" select="text()"/>
290     <li>
291     <a href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>
292     <span style="font-size: 70%">
293     (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:
294 hertzog 530
295     <xsl:element name="a">
296     <xsl:attribute name="title">critical, grave and serious</xsl:attribute>
297     <xsl:attribute name="href">
298     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
299     <xsl:call-template name="escape-name">
300     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
301     </xsl:call-template>
302     <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>
303     </xsl:attribute>
304     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@rc"/>
305     </xsl:element>,
306    
307     <xsl:element name="a">
308     <xsl:attribute name="title">important and normal</xsl:attribute>
309     <xsl:attribute name="href">
310     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
311     <xsl:call-template name="escape-name">
312     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
313     </xsl:call-template>
314     <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>
315     </xsl:attribute>
316     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@normal"/>
317     </xsl:element>,
318    
319     <xsl:element name="a">
320     <xsl:attribute name="title">wishlist and minor</xsl:attribute>
321     <xsl:attribute name="href">
322     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
323     <xsl:call-template name="escape-name">
324     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
325     </xsl:call-template>
326     <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>
327     </xsl:attribute>
328     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/>
329     </xsl:element>,
330    
331     <xsl:element name="a">
332     <xsl:attribute name="title">pending and fixed</xsl:attribute>
333     <xsl:attribute name="href">
334     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
335     <xsl:call-template name="escape-name">
336     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
337     </xsl:call-template>
338     <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
339     </xsl:attribute>
340     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>
341     </xsl:element>)
342 hertzog 347 </span>
343     </li>
344     </xsl:for-each>
345     </td></tr>
346    
347     <tr class="titlerow">
348     <td class="titlecell" colspan="2">
349     Other available versions
350     </td></tr>
351     <xsl:if test="$hasexperimental">
352     <tr class="normalrow">
353     <td class="labelcell">Experimental</td>
354     <td class="contentcell">
355     <xsl:value-of select="document(concat('../base/', $dir, '/experimental.xml'))/source/version"/>
356     </td>
357     </tr>
358     </xsl:if>
359 hertzog 351 <xsl:if test="$hasstable-security">
360     <tr class="normalrow">
361     <td class="labelcell">Security Updates (stable)</td>
362     <td class="contentcell">
363     <xsl:value-of select="document(concat('../base/', $dir, '/stable-security.xml'))/source/version"/>
364     </td>
365     </tr>
366     </xsl:if>
367     <xsl:if test="$hastesting-security">
368     <tr class="normalrow">
369     <td class="labelcell">Security Updates (testing)</td>
370     <td class="contentcell">
371     <xsl:value-of select="document(concat('../base/', $dir, '/testing-security.xml'))/source/version"/>
372     </td>
373     </tr>
374     </xsl:if>
375 hertzog 347 <xsl:if test="$hastesting">
376     <tr class="normalrow">
377 hertzog 551 <td class="labelcell"><a href="http://www.debian.org/releases/testing/">Testing</a></td>
378 hertzog 347 <td class="contentcell">
379     <xsl:value-of select="document(concat('../base/', $dir, '/testing.xml'))/source/version"/>
380     </td>
381     </tr>
382     </xsl:if>
383 hertzog 351 <xsl:if test="$hast-p-u">
384     <tr class="normalrow">
385     <td class="labelcell">Testing Proposed Updates</td>
386     <td class="contentcell">
387     <xsl:value-of select="document(concat('../base/', $dir, '/t-p-u.xml'))/source/version"/>
388     </td>
389     </tr>
390     </xsl:if>
391 hertzog 347 <xsl:if test="$hasstable">
392     <tr class="normalrow">
393 hertzog 551 <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>
394 hertzog 347 <td class="contentcell">
395     <xsl:value-of select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/>
396     </td>
397     </tr>
398     </xsl:if>
399 hertzog 351 <xsl:if test="$hass-p-u">
400     <tr class="normalrow">
401     <td class="labelcell">Stable Proposed Updates</td>
402     <td class="contentcell">
403     <xsl:value-of select="document(concat('../base/', $dir, '/s-p-u.xml'))/source/version"/>
404     </td>
405     </tr>
406     </xsl:if>
407    
408 hertzog 347 <tr class="titlerow">
409     <td class="titlecell" colspan="2">
410     Other links
411     </td></tr>
412     <tr>
413     <td class="contentcell" colspan="2" style="text-align: left">
414     <xsl:if test="architecture!='all'">
415 hertzog 764 <li>
416     <xsl:element name="a">
417     <xsl:attribute name="href">
418     <xsl:text>http://buildd.debian.org/build.php?pkg=</xsl:text>
419     <xsl:call-template name="escape-name">
420     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
421     </xsl:call-template>
422     </xsl:attribute>
423 jeroen 903 <xsl:text>Buildd logs</xsl:text>
424 hertzog 764 </xsl:element>
425     </li>
426 hertzog 347 </xsl:if>
427 hertzog 692 <!-- DISABLED until ddtp.debian.org is back up
428 hertzog 764 <li>
429     <xsl:element name="a">
430     <xsl:attribute name="href">
431     <xsl:text>http://ddtp.debian.org/stats/pdesc/report.cgi?package=</xsl:text>
432     <xsl:call-template name="escape-name">
433     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
434     </xsl:call-template>
435     <xsl:text>&amp;lang=all&amp;type=src-drvbin&amp;subword=0</xsl:text>
436     </xsl:attribute>
437     Description's translations (DDTP)
438     </xsl:element>
439     </li>
440 hertzog 479 <xsl:if test="$other/@debconf='yes'">
441 hertzog 764 <li>
442     <xsl:element name="a">
443     <xsl:attribute name="href">
444     <xsl:text>http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&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     Debconf templates's translations (DDTP)
450     </xsl:element>
451     </li>
452 hertzog 479 </xsl:if>
453 hertzog 692 -->
454 hertzog 372 <xsl:if test="$hasunstable and $other/debcheck/@unstable='yes'">
455 hertzog 764 <li>
456     <xsl:element name="a">
457     <xsl:attribute name="href">
458     <xsl:text>http://qa.debian.org/debcheck.php?dist=unstable&amp;package=</xsl:text>
459     <xsl:call-template name="escape-name">
460     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
461     </xsl:call-template>
462     </xsl:attribute>
463 jeroen 903 <xsl:text>Debcheck on unstable</xsl:text>
464 hertzog 764 </xsl:element>
465     </li>
466 hertzog 347 </xsl:if>
467 hertzog 372 <xsl:if test="$hastesting and $other/debcheck/@testing='yes'">
468 hertzog 764 <li>
469     <xsl:element name="a">
470     <xsl:attribute name="href">
471     <xsl:text>http://qa.debian.org/debcheck.php?dist=testing&amp;package=</xsl:text>
472     <xsl:call-template name="escape-name">
473     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
474     </xsl:call-template>
475     </xsl:attribute>
476 jeroen 903 <xsl:text>Debcheck on testing</xsl:text>
477 hertzog 764 </xsl:element>
478     </li>
479 hertzog 347 </xsl:if>
480 hertzog 372 <xsl:if test="$hasstable and $other/debcheck/@stable='yes'">
481 hertzog 764 <li>
482     <xsl:element name="a">
483     <xsl:attribute name="href">
484     <xsl:text>http://qa.debian.org/debcheck.php?dist=stable&amp;package=</xsl:text>
485     <xsl:call-template name="escape-name">
486     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
487     </xsl:call-template>
488     </xsl:attribute>
489 jeroen 903 <xsl:text>Debcheck on stable</xsl:text>
490 hertzog 764 </xsl:element>
491     </li>
492 hertzog 347 </xsl:if>
493 hertzog 643 <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->
494     <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-/()&#34; ', &quot;'&quot;)"/>
495     <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '____________________')"/>
496     <li><a href="http://lintian.debian.org/reports/m{$_name}.html#{$package}">Lintian report</a></li>
497    
498 hertzog 347 </td>
499     </tr>
500    
501     <tr class="titlerow">
502     <td class="titlecell" colspan="2">
503     <xsl:element name="a">
504     <xsl:attribute name="class">
505     <xsl:text>titlelink</xsl:text>
506     </xsl:attribute>
507     <xsl:attribute name="href">
508     <xsl:call-template name="mirror"/>
509     <xsl:text>/</xsl:text>
510     <xsl:value-of select="directory"/>
511     <xsl:text>/</xsl:text>
512     </xsl:attribute>
513     <xsl:text>Source files</xsl:text>
514     </xsl:element>
515     </td></tr>
516     <tr class="normalrow">
517     <td class="normalcell" colspan="2" style="text-align: left">
518     <xsl:for-each select="files/item">
519     <li>
520     <xsl:element name="a">
521     <xsl:attribute name="class">srcfile</xsl:attribute>
522     <xsl:attribute name="href">
523     <xsl:call-template name="mirror"/>
524     <xsl:text>/</xsl:text>
525     <xsl:value-of select="../../directory"/>
526     <xsl:text>/</xsl:text>
527     <xsl:value-of select="filename"/>
528     </xsl:attribute>
529     <xsl:attribute name="title">
530     <xsl:value-of select="size"/>
531     <xsl:text> bytes</xsl:text>
532     </xsl:attribute>
533     <xsl:value-of select="filename"/>
534     </xsl:element>
535     </li>
536     </xsl:for-each>
537     </td></tr>
538    
539     </table>
540     <!-- END LEFT SIDE -->
541     </td><td class="containercell">
542     <!-- RIGHT SIDE -->
543     <table class="righttable">
544    
545    
546     <!-- Todo list -->
547     <xsl:variable name="todo">
548     <xsl:if test="@nmu">
549     <li>Incorporate and acknowledge the changes from the non maintainer upload.</li>
550     </xsl:if>
551     <xsl:if test="not(uploaders)and(priority='standard' or priority='required' or priority='important')">
552     <li>The package is of priority standard or higher, you should really find some co-maintainers.</li>
553     </xsl:if>
554     <xsl:if test="not(starts-with(standards-version, $lastsv))">
555 hertzog 572 <li>The package should be updated to follow the last version of
556 hertzog 553 <a href="http://www.debian.org/doc/debian-policy/">Debian Policy</a> (Standards-Version
557 hertzog 347 <xsl:value-of select="$lastsv"/> instead of
558     <xsl:value-of select="standards-version"/>).</li>
559     </xsl:if>
560     <xsl:if test="$hasother">
561     <xsl:for-each select="$other/todo/item">
562     <xsl:call-template name="outputitem"/>
563     </xsl:for-each>
564 hertzog 643 <!-- new upstream version goes in todo [FG] -->
565     <xsl:if test="$other/@watch='yes' and $other/watch/@new!='0'">
566     <li>A new upstream version was found:
567     (<xsl:value-of select="$other/watch/@new"/>). <a href="{$other/watch/@url}"><xsl:value-of select="$other/watch/@url"/></a></li>
568     </xsl:if>
569 hertzog 347 </xsl:if>
570     </xsl:variable>
571 hertzog 372 <xsl:if test="count($todo)>0 and string($todo)!=''">
572 hertzog 347 <tr class="titlerow">
573 hertzog 352 <td class="titlecell" style="background-color: blue">
574 hertzog 347 Todo
575     </td></tr>
576     <tr class="normalrow">
577     <td class="contentcell2"><xsl:copy-of select="$todo"/>
578     </td>
579     </tr>
580     </xsl:if>
581    
582     <!-- List of problems -->
583     <xsl:variable name="problems">
584 hertzog 357 <xsl:if test="$hasexcuse and document(concat('../base/', $dir, '/excuse.xml'))/excuse/@problematic">
585 hertzog 347 <li>The package has not yet entered <a
586 hertzog 639 href="http://ftp-master.debian.org/testing/update_excuses.html.gz#{$package}">testing</a>
587 hertzog 406 even though the <xsl:value-of select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/@limit"/>-day
588 hertzog 764 delay is over.
589     <xsl:element name="a">
590     <xsl:attribute name="href">
591     <xsl:text>http://bjorn.haxx.se/debian/testing.pl?package=</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:attribute>
596     Check why
597     </xsl:element>
598     .</li>
599 hertzog 347 </xsl:if>
600     <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">
601     <li>The package is severly out of date with respect to the Debian
602     Policy. Latest version is <xsl:value-of select="$lastsv"/>
603     and your package only follows
604     <xsl:value-of select="standards-version"/>...</li>
605     </xsl:if>
606     <xsl:if test="$hasother">
607 hertzog 560
608 jeroen 949 <!-- Override disparity handling. [JvW] -->
609     <xsl:if test="$other/@override='yes'">
610     <xsl:for-each select="$other/override/group">
611     <li>There were override disparities found in suite <xsl:value-of
612     select="@suite"/>:
613     <ul>
614     <xsl:for-each select="disparity">
615     <li><xsl:value-of select="text()"/></li>
616     </xsl:for-each>
617     </ul>
618     </li>
619     </xsl:for-each>
620     </xsl:if>
621    
622 hertzog 560 <!-- Wnpp handling. [PvR] -->
623     <xsl:if test="$other/@wnpp='yes'">
624     <li>
625     <xsl:choose>
626     <xsl:when test="$other/wnpp/@type='O'">
627     <span style="font-weight: bold">This package has been orphaned</span>.
628     This means that it does not have a real maintainer at the
629 hertzog 811 moment. Please consider adopting this package if you are interested in it.
630 hertzog 560 </xsl:when>
631     <xsl:when test="$other/wnpp/@type='ITA'">
632 hertzog 811 This package has been orphaned, but someone intends to maintain it.
633 hertzog 560 </xsl:when>
634     <xsl:when test="$other/wnpp/@type='RFA'">
635     The current maintainer is looking for someone who can take over
636 hertzog 811 maintenance of this package. If you are interested in this package,
637 hertzog 560 please consider taking it over. Alternatively you may
638     want to be co-maintainer in order to help the actual maintainer.
639     </xsl:when>
640 hertzog 811 <xsl:when test="$other/wnpp/@type='RFH'">
641     The current maintainer is looking for someone who can help with the
642     maintenance of this package. If you are interested in this package,
643     please consider helping out. One way you can help is offer to be a
644     co-maintainer or triage bugs in the bts.
645     </xsl:when>
646 hertzog 560 <xsl:when test="$other/wnpp/@type='ITP'">
647     The WNPP database contains an ITP (Intent To Package) entry for
648     this package. This is probably an error, as it has already been
649     packaged.
650     </xsl:when>
651     <xsl:when test="$other/wnpp/@type='RFP'">
652     The WNPP database contains an RFP (Request For Package) entry
653     for this package. This is probably an error, as it has already
654     been packaged.
655     </xsl:when>
656 jeroen 909 <xsl:when test="$other/wnpp/@type='RM'">
657     <span style="font-weight: bold">This package has been requested to be
658     removed</span>.
659     This means that, when this request gets processed by an ftp-master, this
660     package will no longer be in unstable, and will automatically be removed
661     from testing too afterwards. If for some reason you want keep this
662     package in unstable, please discuss so in the bug.
663     </xsl:when>
664 hertzog 560 <xsl:otherwise>
665     The WNPP database contains an entry for this package,
666     but it is unclear what kind of entry it is. This is probably an error.
667     </xsl:otherwise>
668     </xsl:choose>
669     <xsl:variable name="bn" select="$other/wnpp/@bugnumber"/>
670     Please see bug number <a href="http://bugs.debian.org/{$bn}">
671     #<xsl:value-of select="$bn"/></a> for more information.
672     </li>
673     </xsl:if>
674 hertzog 643
675     <!-- uscan output if present [FG] -->
676     <xsl:if test="$other/@watch='yes'">
677     <li>
678     <xsl:if test="$other/watch/@warning!=''">
679     uscan had problems while searching for a new upstream version: <xsl:value-of select="$other/watch/@warning"/>
680     </xsl:if>
681     </li>
682     </xsl:if>
683 hertzog 560
684     <!-- Misc problems reported -->
685 hertzog 347 <xsl:for-each select="$other/problems/item">
686     <xsl:call-template name="outputitem"/>
687     </xsl:for-each>
688     </xsl:if>
689     </xsl:variable>
690 hertzog 372 <xsl:if test="count($problems)>0 and string($problems)!=''">
691 hertzog 347 <tr class="titlerow">
692 hertzog 352 <td class="titlecell" style="background-color: red">
693 hertzog 347 Problems
694     </td></tr>
695     <tr class="normalrow">
696     <td class="contentcell2"><xsl:copy-of select="$problems"/>
697     </td>
698     </tr>
699     </xsl:if>
700    
701 hertzog 357 <xsl:if test="$hasexcuse">
702 hertzog 347 <tr class="titlerow">
703     <td class="titlecell">
704     Testing Status
705     </td></tr>
706     <tr class="normalrow">
707     <td class="contentcell2" style="text-align: left">
708 hertzog 357 <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
709 hertzog 347 <xsl:call-template name="outputitem"/>
710     </xsl:for-each>
711     </td>
712     </tr>
713     </xsl:if>
714 hertzog 560
715 hertzog 347
716     <xsl:variable name="static">
717 hertzog 357 <xsl:if test="$hasnews">
718     <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">
719 hertzog 347 <xsl:call-template name="outputitem"/>
720     </xsl:for-each>
721     </xsl:if>
722     </xsl:variable>
723 hertzog 372 <xsl:if test="count($static)>0 and string($static)!=''">
724 hertzog 347 <tr class="titlerow">
725     <td class="titlecell">
726     Static Information
727     </td></tr>
728     <tr class="normalrow">
729     <td class="contentcell2"><xsl:copy-of select="$static"/></td>
730     </tr>
731     </xsl:if>
732    
733     <xsl:variable name="news">
734 hertzog 357 <xsl:if test="$hasnews">
735     <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">
736 hertzog 347 <xsl:call-template name="outputitem"/>
737     </xsl:for-each>
738     </xsl:if>
739     </xsl:variable>
740 hertzog 372 <xsl:if test="count($news)>0 and string($news)!=''">
741 hertzog 347 <tr class="titlerow">
742     <td class="titlecell">
743     Latest News
744     </td></tr>
745     <tr class="normalrow">
746     <td class="contentcell2"><xsl:copy-of select="$news"/></td>
747     </tr>
748     </xsl:if>
749    
750     </table>
751     <!-- END RIGHT SIDE -->
752     </td></tr>
753     </table>
754     <hr/>
755 hertzog 774 Debian Package Tracking System - Copyright 2002-2004 Raphaël Hertzog<br/>
756 hertzog 347 Last modified : <xsl:value-of select="$date"/>
757     </body>
758     </html>
759     </xsl:template>
760    
761     </xsl:stylesheet>

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5