/[qa]/trunk/pts/www/xsl/pts.xsl
ViewVC logotype

Diff of /trunk/pts/www/xsl/pts.xsl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.427  
changed lines
  Added in v.1814

  ViewVC Help
Powered by ViewVC 1.1.5