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

Legend:
Removed from v.1558  
changed lines
  Added in v.2227

  ViewVC Help
Powered by ViewVC 1.1.5