/[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 1774 - (hide annotations) (download) (as text)
Sat Dec 1 18:08:10 2007 UTC (5 years, 5 months ago) by zack
File MIME type: application/xml
File size: 43997 byte(s)
- add showing of upstream homepage (i.e. "Homepage:" field) when available
1 jeroen 1170 <?xml version="1.0" encoding="utf-8" ?>
2 hertzog 351
3     <!--
4 zack 1768 # Copyright 2002-2007 Raphaël Hertzog and others
5 hertzog 351 # This file is distributed under the terms of the General Public License
6     # version 2 or (at your option) any later version.
7     -->
8    
9 hertzog 347 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
10    
11 hertzog 765 <xsl:output encoding="UTF-8" method="html"/>
12 hertzog 347
13     <xsl:param name="package"/>
14     <xsl:param name="dir"/>
15     <xsl:param name="date"/>
16 jeroen 1021 <xsl:param name="hasoldstable" select="''"/>
17 hertzog 347 <xsl:param name="hasstable" select="''"/>
18     <xsl:param name="hastesting" select="''"/>
19     <xsl:param name="hasunstable" select="''"/>
20     <xsl:param name="hasexperimental" select="''"/>
21     <xsl:param name="hasother" select="''"/>
22 hertzog 351 <xsl:param name="hass-p-u" select="''"/>
23     <xsl:param name="hast-p-u" select="''"/>
24 jeroen 1021 <xsl:param name="hasoldstable-security" select="''"/>
25 hertzog 351 <xsl:param name="hasstable-security" select="''"/>
26     <xsl:param name="hastesting-security" select="''"/>
27 hertzog 1090 <xsl:param name="hassecure-testing" select="''"/>
28     <xsl:param name="hasvolatile" select="''"/>
29 hertzog 357 <xsl:param name="hasnews" select="''"/>
30     <xsl:param name="hasexcuse" select="''"/>
31 hertzog 347
32 zack 1773 <xsl:variable name="other"
33     select="document(concat('../base/', $dir, '/other.xml'))/other"/>
34     <xsl:variable name="low-nmu-emails"
35     select="document('../base/low_threshold_nmu.emails.xml')/emails"/>
36 hertzog 347
37     <!-- Those variables controls the todo and problem item concerning
38     standards-version not being up to date -->
39 hertzog 1345 <xsl:variable name="lastsv" select="'3.7.2'"/>
40 hertzog 347 <xsl:variable name="lastmajorsv" select="'3.'"/>
41    
42     <!-- Named templates aka functions -->
43     <xsl:template name="mirror">
44 jeroen 1024 <xsl:text>http://ftp.debian.org/debian</xsl:text>
45 hertzog 347 </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 jeroen 1170 <!-- Convert + in %2b for URL escaping. Should actually first also do
71     other-to-%xx, especially % to %25... Fortunately, that's rare -->
72 hertzog 530 <xsl:template name="escape-name">
73     <xsl:param name="text"/>
74     <xsl:if test="contains($text,'+')">
75     <xsl:value-of select="substring-before($text,'+')"/>
76     <xsl:text>%2b</xsl:text>
77     <xsl:call-template name="escape-name">
78     <xsl:with-param name="text"><xsl:value-of select="substring-after($text,'+')"/></xsl:with-param>
79     </xsl:call-template>
80     </xsl:if>
81     <xsl:if test="not(contains($text,'+'))">
82     <xsl:value-of select="$text"/>
83     </xsl:if>
84     </xsl:template>
85    
86 jeroen 1030 <!-- Strip epoch -->
87     <xsl:template name="strip-epoch">
88     <xsl:param name="version"/>
89     <xsl:if test="contains($version,':')">
90     <xsl:value-of select="substring-after($version,':')"/>
91     </xsl:if>
92     <xsl:if test="not(contains($version,':'))">
93     <xsl:value-of select="$version"/>
94     </xsl:if>
95     </xsl:template>
96 hertzog 530
97 hertzog 1412 <xsl:template name="add-vcs-info">
98     <xsl:if test="repository">
99     <tr>
100     <td class="labelcell">
101 filippo 1500 <xsl:text>Version Control</xsl:text>
102 hertzog 1412 </td>
103     <td class="contentcell">
104 filippo 1500 <xsl:if test="repository/vcs[@kind='browser']">
105     <a href="{repository/vcs[@kind='browser']/@url}">
106     <xsl:text>browser</xsl:text>
107     </a>
108     <br />
109     </xsl:if>
110     <xsl:if test="repository/vcs[@kind!='browser']">
111     <xsl:text>raw: </xsl:text>
112     <xsl:for-each select="repository/vcs[@kind!='browser']">
113     <xsl:sort select="@kind" />
114     <a href="{@url}">
115     <xsl:value-of select="@kind" />
116     </a>
117     <xsl:if test="position()!=last()">
118     <xsl:text>, </xsl:text>
119     </xsl:if>
120     </xsl:for-each>
121     </xsl:if>
122 hertzog 1412 </td>
123     </tr>
124     </xsl:if>
125     </xsl:template>
126 jeroen 1030
127 zack 1748 <xsl:template name="add-maintenance-info">
128 zack 1773 <xsl:param name="email" />
129 zack 1748 <xsl:variable name="dm">
130     <xsl:if test="dm-upload-allowed and string(dm-upload-allowed)='yes'">
131     <xsl:text>true</xsl:text>
132     </xsl:if>
133     </xsl:variable>
134 zack 1750 <xsl:variable name="lownmu">
135 zack 1773 <xsl:if test="$low-nmu-emails/email[text()=$email]">
136 zack 1750 <xsl:text>true</xsl:text>
137     </xsl:if>
138     </xsl:variable>
139 zack 1748
140 zack 1750 <xsl:if test="string($dm)!='' or string($lownmu)!=''">
141 zack 1748 <tr>
142     <td class="labelcell">
143     <xsl:text>Maintenance info</xsl:text>
144     </td>
145     <td class="contentcell">
146    
147     <xsl:if test="string($dm)!=''">
148     <span class="dm-tag">
149     <a href="http://www.debian.org/vote/2007/vote_003"><acronym title="Debian Maintainer Upload Allowed: can be uploaded by Debian Maintainers">DMUA</acronym></a>
150     </span>
151     </xsl:if>
152    
153 zack 1750 <xsl:if test="string($lownmu)!=''">
154     <span class="lownmu-tag">
155     <a href="http://wiki.debian.org/LowThresholdNmu"><acronym
156 zack 1751 title="maintainer agrees with Low Threshold NMU, see wiki page for details">LowNMU</acronym></a>
157 zack 1750 </span>
158     </xsl:if>
159 zack 1748 </td>
160     </tr>
161     </xsl:if>
162     </xsl:template>
163    
164 zack 1745 <xsl:template name="output-news">
165     <xsl:param name="news" />
166    
167     <xsl:if test="count($news)>0 and string($news)!=''">
168     <tr class="titlerow">
169     <td class="titlecell">
170 zack 1774 Latest news <a class="feedlink" href="{$package}/news.rss20.xml">RSS</a>
171 zack 1745 </td></tr>
172     <tr class="normalrow">
173     <td class="contentcell2">
174 zack 1770 <ul id="news-list"><xsl:copy-of select="$news"/></ul>
175 zack 1745 </td>
176     </tr>
177     </xsl:if>
178     </xsl:template>
179    
180     <xsl:template name="output-static">
181     <xsl:param name="static" />
182    
183     <xsl:if test="count($static)>0 and string($static)!=''">
184     <tr class="titlerow">
185     <td class="titlecell">
186     Static Information
187     </td></tr>
188     <tr class="normalrow">
189     <td class="contentcell2">
190     <ul><xsl:copy-of select="$static"/></ul>
191     </td>
192     </tr>
193     </xsl:if>
194     </xsl:template>
195    
196 zack 1757 <xsl:template name="categorize-srcfile">
197     <!-- used to recognize (and tag afterwards) well-known type of source package
198     components: dsc, diff, orig -->
199     <xsl:choose>
200     <xsl:when test="substring(filename,string-length(filename)-2, 3)='dsc'">
201 zack 1759 <xsl:text>dsc</xsl:text>
202 zack 1757 </xsl:when>
203     <xsl:when test="substring(filename,string-length(filename)-6, 7)='diff.gz'">
204 zack 1759 <xsl:text>diff</xsl:text>
205 zack 1757 </xsl:when>
206 zack 1772 <xsl:when test="substring(filename,string-length(filename)-5, 3)='tar'">
207 zack 1759 <xsl:text>orig</xsl:text>
208 zack 1757 </xsl:when>
209     <xsl:otherwise><xsl:text></xsl:text></xsl:otherwise>
210     </xsl:choose>
211     </xsl:template>
212    
213 zack 1765 <xsl:template name="maintainer-email">
214     <xsl:param name="email" />
215     <a class="email" href="mailto:{$email}">
216     <img alt="[email]" src="../common/email.png" title="email" />
217     </a>
218     </xsl:template>
219    
220 zack 1768 <xsl:template name="general-information">
221 hertzog 347 <tr class="titlerow">
222 zack 1768 <td class="titlecell" colspan="2">
223     General information
224     </td>
225     </tr>
226 hertzog 347 <tr class="normalrow">
227 zack 1768 <td class="labelcell">Latest version</td>
228     <td class="contentcell"><xsl:value-of select="version"/></td>
229 hertzog 347 </tr>
230     <xsl:if test="@release!='unstable'">
231 zack 1768 <tr class="normalrow">
232     <td class="labelcell">Distribution</td>
233     <td class="contentcell"><xsl:value-of select="@release"/></td>
234     </tr>
235 hertzog 347 </xsl:if>
236     <tr class="normalrow">
237 zack 1768 <td class="labelcell">Maintainer</td>
238     <td class="contentcell">
239 jeroen 1170 <xsl:element name="a">
240 zack 1768 <xsl:attribute name="href">
241     <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
242     <xsl:call-template name="escape-name">
243     <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>
244     </xsl:call-template>
245     </xsl:attribute>
246     <xsl:value-of select="maintainer/name"/>
247 jeroen 1170 </xsl:element>
248 zack 1765 <xsl:text> </xsl:text>
249     <xsl:call-template name="maintainer-email">
250 zack 1768 <xsl:with-param name="email" select="maintainer/email" />
251 zack 1765 </xsl:call-template>
252 zack 1768 </td>
253     </tr>
254     <tr class="normalrow">
255     <td class="labelcell"><a href="http://www.debian.org/doc/manuals/developers-reference/ch-pkgs.en.html#s-collaborative-maint">Co-Maintainers</a></td>
256     <td class="contentcell">
257     <xsl:if test="uploaders">
258     <xsl:for-each select="uploaders/item">
259     <xsl:element name="a">
260     <xsl:attribute name="href">
261     <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
262     <xsl:call-template name="escape-name">
263     <xsl:with-param name="text"><xsl:value-of select="email"/></xsl:with-param>
264     </xsl:call-template>
265     </xsl:attribute>
266     <xsl:value-of select="name"/>
267     </xsl:element>
268     <xsl:text> </xsl:text>
269     <xsl:call-template name="maintainer-email">
270     <xsl:with-param name="email" select="email" />
271     </xsl:call-template>
272     <br />
273     </xsl:for-each>
274     </xsl:if>
275     <xsl:if test="not(uploaders)">
276     <a class="none" title="You should find some co-maintainers ..." name="fake">None</a>
277     </xsl:if>
278 zack 1773 <xsl:call-template name='add-maintenance-info'>
279     <xsl:with-param name="email" select="maintainer/email" />
280     </xsl:call-template>
281 hertzog 347 </td></tr>
282     <tr class="normalrow">
283 zack 1768 <td class="labelcell">Standards-Version</td>
284     <td class="contentcell"><xsl:value-of select="standards-version"/></td>
285 hertzog 347 </tr>
286 hertzog 603 <tr class="normalrow">
287 zack 1768 <td class="labelcell">Priority &amp; Section</td>
288     <td class="contentcell"><xsl:value-of select="priority"/> - <xsl:value-of select="section"/></td>
289 hertzog 603 </tr>
290 hertzog 1412 <xsl:call-template name='add-vcs-info' />
291 hertzog 529 <xsl:if test="architecture!='any' and architecture!='all'">
292 zack 1768 <tr class="normalrow">
293     <td class="labelcell">Architecture</td>
294     <td class="contentcell"><xsl:value-of select="architecture"/></td>
295     </tr>
296 hertzog 529 </xsl:if>
297 zack 1768 </xsl:template>
298    
299     <xsl:template name="bugs-count">
300 hertzog 347 <tr class="titlerow">
301 zack 1768 <td class="titlecell" colspan="2">
302     Bugs count
303     </td>
304     </tr>
305 zack 1756 <tr class="normalrow" id="bugs_all">
306 zack 1768 <td class="labelcell">All bugs</td>
307     <td class="contentcell">
308     <xsl:element name="a">
309     <xsl:attribute name="href">
310     <xsl:text>http://bugs.debian.org/src:</xsl:text>
311     <xsl:call-template name="escape-name">
312     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
313     </xsl:call-template>
314     </xsl:attribute>
315     <xsl:if test="$hasother">
316     <xsl:value-of select="$other/bugs/@all"/>
317     </xsl:if>
318     </xsl:element>
319     </td>
320 hertzog 347 </tr>
321 zack 1756 <tr class="normalrow" id="bugs_rc">
322 zack 1768 <td class="labelcell"><span class="indented"><acronym title="Release Critical">RC</acronym> bugs</span></td>
323     <td class="contentcell">
324     <xsl:element name="a">
325     <xsl:attribute name="href">
326     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
327     <xsl:call-template name="escape-name">
328     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
329     </xsl:call-template>
330     <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>
331     </xsl:attribute>
332     <xsl:if test="$hasother">
333     <xsl:value-of select="$other/bugs/@rc"/>
334     </xsl:if>
335     </xsl:element>
336     </td>
337 hertzog 347 </tr>
338 zack 1756 <tr class="normalrow" id="bugs_in">
339 zack 1768 <td class="labelcell"><span class="indented"><acronym title="Important and Normal">I&amp;N bugs</acronym></span></td>
340     <td class="contentcell">
341     <xsl:element name="a">
342     <xsl:attribute name="href">
343     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
344     <xsl:call-template name="escape-name">
345     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
346     </xsl:call-template>
347     <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>
348     </xsl:attribute>
349     <xsl:if test="$hasother">
350     <xsl:value-of select="$other/bugs/@normal"/>
351     </xsl:if>
352     </xsl:element>
353     </td>
354 hertzog 347 </tr>
355 zack 1756 <tr class="normalrow" id="bugs_mw">
356 zack 1768 <td class="labelcell"><span class="indented"><acronym title="Minor and Wishlist">M&amp;W bugs</acronym></span></td>
357     <td class="contentcell">
358     <xsl:element name="a">
359     <xsl:attribute name="href">
360     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
361     <xsl:call-template name="escape-name">
362     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
363     </xsl:call-template>
364     <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>
365     </xsl:attribute>
366     <xsl:if test="$hasother">
367     <xsl:value-of select="$other/bugs/@wishlist"/>
368     </xsl:if>
369     </xsl:element>
370     </td>
371 hertzog 347 </tr>
372 zack 1756 <tr class="normalrow" id="bugs_fp">
373 zack 1768 <td class="labelcell"><span class="indented"><acronym title="Fixed and Pending">F&amp;P bugs</acronym></span></td>
374     <td class="contentcell">
375     <xsl:element name="a">
376     <xsl:attribute name="href">
377     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
378     <xsl:call-template name="escape-name">
379     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
380     </xsl:call-template>
381     <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
382     </xsl:attribute>
383     <xsl:if test="$hasother">
384     <xsl:value-of select="$other/bugs/@fixed"/>
385     </xsl:if>
386     </xsl:element>
387     </td>
388 hertzog 347 </tr>
389 zack 1768 </xsl:template>
390 hertzog 347
391 zack 1768 <xsl:template name="pts-subscription">
392 hertzog 347 <tr class="titlerow">
393 zack 1768 <td class="titlecell" colspan="2">
394     <a class="titlelink" href="http://www.debian.org/doc/manuals/developers-reference/ch-resources.en.html#s-pkg-tracking-system"><acronym title="Package Tracking System">PTS</acronym></a> subscription
395 hertzog 347 </td></tr>
396     <tr class="normalrow">
397 zack 1768 <td class="labelcell">Subscribers count</td>
398     <td class="contentcell"><xsl:if test="$hasother">
399     <xsl:value-of select="$other/pts/@count"/>
400     </xsl:if></td>
401 hertzog 347 </tr>
402     <tr class="normalrow">
403 zack 1768 <td class="contentcell" colspan="2">
404     <form method="post" action="/cgi-bin/pts.cgi">
405     <p>
406     <input type="hidden" name="package" value="{$package}"/>
407     <select name="what">
408     <option value="subscribe">Subscribe</option>
409     <option value="unsubscribe">Unsubscribe</option>
410     <option value="advanced">Advanced mode</option>
411     </select>
412     <input type="text" name="email" size="15" value="your email" onFocus="if(email.value=='your email'){{email.value=''}}"/>
413     <input type="submit" name="submit" value="Send"/>
414     </p>
415     </form>
416     </td>
417 hertzog 347 </tr>
418 zack 1768 </xsl:template>
419 hertzog 347
420 zack 1768 <xsl:template name="binary-packages">
421 hertzog 347 <tr class="titlerow">
422 zack 1768 <td class="titlecell" colspan="2">
423     Binary package(s)
424 hertzog 347 </td></tr>
425     <tr class="normalrow">
426 zack 1768 <td class="normalcell" colspan="2" style="text-align: left">
427     <ul>
428     <xsl:for-each select="binary/item">
429     <xsl:sort select="text()"/>
430     <xsl:variable name="pkg" select="text()"/>
431     <li class="binpkg">
432     <a class="binpkg" href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>
433     <span style="font-size: 70%">
434     (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:
435 hertzog 530
436 zack 1768 <xsl:element name="a">
437     <xsl:attribute name="title">critical, grave and serious</xsl:attribute>
438     <xsl:attribute name="href">
439     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
440     <xsl:call-template name="escape-name">
441     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
442     </xsl:call-template>
443     <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>
444     </xsl:attribute>
445     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@rc"/>
446     </xsl:element>,
447 hertzog 530
448 zack 1768 <xsl:element name="a">
449     <xsl:attribute name="title">important and normal</xsl:attribute>
450     <xsl:attribute name="href">
451     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
452     <xsl:call-template name="escape-name">
453     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
454     </xsl:call-template>
455     <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>
456     </xsl:attribute>
457     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@normal"/>
458     </xsl:element>,
459 hertzog 530
460 zack 1768 <xsl:element name="a">
461     <xsl:attribute name="title">wishlist and minor</xsl:attribute>
462     <xsl:attribute name="href">
463     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
464     <xsl:call-template name="escape-name">
465     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
466     </xsl:call-template>
467     <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>
468     </xsl:attribute>
469     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/>
470     </xsl:element>,
471    
472     <xsl:element name="a">
473     <xsl:attribute name="title">pending and fixed</xsl:attribute>
474     <xsl:attribute name="href">
475     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
476     <xsl:call-template name="escape-name">
477     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
478     </xsl:call-template>
479     <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
480     </xsl:attribute>
481     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>
482     </xsl:element>)
483     </span>
484     </li>
485     </xsl:for-each>
486 djpig 1085 </ul></td></tr>
487 zack 1768 </xsl:template>
488 hertzog 347
489 zack 1768 <xsl:template name="available-versions">
490 hertzog 347 <tr class="titlerow">
491 zack 1768 <td class="titlecell" colspan="2">
492     Available versions
493 hertzog 347 </td></tr>
494 jeroen 1027
495     <!-- oldstable -->
496     <xsl:if test="$hasoldstable">
497 zack 1768 <tr class="normalrow">
498     <td class="labelcell"><a href="http://www.debian.org/releases/sarge/">Oldstable</a></td>
499     <td class="contentcell">
500     <xsl:value-of select="document(concat('../base/', $dir, '/oldstable.xml'))/source/version"/>
501     </td>
502     </tr>
503 hertzog 347 </xsl:if>
504 jeroen 1021 <xsl:if test="$hasoldstable-security">
505 zack 1768 <tr class="normalrow">
506     <td class="labelcell"><small>Oldstable Security Updates</small></td>
507     <td class="contentcell">
508     <xsl:value-of select="document(concat('../base/', $dir, '/oldstable-security.xml'))/source/version"/>
509     </td>
510     </tr>
511 jeroen 1021 </xsl:if>
512 jeroen 1027
513     <!-- stable -->
514     <xsl:if test="$hasstable">
515 zack 1768 <tr class="normalrow">
516     <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>
517     <td class="contentcell">
518     <xsl:value-of select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/>
519     </td>
520     </tr>
521 jeroen 1027 </xsl:if>
522 hertzog 351 <xsl:if test="$hasstable-security">
523 zack 1768 <tr class="normalrow">
524     <td class="labelcell"><small>Stable Security Updates</small></td>
525     <td class="contentcell">
526     <xsl:value-of select="document(concat('../base/', $dir, '/stable-security.xml'))/source/version"/>
527     </td>
528     </tr>
529 hertzog 351 </xsl:if>
530 jeroen 1027 <xsl:if test="$hass-p-u">
531 zack 1768 <tr class="normalrow">
532     <td class="labelcell"><small>Stable Proposed Updates</small></td>
533     <td class="contentcell">
534     <xsl:value-of select="document(concat('../base/', $dir, '/s-p-u.xml'))/source/version"/>
535     </td>
536     </tr>
537 hertzog 351 </xsl:if>
538 jeroen 1027
539     <!-- testing -->
540 hertzog 347 <xsl:if test="$hastesting">
541 zack 1768 <tr class="normalrow">
542     <td class="labelcell"><a href="http://www.debian.org/releases/testing/">Testing</a></td>
543     <td class="contentcell">
544     <xsl:value-of select="document(concat('../base/', $dir, '/testing.xml'))/source/version"/>
545     </td>
546     </tr>
547 hertzog 347 </xsl:if>
548 jeroen 1027 <xsl:if test="$hastesting-security">
549 zack 1768 <tr class="normalrow">
550     <td class="labelcell"><small>Testing Security Updates</small></td>
551     <td class="contentcell">
552     <xsl:value-of select="document(concat('../base/', $dir, '/testing-security.xml'))/source/version"/>
553     </td>
554     </tr>
555 hertzog 351 </xsl:if>
556 jeroen 1027 <xsl:if test="$hast-p-u">
557 zack 1768 <tr class="normalrow">
558     <td class="labelcell"><small>Testing Proposed Updates</small></td>
559     <td class="contentcell">
560     <xsl:value-of select="document(concat('../base/', $dir, '/t-p-u.xml'))/source/version"/>
561     </td>
562     </tr>
563 jeroen 1021 </xsl:if>
564 zack 1768
565 hertzog 1049 <!-- unstable -->
566 jeroen 1027 <xsl:if test="$hasunstable">
567 zack 1768 <tr class="normalrow">
568     <td class="labelcell">Unstable</td>
569     <td class="contentcell">
570     <xsl:value-of select="document(concat('../base/', $dir, '/unstable.xml'))/source/version"/>
571     </td>
572     </tr>
573 hertzog 347 </xsl:if>
574 zack 1768
575 jeroen 1027 <!-- experimental -->
576     <xsl:if test="$hasexperimental">
577 zack 1768 <tr class="normalrow">
578     <td class="labelcell">Experimental</td>
579     <td class="contentcell">
580     <xsl:value-of select="document(concat('../base/', $dir, '/experimental.xml'))/source/version"/>
581     </td>
582     </tr>
583 hertzog 351 </xsl:if>
584 jeroen 1027
585 hertzog 1090 <!-- secure-testing -->
586     <xsl:if test="$hassecure-testing">
587 zack 1768 <tr class="normalrow">
588     <td class="labelcell">Secure testing</td>
589     <td class="contentcell">
590     <xsl:value-of select="document(concat('../base/', $dir, '/secure-testing.xml'))/source/version"/>
591     </td>
592     </tr>
593 hertzog 1090 </xsl:if>
594    
595     <!-- volatile -->
596     <xsl:if test="$hasvolatile">
597 zack 1768 <tr class="normalrow">
598     <td class="labelcell">Volatile</td>
599     <td class="contentcell">
600     <xsl:value-of select="document(concat('../base/', $dir, '/volatile.xml'))/source/version"/>
601     </td>
602     </tr>
603 hertzog 1090 </xsl:if>
604 zack 1768 </xsl:template>
605 hertzog 1090
606 zack 1768 <xsl:template name="patches">
607 hertzog 1049 <!-- Patches list [FG] -->
608     <xsl:if test="$other/@patches='yes'">
609     <tr class="titlerow">
610 zack 1768 <td class="titlecell" colspan="2">
611     Patches
612 hertzog 1049 </td></tr>
613     <tr>
614 zack 1768 <td class="contentcell" colspan="2" style="text-align: left">
615     <ul>
616     <xsl:for-each select="$other/patches/item">
617     <li>
618     <a href="{$other/patches/item/@url}">Patch from <xsl:value-of select="$other/patches/item/@distro"/> for version <xsl:value-of select="$other/patches/item/@version"/></a>
619     </li>
620     </xsl:for-each>
621     <xsl:if test="$other/bugs/@patch!='0'">
622     <li>
623     <xsl:element name="a">
624     <xsl:attribute name="href">
625     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
626     <xsl:call-template name="escape-name">
627     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
628     </xsl:call-template>
629     <xsl:text>&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done</xsl:text>
630     </xsl:attribute>
631     Patches from BTS (<xsl:value-of select="$other/bugs/@patch"/>)
632     </xsl:element>
633     </li>
634     </xsl:if>
635     </ul>
636     </td>
637 hertzog 1049 </tr>
638     </xsl:if>
639 zack 1768 </xsl:template>
640 hertzog 1049
641 zack 1768 <xsl:template name="other-links">
642 hertzog 347 <tr class="titlerow">
643 zack 1768 <td class="titlecell" colspan="2">
644     Other links
645 hertzog 347 </td></tr>
646     <tr>
647 zack 1768 <td class="contentcell" colspan="2" style="text-align: left">
648     <ul>
649 zack 1774 <xsl:if test="homepage">
650     <li> <a href="{homepage}">Upstream homepage</a> </li>
651     </xsl:if>
652 zack 1768 <li>
653     <xsl:element name="a">
654     <xsl:attribute name="href">
655     <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
656     <xsl:value-of select="directory"/>
657     <xsl:text>/current/changelog</xsl:text>
658     </xsl:attribute>
659     <xsl:text>Changelog</xsl:text>
660     </xsl:element>
661     /
662     <xsl:element name="a">
663     <xsl:attribute name="href">
664     <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
665     <xsl:value-of select="directory"/>
666     <xsl:text>/current/copyright</xsl:text>
667     </xsl:attribute>
668     <xsl:text>Copyright</xsl:text>
669     </xsl:element>
670     </li>
671     <xsl:if test="architecture!='all'">
672     <li>
673     <xsl:element name="a">
674     <xsl:attribute name="href">
675     <xsl:text>http://buildd.debian.org/pkg.cgi?pkg=</xsl:text>
676     <xsl:call-template name="escape-name">
677     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
678     </xsl:call-template>
679     </xsl:attribute>
680     <xsl:text>Buildd logs</xsl:text>
681     </xsl:element>
682     <xsl:text> (</xsl:text>
683     <xsl:element name="a">
684     <xsl:attribute name="href">
685     <xsl:text>http://experimental.debian.net/build.php?pkg=</xsl:text>
686     <xsl:call-template name="escape-name">
687     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
688     </xsl:call-template>
689     </xsl:attribute>
690     <xsl:text>more</xsl:text>
691     </xsl:element>
692     <xsl:text>)</xsl:text>
693     </li>
694     </xsl:if>
695     <!-- DISABLED until ddtp.debian.org is back up
696     <li>
697     <xsl:element name="a">
698     <xsl:attribute name="href">
699     <xsl:text>http://ddtp.debian.org/stats/pdesc/report.cgi?package=</xsl:text>
700     <xsl:call-template name="escape-name">
701     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
702     </xsl:call-template>
703     <xsl:text>&amp;lang=all&amp;type=src-drvbin&amp;subword=0</xsl:text>
704     </xsl:attribute>
705     Description's translations (DDTP)
706     </xsl:element>
707     </li>
708     <xsl:if test="$other/@debconf='yes'">
709     <li>
710     <xsl:element name="a">
711     <xsl:attribute name="href">
712     <xsl:text>http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&amp;package=</xsl:text>
713     <xsl:call-template name="escape-name">
714     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
715     </xsl:call-template>
716     </xsl:attribute>
717     Debconf templates's translations (DDTP)
718     </xsl:element>
719     </li>
720     </xsl:if>
721     -->
722     <xsl:if test="($hasunstable and $other/debcheck/@unstable='yes')
723     or ($hastesting and $other/debcheck/@testing='yes')
724     or ($hasstable and $other/debcheck/@stable='yes')">
725     <li>
726     Debcheck on:
727     <xsl:if test="$hasunstable">
728     <xsl:text> </xsl:text>
729     <xsl:element name="a">
730     <xsl:attribute name="href">
731     <xsl:text>http://qa.debian.org/debcheck.php?dist=unstable&amp;package=</xsl:text>
732     <xsl:call-template name="escape-name">
733     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
734     </xsl:call-template>
735     </xsl:attribute>
736     <xsl:text>unstable</xsl:text>
737     </xsl:element>
738     </xsl:if>
739     <xsl:if test="$hastesting">
740     <xsl:text> </xsl:text>
741     <xsl:element name="a">
742     <xsl:attribute name="href">
743     <xsl:text>http://qa.debian.org/debcheck.php?dist=testing&amp;package=</xsl:text>
744     <xsl:call-template name="escape-name">
745     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
746     </xsl:call-template>
747     </xsl:attribute>
748     <xsl:text>testing</xsl:text>
749     </xsl:element>
750     </xsl:if>
751     <xsl:if test="$hasstable">
752     <xsl:text> </xsl:text>
753     <xsl:element name="a">
754     <xsl:attribute name="href">
755     <xsl:text>http://qa.debian.org/debcheck.php?dist=stable&amp;package=</xsl:text>
756     <xsl:call-template name="escape-name">
757     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
758     </xsl:call-template>
759     </xsl:attribute>
760     <xsl:text>stable</xsl:text>
761     </xsl:element>
762     </xsl:if>
763     </li>
764     </xsl:if>
765     <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->
766     <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-~/()&#34; ', &quot;'&quot;)"/>
767     <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '_____________________')"/>
768     <li><a href="http://lintian.debian.org/reports/m{$_name}.html#{$package}">Lintian report</a></li>
769     <li>
770     <xsl:element name="a">
771     <xsl:attribute name="href">
772     <xsl:text>http://qa.debian.org/developer.php?popcon=</xsl:text>
773     <xsl:call-template name="escape-name">
774     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
775     </xsl:call-template>
776     </xsl:attribute>
777     <xsl:text>Popcon stats</xsl:text>
778     </xsl:element>
779     </li>
780     <li>
781     <xsl:element name="a">
782     <xsl:attribute name="href">
783     <xsl:text>http://svnbuildstat.debian.net/packages/info/</xsl:text>
784     <xsl:call-template name="escape-name">
785     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
786     </xsl:call-template>
787     </xsl:attribute>
788     <xsl:text>Svnbuildstat</xsl:text>
789     </xsl:element>
790     </li>
791     </ul>
792     </td>
793 hertzog 347 </tr>
794 zack 1768 </xsl:template>
795 hertzog 347
796 zack 1768 <xsl:template name="package-files">
797 hertzog 347 <tr class="titlerow">
798 zack 1768 <td class="titlecell" colspan="2">
799     Package files
800 hertzog 347 </td></tr>
801 zack 1759 <tr class="titlerow">
802 zack 1768 <td class="labelcell">
803     <xsl:element name="a">
804     <xsl:attribute name="href">
805     <xsl:call-template name="mirror"/>
806     <xsl:text>/</xsl:text>
807     <xsl:value-of select="directory"/>
808     <xsl:text>/</xsl:text>
809     </xsl:attribute>
810     <xsl:text>Source files</xsl:text>
811 zack 1758 </xsl:element>
812 zack 1768 </td>
813     <td class="contentcell" id="src_files">
814     <ul>
815     <xsl:for-each select="files/item">
816     <xsl:variable name="filetype">
817     <xsl:call-template name="categorize-srcfile" />
818     </xsl:variable>
819     <xsl:element name="li">
820     <xsl:attribute name="class">srcfile</xsl:attribute>
821     <xsl:if test="string($filetype)!=''">
822     <xsl:attribute name="id">
823     <xsl:text>srcfile_</xsl:text>
824     <xsl:value-of select="$filetype" />
825     </xsl:attribute>
826     </xsl:if>
827     <xsl:element name="a">
828     <xsl:attribute name="class">srcfile</xsl:attribute>
829     <xsl:attribute name="href">
830     <xsl:call-template name="mirror"/>
831     <xsl:text>/</xsl:text>
832     <xsl:value-of select="../../directory"/>
833     <xsl:text>/</xsl:text>
834     <xsl:value-of select="filename"/>
835     </xsl:attribute>
836     <xsl:attribute name="title">
837     <xsl:value-of select="filename" />
838     <xsl:text>: </xsl:text>
839     <xsl:value-of select="size"/>
840     <xsl:text> bytes</xsl:text>
841     </xsl:attribute>
842     <xsl:text>.</xsl:text>
843     <xsl:value-of select="$filetype"/>
844     </xsl:element>
845     </xsl:element>
846     </xsl:for-each>
847     </ul>
848     </td>
849 zack 1759 </tr>
850 zack 1768 </xsl:template>
851 hertzog 347
852 zack 1768 <xsl:template name="todo-list">
853 hertzog 347 <xsl:variable name="todo">
854     <xsl:if test="@nmu">
855     <li>Incorporate and acknowledge the changes from the non maintainer upload.</li>
856     </xsl:if>
857     <xsl:if test="not(uploaders)and(priority='standard' or priority='required' or priority='important')">
858     <li>The package is of priority standard or higher, you should really find some co-maintainers.</li>
859     </xsl:if>
860     <xsl:if test="not(starts-with(standards-version, $lastsv))">
861 hertzog 572 <li>The package should be updated to follow the last version of
862 zack 1768 <a href="http://www.debian.org/doc/debian-policy/">Debian Policy</a> (Standards-Version
863     <xsl:value-of select="$lastsv"/> instead of
864     <xsl:value-of select="standards-version"/>).</li>
865 hertzog 347 </xsl:if>
866     <xsl:if test="$hasother">
867     <xsl:for-each select="$other/todo/item">
868 zack 1768 <xsl:call-template name="outputitem"/>
869 hertzog 347 </xsl:for-each>
870 hertzog 643 <!-- new upstream version goes in todo [FG] -->
871     <xsl:if test="$other/@watch='yes' and $other/watch/@new!='0'">
872 zack 1768 <li>A new upstream version was found:
873     (<xsl:value-of select="$other/watch/@new"/>). <a href="{$other/watch/@url}"><xsl:value-of select="$other/watch/@url"/></a></li>
874 hertzog 643 </xsl:if>
875 hertzog 1047 <xsl:if test="$other/bugs/@patch!='0'">
876 zack 1768 <li>The Bug Tracking System contains
877     <xsl:element name="a">
878     <xsl:attribute name="href">
879     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
880     <xsl:call-template name="escape-name">
881     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
882     </xsl:call-template>
883     <xsl:text>&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done</xsl:text>
884     </xsl:attribute>
885     <xsl:value-of select="$other/bugs/@patch"/> patch<xsl:if test="$other/bugs/@patch!='1'">es</xsl:if>
886     </xsl:element>, you should include
887     <xsl:if test="$other/bugs/@patch!='1'">them</xsl:if>
888     <xsl:if test="$other/bugs/@patch='1'">it</xsl:if>.
889 hertzog 1301 </li>
890 hertzog 1047 </xsl:if>
891 hertzog 347 </xsl:if>
892     </xsl:variable>
893 hertzog 372 <xsl:if test="count($todo)>0 and string($todo)!=''">
894 zack 1768 <tr class="titlerow">
895     <td class="titlecell" id="todo">
896     Todo
897     </td></tr>
898     <tr class="normalrow">
899     <td class="contentcell2">
900     <ul>
901     <xsl:copy-of select="$todo"/>
902     </ul>
903     </td>
904     </tr>
905 hertzog 347 </xsl:if>
906 zack 1768 </xsl:template>
907    
908     <xsl:template name="problems">
909 hertzog 347 <xsl:variable name="problems">
910 hertzog 357 <xsl:if test="$hasexcuse and document(concat('../base/', $dir, '/excuse.xml'))/excuse/@problematic">
911 hertzog 347 <li>The package has not yet entered <a
912 zack 1768 href="http://ftp-master.debian.org/testing/update_excuses.html.gz#{$package}">testing</a>
913     even though the <xsl:value-of select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/@limit"/>-day
914     delay is over.
915     <xsl:element name="a">
916     <xsl:attribute name="href">
917     <xsl:text>http://bjorn.haxx.se/debian/testing.pl?package=</xsl:text>
918     <xsl:call-template name="escape-name">
919     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
920     </xsl:call-template>
921     </xsl:attribute>
922     Check why
923     </xsl:element>
924     .</li>
925 hertzog 347 </xsl:if>
926     <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">
927     <li>The package is severly out of date with respect to the Debian
928 zack 1768 Policy. Latest version is <xsl:value-of select="$lastsv"/>
929     and your package only follows
930     <xsl:value-of select="standards-version"/>...</li>
931 hertzog 347 </xsl:if>
932 hertzog 1303 <xsl:if test="@release!='unstable' and @release!='experimental'">
933     <li>This package is neither part of unstable nor experimental. This
934 zack 1768 probably means that the package <a
935     href="http://ftp-master.debian.org/removals.txt">has been removed</a> (or
936     has been renamed). Thus the information here is of little interest ...
937     the package is going to disappear unless someone takes it over and
938     reintroduces it into unstable.</li>
939 hertzog 1303 </xsl:if>
940 hertzog 347 <xsl:if test="$hasother">
941 zack 1768
942 jeroen 949 <!-- Override disparity handling. [JvW] -->
943     <xsl:if test="$other/@override='yes'">
944 zack 1768 <xsl:for-each select="$other/override/group">
945     <li>There were override disparities found in suite <xsl:value-of
946     select="@suite"/>:
947     <ul>
948     <xsl:for-each select="disparity">
949     <li><xsl:value-of select="text()"/></li>
950     </xsl:for-each>
951     </ul>
952     </li>
953     </xsl:for-each>
954 jeroen 949 </xsl:if>
955    
956 hertzog 560 <!-- Wnpp handling. [PvR] -->
957     <xsl:if test="$other/@wnpp='yes'">
958 zack 1768 <li>
959 hertzog 1712 <xsl:choose>
960 zack 1768 <xsl:when test="$other/wnpp/@type='O'">
961     <xsl:choose>
962     <xsl:when test="@release!='unstable' and @release!='experimental'">
963     The WNPP database contains an O (Orphaned) entry for
964     this package. This is probably an error, as it is neither part of
965     unstable nor experimental.
966     </xsl:when>
967     <xsl:otherwise>
968     <span style="font-weight: bold">This package has been orphaned</span>.
969     This means that it does not have a real maintainer at the
970     moment. Please consider adopting this package if you are interested in it.
971     </xsl:otherwise>
972     </xsl:choose>
973     </xsl:when>
974     <xsl:when test="$other/wnpp/@type='ITA'">
975     <xsl:choose>
976     <xsl:when test="@release!='unstable' and @release!='experimental'">
977     The WNPP database contains an ITA (Intent To Adopt) entry for
978     this package. This is probably an error, as it is neither part of
979     unstable nor experimental.
980     </xsl:when>
981     <xsl:otherwise>
982     This package has been orphaned, but someone intends to maintain it.
983     </xsl:otherwise>
984     </xsl:choose>
985     </xsl:when>
986     <xsl:when test="$other/wnpp/@type='RFA'">
987     <xsl:choose>
988     <xsl:when test="@release!='unstable' and @release!='experimental'">
989     The WNPP database contains an RFA (Request For Adoption) entry for
990     this package. This is probably an error, as it is neither part of
991     unstable nor experimental.
992     </xsl:when>
993     <xsl:otherwise>
994     The current maintainer is looking for someone who can take over
995     maintenance of this package. If you are interested in this package,
996     please consider taking it over. Alternatively you may
997     want to be co-maintainer in order to help the actual maintainer.
998     </xsl:otherwise>
999     </xsl:choose>
1000     </xsl:when>
1001     <xsl:when test="$other/wnpp/@type='RFH'">
1002     <xsl:choose>
1003     <xsl:when test="@release!='unstable' and @release!='experimental'">
1004     The WNPP database contains an RFH (Request For Help) entry for
1005     this package. This is probably an error, as it is neither part of
1006     unstable nor experimental.
1007     </xsl:when>
1008     <xsl:otherwise>
1009     The current maintainer is looking for someone who can help with the
1010     maintenance of this package. If you are interested in this package,
1011     please consider helping out. One way you can help is offer to be a
1012     co-maintainer or triage bugs in the bts.
1013     </xsl:otherwise>
1014     </xsl:choose>
1015     </xsl:when>
1016     <xsl:when test="$other/wnpp/@type='ITP'">
1017     <xsl:choose>
1018     <xsl:when test="@release!='unstable' and @release!='experimental'">
1019     The WNPP database contains an ITP (Intent To Package). This probably
1020     means that somebody is going to reintroduce this package into unstable.
1021     </xsl:when>
1022     <xsl:otherwise>
1023     The WNPP database contains an ITP (Intent To Package) entry for
1024     this package. This is probably an error, as it has already been
1025     packaged.
1026     </xsl:otherwise>
1027     </xsl:choose>
1028     </xsl:when>
1029     <xsl:when test="$other/wnpp/@type='RFP'">
1030     <xsl:choose>
1031     <xsl:when test="@release!='unstable' and @release!='experimental'">
1032     The WNPP database contains an RFP (Request For Package). This probably
1033     means that somebody would like to see this package reintroduced into
1034     unstable by a volunteer.
1035     </xsl:when>
1036     <xsl:otherwise>
1037     The WNPP database contains an RFP (Request For Package) entry
1038     for this package. This is probably an error, as it has already
1039     been packaged.
1040     </xsl:otherwise>
1041     </xsl:choose>
1042     </xsl:when>
1043     <xsl:when test="$other/wnpp/@type='RM'">
1044     <span style="font-weight: bold">This package has been requested to be
1045     removed</span>.
1046     This means that, when this request gets processed by an ftp-master, this
1047     package will no longer be in unstable, and will automatically be removed
1048     from testing too afterwards. If for some reason you want keep this
1049     package in unstable, please discuss so in the bug.
1050     </xsl:when>
1051     <xsl:otherwise>
1052     The WNPP database contains an entry for this package,
1053     but it is unclear what kind of entry it is. This is probably an error.
1054     </xsl:otherwise>
1055 hertzog 1712 </xsl:choose>
1056 zack 1768 <xsl:variable name="bn" select="$other/wnpp/@bugnumber"/>
1057     Please see bug number <a href="http://bugs.debian.org/{$bn}">
1058     #<xsl:value-of select="$bn"/></a> for more information.
1059     </li>
1060 hertzog 560 </xsl:if>
1061 zack 1768
1062     <!-- uscan output if present [FG] -->
1063     <xsl:if test="$other/@watch='yes'">
1064     <li>
1065     <xsl:if test="$other/watch/@warning!=''">
1066     uscan had problems while searching for a new upstream version: <xsl:value-of select="$other/watch/@warning"/>
1067     </xsl:if>
1068     </li>
1069 hertzog 643 </xsl:if>
1070 hertzog 560
1071     <!-- Misc problems reported -->
1072 hertzog 347 <xsl:for-each select="$other/problems/item">
1073 zack 1768 <xsl:call-template name="outputitem"/>
1074 hertzog 347 </xsl:for-each>
1075     </xsl:if>
1076     </xsl:variable>
1077 hertzog 372 <xsl:if test="count($problems)>0 and string($problems)!=''">
1078 zack 1768 <tr class="titlerow">
1079     <td class="titlecell" id="problems">
1080     Problems
1081     </td></tr>
1082     <tr class="normalrow">
1083     <td class="contentcell2">
1084     <ul><xsl:copy-of select="$problems"/></ul>
1085     </td>
1086     </tr>
1087 hertzog 347 </xsl:if>
1088 zack 1768 </xsl:template>
1089 hertzog 347
1090 zack 1768 <xsl:template name="testing-status">
1091 hertzog 357 <xsl:if test="$hasexcuse">
1092 zack 1768 <tr class="titlerow">
1093     <td class="titlecell">
1094 zack 1774 Testing status
1095 zack 1768 </td></tr>
1096     <tr class="normalrow">
1097     <td class="contentcell2" style="text-align: left">
1098     <ul>
1099     <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
1100     <xsl:call-template name="outputitem"/>
1101     </xsl:for-each>
1102     </ul>
1103     </td>
1104     </tr>
1105 hertzog 347 </xsl:if>
1106 zack 1768 </xsl:template>
1107    
1108     <xsl:template name="static-info">
1109 zack 1745 <xsl:call-template name="output-static">
1110     <xsl:with-param name="static" select="$static" />
1111     </xsl:call-template>
1112 zack 1768 </xsl:template>
1113    
1114     <xsl:template name="latest-news">
1115 zack 1745 <xsl:call-template name="output-news">
1116     <xsl:with-param name="news" select="$news" />
1117     </xsl:call-template>
1118 zack 1768 </xsl:template>
1119 hertzog 347
1120 zack 1768 <xsl:variable name="static">
1121     <xsl:if test="$hasnews">
1122     <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">
1123     <xsl:call-template name="outputitem"/>
1124     </xsl:for-each>
1125     </xsl:if>
1126     </xsl:variable>
1127    
1128     <xsl:variable name="news">
1129     <xsl:if test="$hasnews">
1130     <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">
1131     <xsl:call-template name="outputitem"/>
1132     </xsl:for-each>
1133     </xsl:if>
1134     </xsl:variable>
1135    
1136     <!-- All the work is done in a single template -->
1137     <xsl:template match="source">
1138    
1139     <!-- Start of html -->
1140     <xsl:text disable-output-escaping="yes">
1141     &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;
1142     </xsl:text>
1143     <html>
1144     <head>
1145     <meta name="ROBOTS" content="NOFOLLOW"/>
1146     <link type="text/css" title="Default" rel="stylesheet" href="../common/pts.css"/>
1147     <link type="text/css" title="Standard link rendering" rel="alternate stylesheet" href="../common/pts2.css"/>
1148     <link type="text/css" title="Compact rendering" rel="alternate stylesheet" href="../common/compact.css"/>
1149     <xsl:if test="count($news)>0 and string($news)!=''">
1150     <link rel="alternate" type="application/rss+xml" title="RSS"
1151     href="{$package}/news.rss20.xml" />
1152     </xsl:if>
1153     <title>Overview of <xsl:value-of select="$package"/> source package</title>
1154     </head>
1155     <body>
1156    
1157     <form method="get" action="/common/index.html" style="float: right;">
1158     <!-- this link should make lynx/links happy [FG] -->
1159     <p>Jump to package (<a href="/">home page</a>): <br/>
1160     <input type="text" name="src" value=""/></p>
1161     </form>
1162     <h1>Overview of
1163     <xsl:element name="a">
1164     <xsl:attribute name="href">
1165     <xsl:text>http://packages.debian.org/src:</xsl:text>
1166     <xsl:value-of select="$package"/>
1167     </xsl:attribute>
1168     <xsl:value-of select="$package"/>
1169     </xsl:element>
1170     source package</h1>
1171    
1172     <div id="body">
1173     <xsl:choose>
1174     <xsl:when test="$removed='yes'">
1175     <!-- REMOVED PACKAGE -->
1176     <p>This package is not part of any Debian distribution. Thus you won't
1177     find much information here. The package is either very new and hasn't
1178     appeared on mirrors yet, or it's an old package that eventually got removed.
1179     The old news are kept for historic purpose only.</p>
1180    
1181     <table class="righttable">
1182     <xsl:call-template name="static-info" />
1183     <xsl:call-template name="latest-news" />
1184 hertzog 347 </table>
1185 zack 1768
1186     <!-- END REMOVED PACKAGE -->
1187     </xsl:when>
1188     <xsl:otherwise>
1189     <!-- NON REMOVED PACKAGE -->
1190    
1191     <table class="containertable">
1192     <tr class="containerrow" valign="top">
1193     <td class="containercell">
1194     <!-- LEFT SIDE -->
1195     <table class="lefttable">
1196     <xsl:call-template name="general-information" />
1197     <xsl:call-template name="bugs-count" />
1198     <xsl:call-template name="pts-subscription" />
1199     <xsl:call-template name="binary-packages" />
1200     <xsl:call-template name="available-versions" />
1201     <xsl:call-template name="patches" />
1202     <xsl:call-template name="other-links" />
1203     <xsl:call-template name="package-files" />
1204     </table>
1205     <!-- END LEFT SIDE -->
1206     </td><td class="containercell">
1207     <!-- RIGHT SIDE -->
1208     <table class="righttable">
1209     <xsl:call-template name="todo-list" />
1210     <xsl:call-template name="problems" />
1211     <xsl:call-template name="testing-status" />
1212     <xsl:call-template name="static-info" />
1213     <xsl:call-template name="latest-news" />
1214     </table>
1215 hertzog 347 <!-- END RIGHT SIDE -->
1216     </td></tr>
1217     </table>
1218 hertzog 1303
1219     <!-- END NON REMOVED PACKAGE -->
1220     </xsl:otherwise>
1221     </xsl:choose>
1222    
1223 hertzog 347 <hr/>
1224 zack 1768 <div class="footer">
1225     <p>
1226     Debian Package Tracking System - Copyright 2002-2007 Raphaël Hertzog and
1227     others<br/>
1228     Report problems to the <a href="http://bugs.debian.org/qa.debian.org"
1229     >qa.debian.org pseudopackage</a><br/>
1230     Last modified : <xsl:value-of select="$date"/>
1231     </p>
1232 zack 1763 </div>
1233 zack 1768 </div>
1234 hertzog 347 </body>
1235     </html>
1236     </xsl:template>
1237    
1238     </xsl:stylesheet>

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5