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

Legend:
Removed from v.1021  
changed lines
  Added in v.2718

  ViewVC Help
Powered by ViewVC 1.1.5