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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5