/[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 1883 - (hide annotations) (download) (as text)
Fri Jun 6 17:58:29 2008 UTC (4 years, 11 months ago) by hertzog
File MIME type: application/xml
File size: 46462 byte(s)
Update Debian Policy version to 3.8.0.
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     </xsl:element>)
332     </td>
333 zack 1768 <td class="contentcell">
334     <xsl:element name="a">
335     <xsl:attribute name="href">
336     <xsl:text>http://bugs.debian.org/src:</xsl:text>
337     <xsl:call-template name="escape-name">
338     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
339     </xsl:call-template>
340     </xsl:attribute>
341     <xsl:if test="$hasother">
342     <xsl:value-of select="$other/bugs/@all"/>
343     </xsl:if>
344     </xsl:element>
345     </td>
346 hertzog 347 </tr>
347 zack 1756 <tr class="normalrow" id="bugs_rc">
348 zack 1768 <td class="labelcell"><span class="indented"><acronym title="Release Critical">RC</acronym> bugs</span></td>
349     <td class="contentcell">
350     <xsl:element name="a">
351     <xsl:attribute name="href">
352     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
353     <xsl:call-template name="escape-name">
354     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
355     </xsl:call-template>
356     <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>
357     </xsl:attribute>
358     <xsl:if test="$hasother">
359     <xsl:value-of select="$other/bugs/@rc"/>
360     </xsl:if>
361     </xsl:element>
362     </td>
363 hertzog 347 </tr>
364 zack 1756 <tr class="normalrow" id="bugs_in">
365 zack 1775 <td class="labelcell"><span class="indented"><acronym title="Important and Normal">I&amp;N</acronym> bugs</span></td>
366 zack 1768 <td class="contentcell">
367     <xsl:element name="a">
368     <xsl:attribute name="href">
369     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
370     <xsl:call-template name="escape-name">
371     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
372     </xsl:call-template>
373     <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>
374     </xsl:attribute>
375     <xsl:if test="$hasother">
376     <xsl:value-of select="$other/bugs/@normal"/>
377     </xsl:if>
378     </xsl:element>
379     </td>
380 hertzog 347 </tr>
381 zack 1756 <tr class="normalrow" id="bugs_mw">
382 zack 1775 <td class="labelcell"><span class="indented"><acronym title="Minor and Wishlist">M&amp;W</acronym> bugs</span></td>
383 zack 1768 <td class="contentcell">
384     <xsl:element name="a">
385     <xsl:attribute name="href">
386     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
387     <xsl:call-template name="escape-name">
388     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
389     </xsl:call-template>
390     <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>
391     </xsl:attribute>
392     <xsl:if test="$hasother">
393     <xsl:value-of select="$other/bugs/@wishlist"/>
394     </xsl:if>
395     </xsl:element>
396     </td>
397 hertzog 347 </tr>
398 zack 1756 <tr class="normalrow" id="bugs_fp">
399 zack 1775 <td class="labelcell"><span class="indented"><acronym title="Fixed and Pending">F&amp;P</acronym> bugs</span></td>
400 zack 1768 <td class="contentcell">
401     <xsl:element name="a">
402     <xsl:attribute name="href">
403     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
404     <xsl:call-template name="escape-name">
405     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
406     </xsl:call-template>
407     <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
408     </xsl:attribute>
409     <xsl:if test="$hasother">
410     <xsl:value-of select="$other/bugs/@fixed"/>
411     </xsl:if>
412     </xsl:element>
413     </td>
414 hertzog 347 </tr>
415 zack 1768 </xsl:template>
416 hertzog 347
417 zack 1768 <xsl:template name="pts-subscription">
418 hertzog 347 <tr class="titlerow">
419 zack 1768 <td class="titlecell" colspan="2">
420     <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
421 hertzog 347 </td></tr>
422     <tr class="normalrow">
423 zack 1768 <td class="labelcell">Subscribers count</td>
424     <td class="contentcell"><xsl:if test="$hasother">
425     <xsl:value-of select="$other/pts/@count"/>
426     </xsl:if></td>
427 hertzog 347 </tr>
428     <tr class="normalrow">
429 zack 1768 <td class="contentcell" colspan="2">
430     <form method="post" action="/cgi-bin/pts.cgi">
431     <p>
432     <input type="hidden" name="package" value="{$package}"/>
433     <select name="what">
434     <option value="subscribe">Subscribe</option>
435     <option value="unsubscribe">Unsubscribe</option>
436     <option value="advanced">Advanced mode</option>
437     </select>
438     <input type="text" name="email" size="15" value="your email" onFocus="if(email.value=='your email'){{email.value=''}}"/>
439     <input type="submit" name="submit" value="Send"/>
440     </p>
441     </form>
442     </td>
443 hertzog 347 </tr>
444 zack 1768 </xsl:template>
445 hertzog 347
446 zack 1768 <xsl:template name="binary-packages">
447 hertzog 347 <tr class="titlerow">
448 zack 1768 <td class="titlecell" colspan="2">
449     Binary package(s)
450 hertzog 347 </td></tr>
451     <tr class="normalrow">
452 zack 1768 <td class="normalcell" colspan="2" style="text-align: left">
453     <ul>
454     <xsl:for-each select="binary/item">
455     <xsl:sort select="text()"/>
456     <xsl:variable name="pkg" select="text()"/>
457     <li class="binpkg">
458     <a class="binpkg" href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>
459     <span style="font-size: 70%">
460     (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:
461 hertzog 530
462 zack 1768 <xsl:element name="a">
463     <xsl:attribute name="title">critical, grave and serious</xsl:attribute>
464     <xsl:attribute name="href">
465     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
466     <xsl:call-template name="escape-name">
467     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
468     </xsl:call-template>
469     <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>
470     </xsl:attribute>
471     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@rc"/>
472     </xsl:element>,
473 hertzog 530
474 zack 1768 <xsl:element name="a">
475     <xsl:attribute name="title">important and normal</xsl:attribute>
476     <xsl:attribute name="href">
477     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
478     <xsl:call-template name="escape-name">
479     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
480     </xsl:call-template>
481     <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>
482     </xsl:attribute>
483     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@normal"/>
484     </xsl:element>,
485 hertzog 530
486 zack 1768 <xsl:element name="a">
487     <xsl:attribute name="title">wishlist and minor</xsl:attribute>
488     <xsl:attribute name="href">
489     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
490     <xsl:call-template name="escape-name">
491     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
492     </xsl:call-template>
493     <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>
494     </xsl:attribute>
495     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/>
496     </xsl:element>,
497    
498     <xsl:element name="a">
499     <xsl:attribute name="title">pending and fixed</xsl:attribute>
500     <xsl:attribute name="href">
501     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
502     <xsl:call-template name="escape-name">
503     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
504     </xsl:call-template>
505     <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
506     </xsl:attribute>
507     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>
508     </xsl:element>)
509     </span>
510     </li>
511     </xsl:for-each>
512 djpig 1085 </ul></td></tr>
513 zack 1768 </xsl:template>
514 hertzog 347
515 zack 1768 <xsl:template name="available-versions">
516 hertzog 347 <tr class="titlerow">
517 zack 1768 <td class="titlecell" colspan="2">
518     Available versions
519 hertzog 347 </td></tr>
520 jeroen 1027
521     <!-- oldstable -->
522     <xsl:if test="$hasoldstable">
523 zack 1768 <tr class="normalrow">
524     <td class="labelcell"><a href="http://www.debian.org/releases/sarge/">Oldstable</a></td>
525     <td class="contentcell">
526 zack 1818 <a href="http://packages.debian.org/source/oldstable/{$package}"><xsl:value-of
527     select="document(concat('../base/', $dir, '/oldstable.xml'))/source/version"/></a>
528 zack 1768 </td>
529     </tr>
530 hertzog 347 </xsl:if>
531 jeroen 1021 <xsl:if test="$hasoldstable-security">
532 zack 1768 <tr class="normalrow">
533     <td class="labelcell"><small>Oldstable Security Updates</small></td>
534     <td class="contentcell">
535     <xsl:value-of select="document(concat('../base/', $dir, '/oldstable-security.xml'))/source/version"/>
536     </td>
537     </tr>
538 jeroen 1021 </xsl:if>
539 jeroen 1027
540     <!-- stable -->
541     <xsl:if test="$hasstable">
542 zack 1768 <tr class="normalrow">
543     <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>
544     <td class="contentcell">
545 zack 1818 <a href="http://packages.debian.org/source/stable/{$package}"><xsl:value-of
546     select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/></a>
547 zack 1768 </td>
548     </tr>
549 jeroen 1027 </xsl:if>
550 hertzog 351 <xsl:if test="$hasstable-security">
551 zack 1768 <tr class="normalrow">
552     <td class="labelcell"><small>Stable Security Updates</small></td>
553     <td class="contentcell">
554     <xsl:value-of select="document(concat('../base/', $dir, '/stable-security.xml'))/source/version"/>
555     </td>
556     </tr>
557 hertzog 351 </xsl:if>
558 jeroen 1027 <xsl:if test="$hass-p-u">
559 zack 1768 <tr class="normalrow">
560     <td class="labelcell"><small>Stable Proposed Updates</small></td>
561     <td class="contentcell">
562     <xsl:value-of select="document(concat('../base/', $dir, '/s-p-u.xml'))/source/version"/>
563     </td>
564     </tr>
565 hertzog 351 </xsl:if>
566 jeroen 1027
567     <!-- testing -->
568 hertzog 347 <xsl:if test="$hastesting">
569 zack 1768 <tr class="normalrow">
570     <td class="labelcell"><a href="http://www.debian.org/releases/testing/">Testing</a></td>
571     <td class="contentcell">
572 zack 1818 <a href="http://packages.debian.org/source/testing/{$package}"><xsl:value-of
573     select="document(concat('../base/', $dir, '/testing.xml'))/source/version"/></a>
574 zack 1768 </td>
575     </tr>
576 hertzog 347 </xsl:if>
577 jeroen 1027 <xsl:if test="$hastesting-security">
578 zack 1768 <tr class="normalrow">
579     <td class="labelcell"><small>Testing Security Updates</small></td>
580     <td class="contentcell">
581     <xsl:value-of select="document(concat('../base/', $dir, '/testing-security.xml'))/source/version"/>
582     </td>
583     </tr>
584 hertzog 351 </xsl:if>
585 jeroen 1027 <xsl:if test="$hast-p-u">
586 zack 1768 <tr class="normalrow">
587     <td class="labelcell"><small>Testing Proposed Updates</small></td>
588     <td class="contentcell">
589     <xsl:value-of select="document(concat('../base/', $dir, '/t-p-u.xml'))/source/version"/>
590     </td>
591     </tr>
592 jeroen 1021 </xsl:if>
593 zack 1768
594 hertzog 1049 <!-- unstable -->
595 jeroen 1027 <xsl:if test="$hasunstable">
596 zack 1768 <tr class="normalrow">
597     <td class="labelcell">Unstable</td>
598     <td class="contentcell">
599 zack 1818 <a href="http://packages.debian.org/source/unstable/{$package}"><xsl:value-of
600     select="document(concat('../base/', $dir, '/unstable.xml'))/source/version"/></a>
601 zack 1768 </td>
602     </tr>
603 hertzog 347 </xsl:if>
604 zack 1768
605 jeroen 1027 <!-- experimental -->
606     <xsl:if test="$hasexperimental">
607 zack 1768 <tr class="normalrow">
608     <td class="labelcell">Experimental</td>
609     <td class="contentcell">
610 zack 1818 <a href="http://packages.debian.org/source/experimental/{$package}"><xsl:value-of
611     select="document(concat('../base/', $dir, '/experimental.xml'))/source/version"/></a>
612 zack 1768 </td>
613     </tr>
614 hertzog 351 </xsl:if>
615 jeroen 1027
616 hertzog 1090 <!-- secure-testing -->
617     <xsl:if test="$hassecure-testing">
618 zack 1768 <tr class="normalrow">
619     <td class="labelcell">Secure testing</td>
620     <td class="contentcell">
621     <xsl:value-of select="document(concat('../base/', $dir, '/secure-testing.xml'))/source/version"/>
622     </td>
623     </tr>
624 hertzog 1090 </xsl:if>
625    
626     <!-- volatile -->
627     <xsl:if test="$hasvolatile">
628 zack 1768 <tr class="normalrow">
629     <td class="labelcell">Volatile</td>
630     <td class="contentcell">
631     <xsl:value-of select="document(concat('../base/', $dir, '/volatile.xml'))/source/version"/>
632     </td>
633     </tr>
634 hertzog 1090 </xsl:if>
635 zack 1768 </xsl:template>
636 hertzog 1090
637 zack 1768 <xsl:template name="patches">
638 hertzog 1049 <!-- Patches list [FG] -->
639     <xsl:if test="$other/@patches='yes'">
640     <tr class="titlerow">
641 zack 1768 <td class="titlecell" colspan="2">
642     Patches
643 hertzog 1049 </td></tr>
644     <tr>
645 zack 1768 <td class="contentcell" colspan="2" style="text-align: left">
646     <ul>
647     <xsl:for-each select="$other/patches/item">
648     <li>
649     <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>
650     </li>
651     </xsl:for-each>
652     <xsl:if test="$other/bugs/@patch!='0'">
653     <li>
654     <xsl:element name="a">
655     <xsl:attribute name="href">
656     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
657     <xsl:call-template name="escape-name">
658     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
659     </xsl:call-template>
660     <xsl:text>&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done</xsl:text>
661     </xsl:attribute>
662     Patches from BTS (<xsl:value-of select="$other/bugs/@patch"/>)
663     </xsl:element>
664     </li>
665     </xsl:if>
666     </ul>
667     </td>
668 hertzog 1049 </tr>
669     </xsl:if>
670 zack 1768 </xsl:template>
671 hertzog 1049
672 zack 1768 <xsl:template name="other-links">
673 hertzog 347 <tr class="titlerow">
674 zack 1768 <td class="titlecell" colspan="2">
675     Other links
676 hertzog 347 </td></tr>
677     <tr>
678 zack 1768 <td class="contentcell" colspan="2" style="text-align: left">
679     <ul>
680 zack 1774 <xsl:if test="homepage">
681     <li> <a href="{homepage}">Upstream homepage</a> </li>
682     </xsl:if>
683 zack 1768 <li>
684     <xsl:element name="a">
685     <xsl:attribute name="href">
686     <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
687     <xsl:value-of select="directory"/>
688     <xsl:text>/current/changelog</xsl:text>
689     </xsl:attribute>
690     <xsl:text>Changelog</xsl:text>
691     </xsl:element>
692     /
693     <xsl:element name="a">
694     <xsl:attribute name="href">
695     <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
696     <xsl:value-of select="directory"/>
697     <xsl:text>/current/copyright</xsl:text>
698     </xsl:attribute>
699     <xsl:text>Copyright</xsl:text>
700     </xsl:element>
701     </li>
702     <xsl:if test="architecture!='all'">
703     <li>
704 zack 1825 <xsl:text>Buildd: </xsl:text>
705     <a href="http://buildd.debian.org/pkg.cgi?pkg={$escaped-package}"
706     title="buildd.debian.org build logs">logs</a>
707 zack 1819 <xsl:text>, </xsl:text>
708 zack 1834 <!-- <a href="http://people.debian.org/~igloo/status.php?packages={$escaped-package}"
709     title="igloo's build logs on people.debian.org">more</a> -->
710     <a href="http://buildd.debian.org/~jeroen/status/package.php?p={$escaped-package}"
711     title="jeroen's build logs on buildd.debian.org">more</a>
712 zack 1825 <xsl:text>, </xsl:text>
713     <a href="http://experimental.debian.net/build.php?pkg={$escaped-package}"
714     title="experimental.debian.net build logs">exp</a>
715     <xsl:text>, </xsl:text>
716     <a href="http://buildd.debian-ports.org/status/package.php?p={$escaped-package}"
717     title="debian ports build logs">ports</a>
718 zack 1768 </li>
719     </xsl:if>
720     <!-- DISABLED until ddtp.debian.org is back up
721     <li>
722     <xsl:element name="a">
723     <xsl:attribute name="href">
724     <xsl:text>http://ddtp.debian.org/stats/pdesc/report.cgi?package=</xsl:text>
725     <xsl:call-template name="escape-name">
726     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
727     </xsl:call-template>
728     <xsl:text>&amp;lang=all&amp;type=src-drvbin&amp;subword=0</xsl:text>
729     </xsl:attribute>
730     Description's translations (DDTP)
731     </xsl:element>
732     </li>
733     <xsl:if test="$other/@debconf='yes'">
734     <li>
735     <xsl:element name="a">
736     <xsl:attribute name="href">
737     <xsl:text>http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&amp;package=</xsl:text>
738     <xsl:call-template name="escape-name">
739     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
740     </xsl:call-template>
741     </xsl:attribute>
742     Debconf templates's translations (DDTP)
743     </xsl:element>
744     </li>
745     </xsl:if>
746     -->
747     <xsl:if test="($hasunstable and $other/debcheck/@unstable='yes')
748     or ($hastesting and $other/debcheck/@testing='yes')
749     or ($hasstable and $other/debcheck/@stable='yes')">
750     <li>
751     Debcheck on:
752     <xsl:if test="$hasunstable">
753     <xsl:text> </xsl:text>
754 zack 1819 <a href="http://qa.debian.org/debcheck.php?dist=unstable&amp;package={$escaped-package}">unstable</a>
755 zack 1768 </xsl:if>
756     <xsl:if test="$hastesting">
757     <xsl:text> </xsl:text>
758 zack 1819 <a href="http://qa.debian.org/debcheck.php?dist=testing&amp;package={$escaped-package}">testing</a>
759 zack 1768 </xsl:if>
760     <xsl:if test="$hasstable">
761     <xsl:text> </xsl:text>
762 zack 1819 <a href="http://qa.debian.org/debcheck.php?dist=stable&amp;package={$escaped-package}">stable</a>
763 zack 1768 </xsl:if>
764     </li>
765     </xsl:if>
766 zack 1804 <!-- convert maintainer/name to follow lintian.debian.org convention -->
767     <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ~/()&#34; ', &quot;'&quot;)"/>
768 hertzog 1802 <xsl:variable name="_email" select="translate(maintainer/email, $pattern, '_____________________')"/>
769     <li><a href="http://lintian.debian.org/reports/maintainer/{$_email}.html#{$package}">Lintian report</a></li>
770 zack 1768 <li>
771 zack 1819 <a href="http://qa.debian.org/developer.php?popcon={$escaped-package}">Popcon stats</a>
772 zack 1768 </li>
773 zack 1800 <xsl:if test="$other/@svnbuildstat='yes'">
774     <li>
775 zack 1819 <a href="http://svnbuildstat.debian.net/packages/info/{$escaped-package}">Svnbuildstat</a>
776 zack 1800 </li>
777     </xsl:if>
778 zack 1768 </ul>
779     </td>
780 hertzog 347 </tr>
781 zack 1768 </xsl:template>
782 hertzog 347
783 zack 1768 <xsl:template name="package-files">
784 hertzog 347 <tr class="titlerow">
785 zack 1768 <td class="titlecell" colspan="2">
786 zack 1798 Source package
787 hertzog 347 </td></tr>
788 zack 1759 <tr class="titlerow">
789 zack 1768 <td class="labelcell">
790     <xsl:element name="a">
791     <xsl:attribute name="href">
792     <xsl:call-template name="mirror"/>
793     <xsl:text>/</xsl:text>
794     <xsl:value-of select="directory"/>
795     <xsl:text>/</xsl:text>
796     </xsl:attribute>
797 zack 1798 <xsl:text>Files</xsl:text>
798 zack 1758 </xsl:element>
799 zack 1768 </td>
800     <td class="contentcell" id="src_files">
801     <ul>
802     <xsl:for-each select="files/item">
803     <xsl:variable name="filetype">
804     <xsl:call-template name="categorize-srcfile" />
805     </xsl:variable>
806     <xsl:element name="li">
807     <xsl:attribute name="class">srcfile</xsl:attribute>
808     <xsl:if test="string($filetype)!=''">
809     <xsl:attribute name="id">
810     <xsl:text>srcfile_</xsl:text>
811     <xsl:value-of select="$filetype" />
812     </xsl:attribute>
813     </xsl:if>
814     <xsl:element name="a">
815     <xsl:attribute name="class">srcfile</xsl:attribute>
816     <xsl:attribute name="href">
817     <xsl:call-template name="mirror"/>
818     <xsl:text>/</xsl:text>
819     <xsl:value-of select="../../directory"/>
820     <xsl:text>/</xsl:text>
821     <xsl:value-of select="filename"/>
822     </xsl:attribute>
823     <xsl:attribute name="title">
824     <xsl:value-of select="filename" />
825     <xsl:text>: </xsl:text>
826     <xsl:value-of select="size"/>
827     <xsl:text> bytes</xsl:text>
828     </xsl:attribute>
829     <xsl:text>.</xsl:text>
830     <xsl:value-of select="$filetype"/>
831     </xsl:element>
832     </xsl:element>
833     </xsl:for-each>
834     </ul>
835     </td>
836 zack 1759 </tr>
837 zack 1768 </xsl:template>
838 hertzog 347
839 zack 1768 <xsl:template name="todo-list">
840 hertzog 347 <xsl:variable name="todo">
841     <xsl:if test="@nmu">
842     <li>Incorporate and acknowledge the changes from the non maintainer upload.</li>
843     </xsl:if>
844     <xsl:if test="not(uploaders)and(priority='standard' or priority='required' or priority='important')">
845     <li>The package is of priority standard or higher, you should really find some co-maintainers.</li>
846     </xsl:if>
847     <xsl:if test="not(starts-with(standards-version, $lastsv))">
848 hertzog 572 <li>The package should be updated to follow the last version of
849 zack 1768 <a href="http://www.debian.org/doc/debian-policy/">Debian Policy</a> (Standards-Version
850     <xsl:value-of select="$lastsv"/> instead of
851     <xsl:value-of select="standards-version"/>).</li>
852 hertzog 347 </xsl:if>
853     <xsl:if test="$hasother">
854     <xsl:for-each select="$other/todo/item">
855 zack 1768 <xsl:call-template name="outputitem"/>
856 hertzog 347 </xsl:for-each>
857 zack 1823 <xsl:if test="$other[dehs/@newer]">
858     <li>A new upstream version is available:
859     <a href="http://dehs.alioth.debian.org/maintainer.php?name={$escaped-package}"><xsl:value-of select="$other/dehs/@newer"/></a>,
860     you should consider packaging it.</li>
861 hertzog 643 </xsl:if>
862 hertzog 1047 <xsl:if test="$other/bugs/@patch!='0'">
863 zack 1768 <li>The Bug Tracking System contains
864 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
865 zack 1831 <xsl:value-of select="$other/bugs/@patch"/> bug<xsl:if test="$other/bugs/@patch!='1'">s</xsl:if>
866     </a>, consider including or untagging
867     <xsl:if test="$other/bugs/@patch!='1'">them</xsl:if>
868     <xsl:if test="$other/bugs/@patch='1'">it</xsl:if>.
869 hertzog 1301 </li>
870 hertzog 1047 </xsl:if>
871 hertzog 347 </xsl:if>
872     </xsl:variable>
873 hertzog 372 <xsl:if test="count($todo)>0 and string($todo)!=''">
874 zack 1768 <tr class="titlerow">
875     <td class="titlecell" id="todo">
876     Todo
877     </td></tr>
878     <tr class="normalrow">
879     <td class="contentcell2">
880     <ul>
881     <xsl:copy-of select="$todo"/>
882     </ul>
883     </td>
884     </tr>
885 hertzog 347 </xsl:if>
886 zack 1768 </xsl:template>
887    
888     <xsl:template name="problems">
889 hertzog 347 <xsl:variable name="problems">
890 hertzog 357 <xsl:if test="$hasexcuse and document(concat('../base/', $dir, '/excuse.xml'))/excuse/@problematic">
891 hertzog 347 <li>The package has not yet entered <a
892 zack 1768 href="http://ftp-master.debian.org/testing/update_excuses.html.gz#{$package}">testing</a>
893     even though the <xsl:value-of select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/@limit"/>-day
894     delay is over.
895 zack 1819 <a href="http://release.debian.org/migration/testing.pl?package={$escaped-package}">Check why</a>.</li>
896 hertzog 347 </xsl:if>
897     <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">
898     <li>The package is severly out of date with respect to the Debian
899 zack 1768 Policy. Latest version is <xsl:value-of select="$lastsv"/>
900     and your package only follows
901     <xsl:value-of select="standards-version"/>...</li>
902 hertzog 347 </xsl:if>
903 hertzog 1303 <xsl:if test="@release!='unstable' and @release!='experimental'">
904     <li>This package is neither part of unstable nor experimental. This
905 zack 1768 probably means that the package <a
906     href="http://ftp-master.debian.org/removals.txt">has been removed</a> (or
907     has been renamed). Thus the information here is of little interest ...
908     the package is going to disappear unless someone takes it over and
909     reintroduces it into unstable.</li>
910 hertzog 1303 </xsl:if>
911 hertzog 347 <xsl:if test="$hasother">
912 zack 1768
913 jeroen 949 <!-- Override disparity handling. [JvW] -->
914     <xsl:if test="$other/@override='yes'">
915 zack 1768 <xsl:for-each select="$other/override/group">
916     <li>There were override disparities found in suite <xsl:value-of
917     select="@suite"/>:
918     <ul>
919     <xsl:for-each select="disparity">
920     <li><xsl:value-of select="text()"/></li>
921     </xsl:for-each>
922     </ul>
923     </li>
924     </xsl:for-each>
925 jeroen 949 </xsl:if>
926    
927 hertzog 560 <!-- Wnpp handling. [PvR] -->
928     <xsl:if test="$other/@wnpp='yes'">
929 zack 1768 <li>
930 hertzog 1712 <xsl:choose>
931 zack 1768 <xsl:when test="$other/wnpp/@type='O'">
932     <xsl:choose>
933     <xsl:when test="@release!='unstable' and @release!='experimental'">
934     The WNPP database contains an O (Orphaned) entry for
935     this package. This is probably an error, as it is neither part of
936     unstable nor experimental.
937     </xsl:when>
938     <xsl:otherwise>
939     <span style="font-weight: bold">This package has been orphaned</span>.
940     This means that it does not have a real maintainer at the
941     moment. Please consider adopting this package if you are interested in it.
942     </xsl:otherwise>
943     </xsl:choose>
944     </xsl:when>
945     <xsl:when test="$other/wnpp/@type='ITA'">
946     <xsl:choose>
947     <xsl:when test="@release!='unstable' and @release!='experimental'">
948     The WNPP database contains an ITA (Intent To Adopt) entry for
949     this package. This is probably an error, as it is neither part of
950     unstable nor experimental.
951     </xsl:when>
952     <xsl:otherwise>
953     This package has been orphaned, but someone intends to maintain it.
954     </xsl:otherwise>
955     </xsl:choose>
956     </xsl:when>
957     <xsl:when test="$other/wnpp/@type='RFA'">
958     <xsl:choose>
959     <xsl:when test="@release!='unstable' and @release!='experimental'">
960     The WNPP database contains an RFA (Request For Adoption) entry for
961     this package. This is probably an error, as it is neither part of
962     unstable nor experimental.
963     </xsl:when>
964     <xsl:otherwise>
965     The current maintainer is looking for someone who can take over
966     maintenance of this package. If you are interested in this package,
967     please consider taking it over. Alternatively you may
968     want to be co-maintainer in order to help the actual maintainer.
969     </xsl:otherwise>
970     </xsl:choose>
971     </xsl:when>
972     <xsl:when test="$other/wnpp/@type='RFH'">
973     <xsl:choose>
974     <xsl:when test="@release!='unstable' and @release!='experimental'">
975     The WNPP database contains an RFH (Request For Help) entry for
976     this package. This is probably an error, as it is neither part of
977     unstable nor experimental.
978     </xsl:when>
979     <xsl:otherwise>
980     The current maintainer is looking for someone who can help with the
981     maintenance of this package. If you are interested in this package,
982     please consider helping out. One way you can help is offer to be a
983     co-maintainer or triage bugs in the bts.
984     </xsl:otherwise>
985     </xsl:choose>
986     </xsl:when>
987     <xsl:when test="$other/wnpp/@type='ITP'">
988     <xsl:choose>
989     <xsl:when test="@release!='unstable' and @release!='experimental'">
990     The WNPP database contains an ITP (Intent To Package). This probably
991     means that somebody is going to reintroduce this package into unstable.
992     </xsl:when>
993     <xsl:otherwise>
994     The WNPP database contains an ITP (Intent To Package) entry for
995     this package. This is probably an error, as it has already been
996     packaged.
997     </xsl:otherwise>
998     </xsl:choose>
999     </xsl:when>
1000     <xsl:when test="$other/wnpp/@type='RFP'">
1001     <xsl:choose>
1002     <xsl:when test="@release!='unstable' and @release!='experimental'">
1003     The WNPP database contains an RFP (Request For Package). This probably
1004     means that somebody would like to see this package reintroduced into
1005     unstable by a volunteer.
1006     </xsl:when>
1007     <xsl:otherwise>
1008     The WNPP database contains an RFP (Request For Package) entry
1009     for this package. This is probably an error, as it has already
1010     been packaged.
1011     </xsl:otherwise>
1012     </xsl:choose>
1013     </xsl:when>
1014     <xsl:when test="$other/wnpp/@type='RM'">
1015     <span style="font-weight: bold">This package has been requested to be
1016     removed</span>.
1017     This means that, when this request gets processed by an ftp-master, this
1018     package will no longer be in unstable, and will automatically be removed
1019     from testing too afterwards. If for some reason you want keep this
1020     package in unstable, please discuss so in the bug.
1021     </xsl:when>
1022     <xsl:otherwise>
1023     The WNPP database contains an entry for this package,
1024     but it is unclear what kind of entry it is. This is probably an error.
1025     </xsl:otherwise>
1026 hertzog 1712 </xsl:choose>
1027 zack 1768 <xsl:variable name="bn" select="$other/wnpp/@bugnumber"/>
1028     Please see bug number <a href="http://bugs.debian.org/{$bn}">
1029     #<xsl:value-of select="$bn"/></a> for more information.
1030     </li>
1031 hertzog 560 </xsl:if>
1032 zack 1768
1033 zack 1817 <!-- disable watch rendering, see above -->
1034     <!--
1035 zack 1768 <xsl:if test="$other/@watch='yes'">
1036     <li>
1037     <xsl:if test="$other/watch/@warning!=''">
1038     uscan had problems while searching for a new upstream version: <xsl:value-of select="$other/watch/@warning"/>
1039     </xsl:if>
1040     </li>
1041 hertzog 643 </xsl:if>
1042 zack 1817 -->
1043 zack 1823 <xsl:if test="$other[dehs/@error]">
1044     <li>The package has a <kbd>debian/watch</kbd> file, but the last
1045     attempt to use it for checking for newer upstream versions failed
1046     with
1047     <a href="http://dehs.alioth.debian.org/maintainer.php?name={$escaped-package}">an
1048     error</a>.</li>
1049     </xsl:if>
1050 hertzog 560
1051     <!-- Misc problems reported -->
1052 hertzog 347 <xsl:for-each select="$other/problems/item">
1053 zack 1768 <xsl:call-template name="outputitem"/>
1054 hertzog 347 </xsl:for-each>
1055     </xsl:if>
1056     </xsl:variable>
1057 hertzog 372 <xsl:if test="count($problems)>0 and string($problems)!=''">
1058 zack 1768 <tr class="titlerow">
1059     <td class="titlecell" id="problems">
1060     Problems
1061     </td></tr>
1062     <tr class="normalrow">
1063     <td class="contentcell2">
1064     <ul><xsl:copy-of select="$problems"/></ul>
1065     </td>
1066     </tr>
1067 hertzog 347 </xsl:if>
1068 zack 1768 </xsl:template>
1069 hertzog 347
1070 zack 1768 <xsl:template name="testing-status">
1071 zack 1866 <xsl:if test="$hasexcuse or $other/@transitions='yes'">
1072 zack 1768 <tr class="titlerow">
1073     <td class="titlecell">
1074 zack 1774 Testing status
1075 zack 1768 </td></tr>
1076 zack 1866 </xsl:if>
1077     <xsl:if test="$other/@transitions='yes'">
1078     <xsl:variable name="translist">
1079     <xsl:for-each select="$other/transitions/transition">
1080     <xsl:value-of select="@name" />
1081     <xsl:if test="position() != last()">
1082     <xsl:text> </xsl:text>
1083     </xsl:if>
1084     </xsl:for-each>
1085     </xsl:variable>
1086     <xsl:variable name="transno" select="count($other/transitions/transition)" />
1087 zack 1768 <tr class="normalrow">
1088     <td class="contentcell2" style="text-align: left">
1089 zack 1867 <ul>
1090     <!-- XXX unappropriate <ul>, just to make the text looks like other
1091     boxes, should be fixed on the CSS side (getting rid of <ul>) -->
1092     <li>This package is part of <em><xsl:value-of select="$transno" />
1093 zack 1866 ongoing testing transition<xsl:if test="$transno != '1'">s</xsl:if>
1094 zack 1867 </em> (namely: <tt><xsl:value-of select="$translist" /></tt>). For
1095     more information see the
1096 zack 1866 <a href="http://ftp-master.debian.org/transitions.yaml">transition
1097 zack 1868 status file</a>.<br />
1098 zack 1866 <em>Uploads to unstable will be rejected</em> while transitions are
1099     ongoing; you might want to upload to experimental in the
1100 zack 1868 meantime, or contact <tt><a href="mailto:debian-release@lists.debian.org">debian-release</a></tt>
1101     if an upload is really necessary.
1102     </li>
1103 zack 1867 </ul>
1104 zack 1866 </td>
1105     </tr>
1106     </xsl:if>
1107     <xsl:if test="$hasexcuse">
1108     <tr class="normalrow">
1109     <td class="contentcell2" style="text-align: left">
1110 zack 1768 <ul>
1111     <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
1112     <xsl:call-template name="outputitem"/>
1113     </xsl:for-each>
1114     </ul>
1115     </td>
1116     </tr>
1117 hertzog 347 </xsl:if>
1118 zack 1768 </xsl:template>
1119    
1120     <xsl:template name="static-info">
1121 zack 1745 <xsl:call-template name="output-static">
1122     <xsl:with-param name="static" select="$static" />
1123     </xsl:call-template>
1124 zack 1768 </xsl:template>
1125    
1126     <xsl:template name="latest-news">
1127 zack 1745 <xsl:call-template name="output-news">
1128     <xsl:with-param name="news" select="$news" />
1129     </xsl:call-template>
1130 zack 1768 </xsl:template>
1131 hertzog 347
1132 zack 1768 <xsl:variable name="static">
1133     <xsl:if test="$hasnews">
1134     <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">
1135     <xsl:call-template name="outputitem"/>
1136     </xsl:for-each>
1137     </xsl:if>
1138     </xsl:variable>
1139    
1140     <xsl:variable name="news">
1141     <xsl:if test="$hasnews">
1142     <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">
1143     <xsl:call-template name="outputitem"/>
1144     </xsl:for-each>
1145     </xsl:if>
1146     </xsl:variable>
1147    
1148     <!-- All the work is done in a single template -->
1149     <xsl:template match="source">
1150    
1151     <!-- Start of html -->
1152     <xsl:text disable-output-escaping="yes">
1153     &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;
1154     </xsl:text>
1155     <html>
1156     <head>
1157     <meta name="ROBOTS" content="NOFOLLOW"/>
1158 hertzog 1811 <link type="text/css" title="User selected" rel="stylesheet" href="../common/default.css"/>
1159     <link type="text/css" title="Official" rel="alternate stylesheet" href="../common/revamp.css"/>
1160 zack 1798 <link type="text/css" title="Legacy PTS" rel="alternate stylesheet" href="../common/pts.css"/>
1161 zack 1768 <link type="text/css" title="Compact rendering" rel="alternate stylesheet" href="../common/compact.css"/>
1162 hertzog 1811 <script type="text/javascript" src="../common/pts.js"></script>
1163 zack 1768 <xsl:if test="count($news)>0 and string($news)!=''">
1164     <link rel="alternate" type="application/rss+xml" title="RSS"
1165     href="{$package}/news.rss20.xml" />
1166     </xsl:if>
1167     <title>Overview of <xsl:value-of select="$package"/> source package</title>
1168     </head>
1169 hertzog 1811 <body onload="javascript:onLoad();">
1170 zack 1768
1171 hertzog 1811 <div id="quickforms" style="float: right;">
1172     <form method="get" action="/common/index.html">
1173     <p><span title="Jump to package">Go:</span>
1174 zack 1768 <input type="text" name="src" value=""/></p>
1175     </form>
1176 hertzog 1811 <form id="csspref-form" method="get" action="/common/set-csspref.php">
1177     <p>Switch style: <select name="csspref" onchange="javascript:onChangeStyle();">
1178     <option value="revamp.css">Default</option>
1179     <option value="compact.css">Compact</option>
1180     <option value="pts.css">Legacy</option>
1181     </select></p>
1182     </form>
1183    
1184     </div>
1185 zack 1768 <h1>Overview of
1186     <xsl:element name="a">
1187     <xsl:attribute name="href">
1188     <xsl:text>http://packages.debian.org/src:</xsl:text>
1189     <xsl:value-of select="$package"/>
1190     </xsl:attribute>
1191     <xsl:value-of select="$package"/>
1192     </xsl:element>
1193     source package</h1>
1194    
1195     <div id="body">
1196     <xsl:choose>
1197     <xsl:when test="$removed='yes'">
1198     <!-- REMOVED PACKAGE -->
1199     <p>This package is not part of any Debian distribution. Thus you won't
1200     find much information here. The package is either very new and hasn't
1201     appeared on mirrors yet, or it's an old package that eventually got removed.
1202     The old news are kept for historic purpose only.</p>
1203    
1204     <table class="righttable">
1205     <xsl:call-template name="static-info" />
1206     <xsl:call-template name="latest-news" />
1207 hertzog 347 </table>
1208 zack 1768
1209     <!-- END REMOVED PACKAGE -->
1210     </xsl:when>
1211     <xsl:otherwise>
1212     <!-- NON REMOVED PACKAGE -->
1213    
1214     <table class="containertable">
1215     <tr class="containerrow" valign="top">
1216     <td class="containercell">
1217     <!-- LEFT SIDE -->
1218     <table class="lefttable">
1219     <xsl:call-template name="general-information" />
1220     <xsl:call-template name="available-versions" />
1221 zack 1798 </table>
1222     <table class="lefttable">
1223 zack 1768 <xsl:call-template name="package-files" />
1224 zack 1798 <xsl:call-template name="binary-packages" />
1225 zack 1768 </table>
1226     <!-- END LEFT SIDE -->
1227     </td><td class="containercell">
1228     <!-- RIGHT SIDE -->
1229     <table class="righttable">
1230     <xsl:call-template name="todo-list" />
1231     <xsl:call-template name="problems" />
1232 zack 1798 </table>
1233     <table class="righttable">
1234 zack 1768 <xsl:call-template name="testing-status" />
1235     <xsl:call-template name="static-info" />
1236     <xsl:call-template name="latest-news" />
1237     </table>
1238 hertzog 347 <!-- END RIGHT SIDE -->
1239 zack 1798 </td><td class="containercell">
1240     <table class="lefttable">
1241     <xsl:call-template name="bugs-count" />
1242     <xsl:call-template name="pts-subscription" />
1243     </table>
1244     <table class="lefttable">
1245     <xsl:call-template name="patches" />
1246     </table>
1247     <table class="lefttable">
1248     <xsl:call-template name="other-links" />
1249     </table>
1250 hertzog 347 </td></tr>
1251     </table>
1252 hertzog 1303
1253     <!-- END NON REMOVED PACKAGE -->
1254     </xsl:otherwise>
1255     </xsl:choose>
1256    
1257 hertzog 347 <hr/>
1258 zack 1768 <div class="footer">
1259     <p>
1260 zack 1798 <a href="http://www.debian.org">Debian</a> Package Tracking System -
1261 zack 1814 Copyright 2002-2008 Raphaël Hertzog and others.<br/>
1262 zack 1768 Report problems to the <a href="http://bugs.debian.org/qa.debian.org"
1263 zack 1798 ><tt>qa.debian.org</tt> pseudopackage</a> in the <a
1264     href="http://bugs.debian.org">Debian <acronym title="Bug Tracking
1265     System">BTS</acronym></a>.<br/>
1266     Last modified : <xsl:value-of select="$date"/>.
1267 zack 1768 </p>
1268 zack 1763 </div>
1269 zack 1768 </div>
1270 hertzog 347 </body>
1271     </html>
1272     </xsl:template>
1273    
1274     </xsl:stylesheet>

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5