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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5