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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5