/[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 2058 by zack, Sat Nov 29 15:20:51 2008 UTC revision 2551 by hertzog, Wed Jul 27 22:14:36 2011 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-2008 Raphaël Hertzog and others  # Copyright © 2002-2011 Raphaël Hertzog and others
5  # Copyright 2007-2008 Stefano Zacchiroli  # 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  -->  -->
# Line 10  Line 10 
10  <xsl:stylesheet  <xsl:stylesheet
11    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
12    xmlns="http://www.w3.org/1999/xhtml"    xmlns="http://www.w3.org/1999/xhtml"
13      xmlns:str="http://exslt.org/strings"
14    version="1.0">    version="1.0">
15    
16  <xsl:output  <xsl:output
# Line 37  Line 38 
38  <xsl:param name="hassecurity-oldstable" select="''"/>  <xsl:param name="hassecurity-oldstable" select="''"/>
39  <xsl:param name="hassecurity-stable" select="''"/>  <xsl:param name="hassecurity-stable" select="''"/>
40  <xsl:param name="hassecurity-testing" select="''"/>  <xsl:param name="hassecurity-testing" select="''"/>
41  <xsl:param name="hassecure-testing" select="''"/>  <xsl:param name="hasoldstable-updates" select="''"/>
42  <xsl:param name="hasvolatile" select="''"/>  <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    
# Line 46  Line 49 
49    select="document(concat('../base/', $dir, '/other.xml'))/other"/>    select="document(concat('../base/', $dir, '/other.xml'))/other"/>
50  <xsl:variable name="low-nmu-emails"  <xsl:variable name="low-nmu-emails"
51    select="document('../base/low_threshold_nmu.emails.xml')/emails"/>    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.8.0'"/>  <xsl:variable name="lastsv" select="'3.9.2'"/>
84  <xsl:variable name="lastmajorsv" select="'3.'"/>  <xsl:variable name="lastmajorsv" select="'3.'"/>
85    
86  <!-- lintian summary -->  <!-- lintian summary -->
# Line 63  Line 94 
94    <xsl:variable name="lintian_pattern" select="concat('àáèéëêòöøîìùñ~/()&#34; ', &quot;'&quot;)"/>    <xsl:variable name="lintian_pattern" select="concat('àáèéëêòöøîìùñ~/()&#34; ', &quot;'&quot;)"/>
95    <xsl:variable name="lintian_email" select="translate(maintainer/email, $lintian_pattern, '_____________________')"/>    <xsl:variable name="lintian_email" select="translate(maintainer/email, $lintian_pattern, '_____________________')"/>
96    
97    <xsl:text>http://lintian.debian.org/reports/maintainer/</xsl:text>    <xsl:text>http://lintian.debian.org/maintainer/</xsl:text>
98    <xsl:value-of select="$lintian_email" />    <xsl:value-of select="$lintian_email" />
99    <xsl:text>.html#</xsl:text>    <xsl:text>.html#</xsl:text>
100    <xsl:value-of select="$package" />    <xsl:value-of select="$package" />
101  </xsl:template>  </xsl:template>
102    
103  <xsl:template name="mirror">  <xsl:variable name="mirror">http://cdn.debian.net/debian</xsl:variable>
104    <xsl:text>http://ftp.debian.org/debian</xsl:text>  <xsl:variable name="security-mirror">http://security.debian.org/debian-security</xsl:variable>
105  </xsl:template>  <xsl:variable name="backports-mirror">http://backports.debian.org/debian-backports</xsl:variable>
106    
107  <xsl:template name="outputitem">  <xsl:template name="outputitem">
108    <xsl:choose>    <xsl:choose>
# Line 86  Line 117 
117          <xsl:value-of select="@from"/>          <xsl:value-of select="@from"/>
118          <xsl:text>)</xsl:text></xsl:if></li>          <xsl:text>)</xsl:text></xsl:if></li>
119      </xsl:when>      </xsl:when>
120        <xsl:when test="@type='raw'">
121          <li>
122            <xsl:copy-of select="node()" />
123          </li>
124        </xsl:when>
125      <xsl:otherwise>      <xsl:otherwise>
126        <li><xsl:if test="@date">        <li><xsl:if test="@date">
127          <xsl:text>[</xsl:text>          <xsl:text>[</xsl:text>
# Line 131  other-to-%xx, especially % to %25... For Line 167  other-to-%xx, especially % to %25... For
167    
168  <xsl:template name="add-vcs-info">  <xsl:template name="add-vcs-info">
169    <xsl:if test="repository">    <xsl:if test="repository">
170      <tr>      <dt title="Version Control System">VCS</dt>
171        <td class="labelcell">      <dd>
172          <acronym title="Version Control System">VCS</acronym>        <xsl:if test="repository/vcs[@kind!='browser']">
173        </td>          <xsl:for-each select="repository/vcs[@kind!='browser']">
174        <td class="contentcell">            <xsl:sort select="@kind" />
175          <xsl:if test="repository/vcs[@kind!='browser']">            <a title="raw {@kind} repository" href="{@url}">
176            <xsl:for-each select="repository/vcs[@kind!='browser']">              <xsl:value-of select="@kind" />
177              <xsl:sort select="@kind" />            </a>
178              <a title="access to the raw repository" href="{@url}">            <xsl:if test="position()!=last()"><xsl:text>, </xsl:text></xsl:if>
179                <xsl:value-of select="@kind" />          </xsl:for-each>
180              </a>        </xsl:if>
181              <xsl:if test="position()!=last()">        <xsl:if test="repository/vcs[@kind='browser']">
182                <xsl:text>, </xsl:text>          <xsl:text> (</xsl:text>
183              </xsl:if>          <a title="browse the repository"
184            </xsl:for-each>             href="{repository/vcs[@kind='browser']/@url}">browse</a>
         </xsl:if>  
         <xsl:if test="repository/vcs[@kind='browser']">  
           <xsl:text> (</xsl:text>  
           <a title="web-based repository browsing"  
             href="{repository/vcs[@kind='browser']/@url}">browse</a>  
185            <xsl:text>)</xsl:text>            <xsl:text>)</xsl:text>
186          </xsl:if>        </xsl:if>
187        </td>      </dd>
     </tr>  
188    </xsl:if>    </xsl:if>
189  </xsl:template>  </xsl:template>
190    
# Line 172  other-to-%xx, especially % to %25... For Line 202  other-to-%xx, especially % to %25... For
202    </xsl:variable>    </xsl:variable>
203    
204    <xsl:if test="string($dm)!='' or string($lownmu)!=''">    <xsl:if test="string($dm)!='' or string($lownmu)!=''">
205      <tr>      <div class="maint-markers">
206        <td class="labelcell">      <xsl:if test="string($dm)!=''">
207          <xsl:text>Maintenance</xsl:text>        <span class="dm-tag">
208        </td>          <a href="http://www.debian.org/vote/2007/vote_003">
209        <td class="contentcell">            <acronym title="Debian Maintainer Upload Allowed: this package can be uploaded by Debian Maintainers">DMUA</acronym>
210            </a>
211          <xsl:if test="string($dm)!=''">        </span>
212            <span class="dm-tag">      </xsl:if>
213              <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>      <xsl:if test="string($lownmu)!=''">
214            </span>        <xsl:if test="string($dm)!=''">
215            <xsl:text> </xsl:text>          <xsl:text>, </xsl:text>
216          </xsl:if>        </xsl:if>
217          <span class="lownmu-tag">
218          <xsl:if test="string($lownmu)!=''">          <a href="http://wiki.debian.org/LowThresholdNmu">
219            <span class="lownmu-tag">            <acronym title="maintainer agrees with Low Threshold NMU">LowNMU</acronym>
220              <a href="http://wiki.debian.org/LowThresholdNmu"><acronym          </a>
221                  title="maintainer agrees with Low Threshold NMU, see wiki page for details">LowNMU</acronym></a>        </span>
222            </span>      </xsl:if>
223            <xsl:text> </xsl:text>      </div>
         </xsl:if>  
       </td>  
     </tr>  
224    </xsl:if>    </xsl:if>
225  </xsl:template>  </xsl:template>
226    
# Line 201  other-to-%xx, especially % to %25... For Line 228  other-to-%xx, especially % to %25... For
228    <xsl:param name="news" />    <xsl:param name="news" />
229    
230    <xsl:if test="count($news)>0 and string($news)!=''">    <xsl:if test="count($news)>0 and string($news)!=''">
231      <tr class="titlerow">      <div class="block news">
232      <td class="titlecell">        <a name="news" />
233        Latest news <a class="feedlink" href="{$package}/news.rss20.xml">RSS</a>        <h2>news <a class="feedlink" href="{$package}/news.rss20.xml">RSS</a></h2>
234      </td></tr>        <ul id="news-list">
235      <tr class="normalrow">          <xsl:copy-of select="$news" />
236      <td class="contentcell2">        </ul>
237      <ul id="news-list"><xsl:copy-of select="$news"/></ul>      </div>
     </td>  
     </tr>  
238    </xsl:if>    </xsl:if>
239  </xsl:template>  </xsl:template>
240    
# Line 217  other-to-%xx, especially % to %25... For Line 242  other-to-%xx, especially % to %25... For
242    <xsl:param name="static" />    <xsl:param name="static" />
243    
244    <xsl:if test="count($static)>0 and string($static)!=''">    <xsl:if test="count($static)>0 and string($static)!=''">
245      <tr class="titlerow">      <div class="block static">
246      <td class="titlecell">        <a name="static" />
247      Static Information        <h2>static info</h2>
248      </td></tr>        <ul>
249      <tr class="normalrow">          <xsl:copy-of select="$static" />
250      <td class="contentcell2">        </ul>
251      <ul><xsl:copy-of select="$static"/></ul>      </div>
     </td>  
     </tr>  
252    </xsl:if>    </xsl:if>
253  </xsl:template>  </xsl:template>
254    
 <xsl:template name="categorize-srcfile">  
   <!-- used to recognize (and tag afterwards) well-known type of source package  
     components: dsc, diff, orig -->  
   <xsl:choose>  
     <xsl:when test="substring(filename,string-length(filename)-2, 3)='dsc'">  
       <xsl:text>dsc</xsl:text>  
     </xsl:when>  
     <xsl:when test="substring(filename,string-length(filename)-6, 7)='diff.gz'">  
       <xsl:text>diff</xsl:text>  
     </xsl:when>  
     <xsl:when test="substring(filename,string-length(filename)-5, 3)='tar'">  
       <xsl:text>orig</xsl:text>  
     </xsl:when>  
     <xsl:otherwise><xsl:text></xsl:text></xsl:otherwise>  
   </xsl:choose>  
 </xsl:template>  
   
255  <xsl:template name="maintainer-email">  <xsl:template name="maintainer-email">
256    <xsl:param name="email" />    <xsl:param name="email" />
257    <a class="email" href="mailto:{$email}">    <a class="email" href="mailto:{$email}">
# Line 254  other-to-%xx, especially % to %25... For Line 260  other-to-%xx, especially % to %25... For
260  </xsl:template>  </xsl:template>
261    
262  <xsl:template name="general-information">  <xsl:template name="general-information">
263    <tr class="titlerow">    <div class="block info">
264      <td class="titlecell" colspan="2">General information</td>      <a name="general" />
265    </tr>      <h2>general</h2>
266    <tr class="normalrow">      <dl>
267      <td class="labelcell">Latest version</td>        <dt>source</dt>
268      <td class="contentcell">        <dd>
269        <span id="latest_version"><xsl:value-of select="version"/></span>          <a href="http://packages.debian.org/src:{$package}">
270      </td>            <xsl:value-of select="$package" />
271    </tr>          </a>
272    <xsl:if test="@release!='unstable'">          (<span id="priority" title="priority">
273      <tr class="normalrow">            <small><xsl:value-of select="priority"/></small>
274        <td class="labelcell">Distribution</td>          </span>,
275        <td class="contentcell"><xsl:value-of select="@release"/></td>          <span id="section" title="section">
276      </tr>            <small><xsl:value-of select="section"/></small>
277    </xsl:if>          </span>)
278    <tr class="normalrow">        </dd>
279      <td class="labelcell">Maintainer</td>  
280      <td class="maintainer contentcell">        <dt>version</dt>
281        <xsl:element name="a">        <dd>
282          <xsl:attribute name="href">          <span id="latest_version"><xsl:value-of select="version"/></span>
283            <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>        </dd>
284            <xsl:call-template name="escape-name">  
285              <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>        <xsl:if test="@release!='unstable'">
286            </xsl:call-template>          <dt>distro</dt>
287          </xsl:attribute>          <dd><xsl:value-of select="@release"/></dd>
288          <span class="name"><xsl:value-of select="maintainer/name"/></span>        </xsl:if>
289        </xsl:element>  
290        <xsl:text> </xsl:text>        <dt title="Maintainer and Uploaders">maint</dt>
291        <xsl:call-template name="maintainer-email">        <dd class="maintainer">
292          <xsl:with-param name="email" select="maintainer/email" />          <xsl:element name="a">
293        </xsl:call-template>            <xsl:attribute name="href">
294      </td>              <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
295    </tr>              <xsl:call-template name="escape-name">
296    <xsl:if test="uploaders">                <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>
297      <tr class="normalrow">              </xsl:call-template>
298        <td class="labelcell"><a href="http://www.debian.org/doc/manuals/developers-reference/pkgs.html#collaborative-maint">Uploaders</a></td>            </xsl:attribute>
299        <td class="uploaders contentcell">            <span class="name" title="maintainer">
300          <xsl:for-each select="uploaders/item">              <xsl:value-of select="maintainer/name"/>
           <span class="uploader">  
             <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="email"/></xsl:with-param>  
                 </xsl:call-template>  
               </xsl:attribute>  
               <span class="name"><xsl:value-of select="name"/></span>  
             </xsl:element>  
             <xsl:text> </xsl:text>  
             <xsl:call-template name="maintainer-email">  
               <xsl:with-param name="email" select="email" />  
             </xsl:call-template>  
301            </span>            </span>
302            <br />          </xsl:element>
303          </xsl:for-each>          <xsl:if test="uploaders">
304      </td></tr>            <xsl:for-each select="uploaders/item">
305    </xsl:if>              <xsl:text>, </xsl:text>
306    <xsl:call-template name='add-maintenance-info'>              <span class="uploader">
307      <xsl:with-param name="email" select="maintainer/email" />                <small>
308    </xsl:call-template>                <xsl:element name="a">
309    <tr class="normalrow">                  <xsl:attribute name="href">
310      <xsl:variable name='stdver' select="standards-version" />                    <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
311      <td class="labelcell">Conforms to</td>                    <xsl:call-template name="escape-name">
312      <td class="contentcell">                      <xsl:with-param name="text">
313        <a title="Debian Policy Manual (version: {$stdver})"                        <xsl:value-of select="email"/>
314          href="http://www.debian.org/doc/debian-policy/">                      </xsl:with-param>
315          <xsl:value-of select="$stdver"/>                    </xsl:call-template>
316        </a>                  </xsl:attribute>
317      </td>                  <span class="name" title="uploader">
318    </tr>                    <xsl:value-of select="name"/>
319    <tr class="normalrow">                  </span>
320      <td class="labelcell">Priority</td>                </xsl:element>
321      <td class="contentcell"> <xsl:value-of select="priority"/> </td>                <xsl:text> (u)</xsl:text>
322    </tr>                </small>
323    <tr class="normalrow">              </span>
324      <td class="labelcell">Section</td>            </xsl:for-each>
325      <td class="contentcell"> <xsl:value-of select="section"/> </td>          </xsl:if>
326    </tr>          <xsl:call-template name='add-maintenance-info'>
327    <xsl:call-template name='add-vcs-info' />            <xsl:with-param name="email" select="maintainer/email" />
328    <xsl:if test="architecture!='any' and architecture!='all'">          </xsl:call-template>
329      <tr class="normalrow">        </dd>
330        <td class="labelcell">Architecture</td>  
331        <td class="contentcell"><xsl:value-of select="architecture"/></td>        <xsl:if test="architecture!='any' and architecture!='all'">
332      </tr>          <dt>arch</dt>
333    </xsl:if>          <dd><xsl:value-of select="architecture"/></dd>
334          </xsl:if>
335    
336          <dt title="Standards-Version">std-ver</dt>
337          <dd>
338            <span id="standards_version">
339              <xsl:value-of select="standards-version"/>
340            </span>
341          </dd>
342    
343          <xsl:call-template name='add-vcs-info' />
344        </dl>
345      </div>
346  </xsl:template>  </xsl:template>
347    
348  <xsl:template name="bugs-count">  <xsl:template name="bugs-count">
349    <tr class="titlerow">    <div class="block bugs">
350      <td class="titlecell" colspan="2">Bugs count</td>      <a name="bugs" />
351    </tr>      <h2>bugs</h2>
352    <tr class="normalrow" id="bugs_all">      <dl>
353      <td class="labelcell">All bugs        <dt id="bugs_all">
354         <xsl:element name="a">          all
355          <xsl:attribute name="href">          <xsl:element name="a">
           <xsl:text>http://people.debian.org/~glandium/bts/</xsl:text>  
           <xsl:value-of select="substring($package, 1, 1)"/>  
           <xsl:text>/</xsl:text>  
           <xsl:value-of select="$escaped-package" />  
           <xsl:text>.png</xsl:text>  
         </xsl:attribute>  
         <xsl:attribute name="style">font-weight: normal</xsl:attribute>  
         <xsl:text>(graph)</xsl:text>  
       </xsl:element>  
     </td>  
     <td class="contentcell">  
       <xsl:element name="a">  
         <xsl:attribute name="href">  
           <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=no&amp;src=</xsl:text>  
           <xsl:value-of select="$escaped-package" />  
         </xsl:attribute>  
         <xsl:if test="$hasother">  
           <xsl:value-of select="$other/bugs/@all"/>  
         </xsl:if>  
       </xsl:element>  
       <xsl:if test="$hasother and $other/bugs/@all_m">  
         (<xsl:element name="a">  
356            <xsl:attribute name="href">            <xsl:attribute name="href">
357              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=yes&amp;src=</xsl:text>              <xsl:text>http://qa.debian.org/data/bts/graphs/</xsl:text>
358              <xsl:value-of select="$escaped-package" />              <xsl:value-of select="$dir"/>
359                <xsl:text>.png</xsl:text>
360            </xsl:attribute>            </xsl:attribute>
361            <xsl:value-of select="$other/bugs/@all_m"/>            <xsl:attribute name="title">bug history graph</xsl:attribute>
362          </xsl:element>)            <img alt="bug history graph" src="../common/bug-graph.png" />
363        </xsl:if>          </xsl:element>
364      </td>        </dt>
365    </tr>        <dd>
366    <tr class="normalrow" id="bugs_rc">          <xsl:element name="a">
     <td class="labelcell"><span class="indented"><acronym title="Release Critical">RC</acronym> bugs</span></td>  
     <td class="contentcell">  
       <xsl:element name="a">  
         <xsl:attribute name="href">  
           <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>  
           <xsl:value-of select="$escaped-package" />  
           <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:attribute>  
         <xsl:if test="$hasother">  
           <xsl:value-of select="$other/bugs/@rc"/>  
         </xsl:if>  
       </xsl:element>  
       <xsl:if test="$hasother and $other/bugs/@rc_m">  
         (<xsl:element name="a">  
367            <xsl:attribute name="href">            <xsl:attribute name="href">
368              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=no&amp;src=</xsl:text>
369              <xsl:value-of select="$escaped-package" />              <xsl:value-of select="$escaped-package" />
             <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>  
370            </xsl:attribute>            </xsl:attribute>
371            <xsl:value-of select="$other/bugs/@rc_m"/>            <xsl:if test="$hasother">
372          </xsl:element>)              <span class="bugcount" title="all">
373        </xsl:if>                <xsl:value-of select="$other/bugs/@all"/>
374      </td>              </span>
375    </tr>            </xsl:if>
376    <tr class="normalrow" id="bugs_in">          </xsl:element>
377      <td class="labelcell"><span class="indented"><acronym title="Important and Normal">I&amp;N</acronym> bugs</span></td>          <xsl:if test="$hasother and $other/bugs/@all_m">
378      <td class="contentcell">            (<xsl:element name="a">
379        <xsl:element name="a">              <xsl:attribute name="href">
380          <xsl:attribute name="href">                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=yes&amp;src=</xsl:text>
381            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>                <xsl:value-of select="$escaped-package" />
382            <xsl:value-of select="$escaped-package" />              </xsl:attribute>
383            <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:value-of select="$other/bugs/@all_m"/>
384          </xsl:attribute>            </xsl:element>)
         <xsl:if test="$hasother">  
           <xsl:value-of select="$other/bugs/@normal"/>  
385          </xsl:if>          </xsl:if>
386        </xsl:element>        </dd>
387        <xsl:if test="$hasother and $other/bugs/@normal_m">        <dt id="bugs_rc" title="Release Critical">
388          (<xsl:element name="a">          <span class="indented">RC</span>
389          </dt>
390          <dd>
391            <xsl:element name="a">
392            <xsl:attribute name="href">            <xsl:attribute name="href">
393              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
394              <xsl:value-of select="$escaped-package" />              <xsl:value-of select="$escaped-package" />
395              <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>              <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>
396            </xsl:attribute>            </xsl:attribute>
397            <xsl:value-of select="$other/bugs/@normal_m"/>            <xsl:if test="$hasother">
398          </xsl:element>)              <span class="bugcount" title="rc">
399        </xsl:if>                <xsl:value-of select="$other/bugs/@rc"/>
400      </td>              </span>
401    </tr>            </xsl:if>
402    <tr class="normalrow" id="bugs_mw">          </xsl:element>
403      <td class="labelcell"><span class="indented"><acronym title="Minor and Wishlist">M&amp;W</acronym> bugs</span></td>          <xsl:if test="$hasother and $other/bugs/@rc_m">
404      <td class="contentcell">            (<xsl:element name="a">
405        <xsl:element name="a">              <xsl:attribute name="href">
406          <xsl:attribute name="href">                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
407            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>                <xsl:value-of select="$escaped-package" />
408            <xsl:value-of select="$escaped-package" />                <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>
409            <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:attribute>
410          </xsl:attribute>              <xsl:value-of select="$other/bugs/@rc_m"/>
411          <xsl:if test="$hasother">            </xsl:element>)
           <xsl:value-of select="$other/bugs/@wishlist"/>  
412          </xsl:if>          </xsl:if>
413        </xsl:element>        </dd>
414        <xsl:if test="$hasother and $other/bugs/@wishlist_m">        <dt id="bugs_in" title="Important and Normal">
415          (<xsl:element name="a">          <span class="indented">I&amp;N</span>
416          </dt>
417          <dd>
418            <xsl:element name="a">
419            <xsl:attribute name="href">            <xsl:attribute name="href">
420              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
421              <xsl:value-of select="$escaped-package" />              <xsl:value-of select="$escaped-package" />
422              <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>              <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>
423            </xsl:attribute>            </xsl:attribute>
424            <xsl:value-of select="$other/bugs/@wishlist_m"/>            <xsl:if test="$hasother">
425          </xsl:element>)              <span class="bugcount" title="in">
426        </xsl:if>                <xsl:value-of select="$other/bugs/@normal"/>
427      </td>              </span>
428    </tr>            </xsl:if>
429    <tr class="normalrow" id="bugs_fp">          </xsl:element>
430      <td class="labelcell"><span class="indented"><acronym title="Fixed and Pending">F&amp;P</acronym> bugs</span></td>          <xsl:if test="$hasother and $other/bugs/@normal_m">
431      <td class="contentcell">            (<xsl:element name="a">
432        <xsl:element name="a">              <xsl:attribute name="href">
433          <xsl:attribute name="href">                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
434            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>                <xsl:value-of select="$escaped-package" />
435            <xsl:value-of select="$escaped-package" />                <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>
436            <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=no</xsl:text>              </xsl:attribute>
437          </xsl:attribute>              <xsl:value-of select="$other/bugs/@normal_m"/>
438          <xsl:if test="$hasother">            </xsl:element>)
           <xsl:value-of select="$other/bugs/@fixed"/>  
439          </xsl:if>          </xsl:if>
440        </xsl:element>        </dd>
441        <xsl:if test="$hasother and $other/bugs/@fixed_m">        <dt id="bugs_mw" title="Minor and Wishlist">
442          (<xsl:element name="a">          <span class="indented">M&amp;W</span>
443          </dt>
444          <dd>
445            <xsl:element name="a">
446            <xsl:attribute name="href">            <xsl:attribute name="href">
447              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
448              <xsl:value-of select="$escaped-package" />              <xsl:value-of select="$escaped-package" />
449              <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=yes</xsl:text>              <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>
450            </xsl:attribute>            </xsl:attribute>
451            <xsl:value-of select="$other/bugs/@fixed_m"/>            <xsl:if test="$hasother">
452          </xsl:element>)              <span class="bugcount" title="mw">
453        </xsl:if>                <xsl:value-of select="$other/bugs/@wishlist"/>
454      </td>              </span>
455    </tr>            </xsl:if>
456    <xsl:if test="$other/bugs/@gift > 0">          </xsl:element>
457      <tr class="normalrow" id="bugs_gift">          <xsl:if test="$hasother and $other/bugs/@wishlist_m">
458        <td class="labelcell"><span class="indented"><a            (<xsl:element name="a">
459              href="http://wiki.debian.org/qa.debian.org/GiftTag">Gift</a>              <xsl:attribute name="href">
460            bugs</span></td>                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
461        <td class="contentcell">                <xsl:value-of select="$escaped-package" />
462                  <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=minor&amp;sev-inc=wishlist&amp;repeatmerged=yes</xsl:text>
463                </xsl:attribute>
464                <xsl:value-of select="$other/bugs/@wishlist_m"/>
465              </xsl:element>)
466            </xsl:if>
467          </dd>
468          <dt id="bugs_fp" title="Fixed and Pending">
469            <span class="indented">F&amp;P</span>
470          </dt>
471          <dd>
472          <xsl:element name="a">          <xsl:element name="a">
473            <xsl:attribute name="href">            <xsl:attribute name="href">
474              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
475              <xsl:value-of select="$escaped-package" />              <xsl:value-of select="$escaped-package" />
476              <xsl:text>&amp;users=debian-qa@lists.debian.org;tag=gift</xsl:text>              <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=no</xsl:text>
477            </xsl:attribute>            </xsl:attribute>
478            <xsl:value-of select="$other/bugs/@gift" />            <xsl:if test="$hasother">
479                <span class="bugcount" title="fp">
480                  <xsl:value-of select="$other/bugs/@fixed"/>
481                </span>
482              </xsl:if>
483          </xsl:element>          </xsl:element>
484        </td>          <xsl:if test="$hasother and $other/bugs/@fixed_m">
485      </tr>            (<xsl:element name="a">
486    </xsl:if>              <xsl:attribute name="href">
487                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
488                  <xsl:value-of select="$escaped-package" />
489                  <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=yes</xsl:text>
490                </xsl:attribute>
491                <xsl:value-of select="$other/bugs/@fixed_m"/>
492              </xsl:element>)
493            </xsl:if>
494          </dd>
495          <xsl:if test="$other/bugs/@gift &gt; 0">
496            <dt id="bugs_gift">
497              <span class="indented">
498                <a href="http://wiki.debian.org/qa.debian.org/GiftTag">gift</a>
499              </span>
500            </dt>
501            <dd>
502              <xsl:element name="a">
503                <xsl:attribute name="href">
504                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
505                  <xsl:value-of select="$escaped-package" />
506                <xsl:text>&amp;users=debian-qa@lists.debian.org;tag=gift</xsl:text>
507                </xsl:attribute>
508                <span class="bugcount" title="gift">
509                  <xsl:value-of select="$other/bugs/@gift" />
510                </span>
511              </xsl:element>
512            </dd>
513          </xsl:if>
514        </dl>
515      </div>
516  </xsl:template>  </xsl:template>
517    
518  <xsl:template name="pts-subscription">  <xsl:template name="pts-subscription">
519    <tr class="titlerow">    <!-- <acronym title="Package Tracking System">PTS</acronym> subscription -->
520      <td class="titlecell" colspan="2">    <!-- <tr class="normalrow"> -->
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    <!--   <td class="labelcell">Subscribers count</td> -->
522    </td></tr>    <!--   <td class="contentcell"><xsl:if test="$hasother"> -->
523    <tr class="normalrow">    <!--  <xsl:value-of select="$other/pts/@count"/> -->
524      <td class="labelcell">Subscribers count</td>    <!--   </xsl:if></td> -->
525      <td class="contentcell"><xsl:if test="$hasother">    <!-- </tr> -->
526          <xsl:value-of select="$other/pts/@count"/>    <form method="post" action="/cgi-bin/pts.cgi">
527      </xsl:if></td>      <p>
528    </tr>        <input type="hidden" name="package" value="{$package}"/>
529    <tr class="normalrow">        subscribe to this package<br />
530      <td class="contentcell" colspan="2">        <input type="text" name="email" size="10" value="email"
531        <form method="post" action="/cgi-bin/pts.cgi">               onfocus="if(email.value=='your email'){{email.value=''}}"/>
532          <p>        <select name="what">
533            <input type="hidden" name="package" value="{$package}"/>          <option value="subscribe">sub</option>
534            <select name="what">          <option value="unsubscribe">unsub</option>
535              <option value="subscribe">Subscribe</option>          <option value="advanced">opts</option>
536              <option value="unsubscribe">Unsubscribe</option>        </select>
537              <option value="advanced">Advanced mode</option>        <input type="submit" name="submit" value="go"/>
538            </select>      </p>
539            <input type="text" name="email" size="15" value="your email"    </form>
             onfocus="if(email.value=='your email'){{email.value=''}}"/>  
           <input type="submit" name="submit" value="Send"/>  
         </p>  
       </form>  
     </td>  
   </tr>  
540  </xsl:template>  </xsl:template>
541    
542  <xsl:template name="binary-packages">  <xsl:template name="binary-packages">
543    <tr class="titlerow">    <div class="block binaries">
544      <td class="titlecell" colspan="2">Binary packages</td>      <a name="binaries" />
545    </tr>      <h2>binaries</h2>
546    <tr class="normalrow">      <ul>
547      <td class="normalcell" colspan="2" style="text-align: left">        <xsl:for-each select="binary/item">
548        <ul>          <xsl:sort select="text()"/>
549          <xsl:for-each select="binary/item">          <xsl:variable name="pkg" select="text()"/>
550            <xsl:sort select="text()"/>          <xsl:variable name="tooltip"
551            <xsl:variable name="pkg" select="text()"/>                        select="concat($pkg, ': ',
552            <xsl:variable name="tooltip"                                $other/descriptions/shortdesc[@package=$pkg])" />
553              select="concat($pkg, ': ',          <li class="binpkg">
554                  $other/descriptions/shortdesc[@package=$pkg])" />            <a class="binpkg" title="{$tooltip}"
555            <li class="binpkg">               href="http://packages.debian.org/{text()}">
556              <a class="binpkg" title="{$tooltip}"              <span class="binpkg"><xsl:value-of select="text()"/></span>
557                href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>            </a>
558              <span style="font-size: 70%">            <span style="font-size: 70%">
559                (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:              (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:
560                <xsl:element name="a">
561                <xsl:element name="a">                <xsl:attribute name="title">critical, grave and serious</xsl:attribute>
562                  <xsl:attribute name="title">critical, grave and serious</xsl:attribute>                <xsl:attribute name="href">
563                  <xsl:attribute name="href">                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
564                    <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>                  <xsl:call-template name="escape-name">
565                    <xsl:call-template name="escape-name">                    <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
566                      <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>                  </xsl:call-template>
567                    </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>
568                    <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>
569                  </xsl:attribute>                <xsl:value-of select="$other/bugs/item[@name=$pkg]/@rc"/>
570                  <xsl:value-of select="$other/bugs/item[@name=$pkg]/@rc"/>              </xsl:element>,
571                </xsl:element>,              <xsl:element name="a">
572                  <xsl:attribute name="title">important and normal</xsl:attribute>
573                <xsl:element name="a">                <xsl:attribute name="href">
574                  <xsl:attribute name="title">important and normal</xsl:attribute>                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
575                  <xsl:attribute name="href">                  <xsl:call-template name="escape-name">
576                    <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>                    <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
577                    <xsl:call-template name="escape-name">                  </xsl:call-template>
578                      <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</xsl:text>
579                    </xsl:call-template>                </xsl:attribute>
580                    <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:value-of select="$other/bugs/item[@name=$pkg]/@normal"/>
581                  </xsl:attribute>              </xsl:element>,
582                  <xsl:value-of select="$other/bugs/item[@name=$pkg]/@normal"/>              <xsl:element name="a">
583                </xsl:element>,                <xsl:attribute name="title">wishlist and minor</xsl:attribute>
584                  <xsl:attribute name="href">
585                <xsl:element name="a">                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
586                  <xsl:attribute name="title">wishlist and minor</xsl:attribute>                  <xsl:call-template name="escape-name">
587                  <xsl:attribute name="href">                    <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
588                    <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>                  </xsl:call-template>
589                    <xsl:call-template name="escape-name">                  <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>
590                      <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>                </xsl:attribute>
591                    </xsl:call-template>                <xsl:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/>
592                    <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:element>,
593                  </xsl:attribute>              <xsl:element name="a">
594                  <xsl:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/>                <xsl:attribute name="title">pending and fixed</xsl:attribute>
595                </xsl:element>,                <xsl:attribute name="href">
596                    <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
597                <xsl:element name="a">                  <xsl:call-template name="escape-name">
598                  <xsl:attribute name="title">pending and fixed</xsl:attribute>                    <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
599                  <xsl:attribute name="href">                  </xsl:call-template>
600                    <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>                  <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
601                    <xsl:call-template name="escape-name">                </xsl:attribute>
602                      <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>                <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>
603                    </xsl:call-template>              </xsl:element>)
604                    <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>            </span>
605                  </xsl:attribute>          </li>
606                  <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>        </xsl:for-each>
607                </xsl:element>)      </ul>
608              </span>    </div>
           </li>  
         </xsl:for-each>  
   </ul></td></tr>  
609  </xsl:template>  </xsl:template>
610    
611  <xsl:template name="output-version">  <xsl:template name="output-version">
# Line 612  other-to-%xx, especially % to %25... For Line 619  other-to-%xx, especially % to %25... For
619    </xsl:variable>    </xsl:variable>
620    <xsl:choose>    <xsl:choose>
621      <xsl:when test="$link='yes'">      <xsl:when test="$link='yes'">
622        <a href="http://packages.debian.org/source/{$suite}/{$package}">        <xsl:element name="a">
623          <xsl:copy-of select="$version" />          <xsl:attribute name="class">dsc</xsl:attribute>
624        </a>          <xsl:attribute name="href">
625              <xsl:choose>
626                <xsl:when test="starts-with($suite, 'security-')">
627                  <xsl:value-of select="$security-mirror"/>
628                  <xsl:text>/</xsl:text>
629                  <xsl:value-of
630                     select="document(concat('../base/', $dir, '/',
631                             $suite, '.xml'))/source/directory" />
632                </xsl:when>
633                <xsl:when test="str:replace($suite, '-backports', '') != $suite">
634                  <xsl:value-of select="$backports-mirror"/>
635                  <xsl:text>/</xsl:text>
636                  <xsl:value-of
637                     select="document(concat('../base/', $dir, '/',
638                             $suite, '.xml'))/source/directory" />
639                </xsl:when>
640                <xsl:otherwise>
641                  <xsl:value-of select="$mirror"/>
642                  <xsl:text>/</xsl:text>
643                  <xsl:value-of select="$pooldir"/>
644                </xsl:otherwise>
645              </xsl:choose>
646              <xsl:text>/</xsl:text>
647              <xsl:value-of select="document(concat('../base/', $dir, '/',
648                                    $suite, '.xml'))/source/files/item[1]/filename"/>
649            </xsl:attribute>
650            <xsl:attribute name="title">.dsc, use dget on this link to retrieve source package</xsl:attribute>
651            <img src="../common/save.png" alt="save" />
652          </xsl:element>
653          <xsl:choose>
654            <xsl:when test="starts-with($suite, 'security-')">
655              <xsl:element name="a">
656                <xsl:attribute name="href">
657                  <xsl:text>http://packages.debian.org/source/</xsl:text>
658                  <xsl:value-of select="str:replace($suite, 'security-', '')" />
659                  <xsl:text>/</xsl:text>
660                  <xsl:copy-of select="$package" />
661                </xsl:attribute>
662                <xsl:copy-of select="$version" />
663              </xsl:element>
664            </xsl:when>
665            <xsl:when test="str:replace($suite, '-backports', '') != $suite">
666              <xsl:copy-of select="$version" />
667            </xsl:when>
668            <xsl:when test="str:replace($suite, '-updates', '') != $suite">
669              <xsl:copy-of select="$version" />
670            </xsl:when>
671            <xsl:otherwise>
672              <a href="http://packages.debian.org/source/{$suite}/{$package}">
673                <xsl:copy-of select="$version" />
674              </a>
675            </xsl:otherwise>
676          </xsl:choose>
677      </xsl:when>      </xsl:when>
678      <xsl:otherwise>      <xsl:otherwise>
679        <xsl:copy-of select="$version" />        <xsl:copy-of select="$version" />
# Line 622  other-to-%xx, especially % to %25... For Line 681  other-to-%xx, especially % to %25... For
681    </xsl:choose>    </xsl:choose>
682  </xsl:template>  </xsl:template>
683    
684  <xsl:template name="available-versions">  <xsl:template name="more-info-marker">
685    <tr class="titlerow">    <xsl:param name="href" />
686      <td class="titlecell" colspan="2">    <xsl:param name="title">more information are available on an external web page</xsl:param>
687        Available versions    <a href="{$href}">
688        <small>      <img src="../common/external.png" title="{$title}" alt="..." />
689          <a href="http://qa.debian.org/madison.php?package={$package}"    </a>
690            style="font-weight: normal"  </xsl:template>
           title="madison">(more...)</a>  
       </small>  
   </td></tr>  
   
   <!-- oldstable -->  
   <xsl:if test="$hasoldstable">  
     <tr class="normalrow">  
       <td class="labelcell"><a href="http://www.debian.org/releases/sarge/">Oldstable</a></td>  
       <td class="contentcell">  
         <xsl:call-template name="output-version">  
           <xsl:with-param name="suite">oldstable</xsl:with-param>  
         </xsl:call-template>  
       </td>  
     </tr>  
   </xsl:if>  
   <xsl:if test="$hassecurity-oldstable">  
     <tr class="normalrow">  
       <td class="labelcell"><small>Oldstable Security Updates</small></td>  
       <td class="contentcell">  
         <xsl:call-template name="output-version">  
           <xsl:with-param name="suite">security-oldstable</xsl:with-param>  
           <xsl:with-param name="link">no</xsl:with-param>  
         </xsl:call-template>  
       </td>  
     </tr>  
   </xsl:if>  
   
   <!-- stable -->  
   <xsl:if test="$hasstable">  
     <tr class="normalrow">  
       <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>  
       <td class="contentcell">  
         <xsl:call-template name="output-version">  
           <xsl:with-param name="suite">stable</xsl:with-param>  
         </xsl:call-template>  
       </td>  
     </tr>  
   </xsl:if>  
   <xsl:if test="$hassecurity-stable">  
     <tr class="normalrow">  
       <td class="labelcell"><small>Stable Security Updates</small></td>  
       <td class="contentcell">  
         <xsl:call-template name="output-version">  
           <xsl:with-param name="suite">security-stable</xsl:with-param>  
           <xsl:with-param name="link">no</xsl:with-param>  
         </xsl:call-template>  
       </td>  
     </tr>  
   </xsl:if>  
   <xsl:if test="$hasstable-proposed-updates">  
     <tr class="normalrow">  
       <td class="labelcell"><small>Stable Proposed Updates</small></td>  
       <td class="contentcell">  
         <xsl:call-template name="output-version">  
           <xsl:with-param name="suite">stable-proposed-updates</xsl:with-param>  
           <xsl:with-param name="link">no</xsl:with-param>  
         </xsl:call-template>  
       </td>  
     </tr>  
   </xsl:if>  
   
   <!-- testing -->  
   <xsl:if test="$hastesting">  
     <tr class="normalrow">  
       <td class="labelcell"><a href="http://www.debian.org/releases/testing/">Testing</a></td>  
       <td class="contentcell">  
         <xsl:call-template name="output-version">  
           <xsl:with-param name="suite">testing</xsl:with-param>  
         </xsl:call-template>  
       </td>  
     </tr>  
   </xsl:if>  
   <xsl:if test="$hassecurity-testing">  
     <tr class="normalrow">  
       <td class="labelcell"><small>Testing Security Updates</small></td>  
       <td class="contentcell">  
         <xsl:call-template name="output-version">  
           <xsl:with-param name="suite">security-testing</xsl:with-param>  
           <xsl:with-param name="link">no</xsl:with-param>  
         </xsl:call-template>  
       </td>  
     </tr>  
   </xsl:if>  
   <xsl:if test="$hastesting-proposed-updates">  
     <tr class="normalrow">  
       <td class="labelcell"><small>Testing Proposed Updates</small></td>  
       <td class="contentcell">  
         <xsl:call-template name="output-version">  
           <xsl:with-param name="suite">testing-proposed-updates</xsl:with-param>  
           <xsl:with-param name="link">no</xsl:with-param>  
         </xsl:call-template>  
       </td>  
     </tr>  
   </xsl:if>  
   
   <!-- unstable -->  
   <xsl:if test="$hasunstable">  
     <tr class="normalrow">  
       <td class="labelcell">Unstable</td>  
       <td class="contentcell">  
         <xsl:call-template name="output-version">  
           <xsl:with-param name="suite">unstable</xsl:with-param>  
         </xsl:call-template>  
       </td>  
     </tr>  
   </xsl:if>  
   
   <!-- experimental -->  
   <xsl:if test="$hasexperimental">  
     <tr class="normalrow">  
       <td class="labelcell">Experimental</td>  
       <td class="contentcell">  
         <xsl:call-template name="output-version">  
           <xsl:with-param name="suite">experimental</xsl:with-param>  
         </xsl:call-template>  
       </td>  
     </tr>  
   </xsl:if>  
691    
692    <!-- secure-testing -->  <xsl:template name="available-versions">
693    <xsl:if test="$hassecure-testing">    <div class="block versions">
694      <tr class="normalrow">      <a name="versions" />
695        <td class="labelcell">Secure testing</td>      <h2>versions
696        <td class="contentcell">        <xsl:call-template name="more-info-marker">
697          <xsl:call-template name="output-version">          <xsl:with-param name="href">
698            <xsl:with-param name="suite">secure-testing</xsl:with-param>            <xsl:text>http://qa.debian.org/madison.php?package=</xsl:text>
699            <xsl:with-param name="link">no</xsl:with-param>            <xsl:value-of select="$package" />
700          </xsl:call-template>          </xsl:with-param>
701        </td>          <xsl:with-param name="title">more versions can be listed by madison</xsl:with-param>
702      </tr>        </xsl:call-template>
703    </xsl:if>        <a class="dsc" href="{$mirror}/{$pooldir}">
704            <img src="../common/folder.png" alt="pool" title="pool directory" />
705          </a>
706        </h2>
707    
708    <!-- volatile -->      <dl>
709    <xsl:if test="$hasvolatile">        <xsl:if test="$hasoldstable">
710      <tr class="normalrow">          <dt title="old stable release">oldstable</dt>
711        <td class="labelcell">Volatile</td>          <dd>
712        <td class="contentcell">            <xsl:call-template name="output-version">
713          <xsl:call-template name="output-version">              <xsl:with-param name="suite">oldstable</xsl:with-param>
714            <xsl:with-param name="suite">volatile</xsl:with-param>            </xsl:call-template>
715            <xsl:with-param name="link">no</xsl:with-param>          </dd>
716          </xsl:call-template>        </xsl:if>
717        </td>        <xsl:if test="$hassecurity-oldstable">
718      </tr>          <dt title="security updates for the old stable release">old-sec</dt>
719    </xsl:if>          <dd>
720              <xsl:call-template name="output-version">
721                <xsl:with-param name="suite">security-oldstable</xsl:with-param>
722              </xsl:call-template>
723            </dd>
724          </xsl:if>
725          <xsl:if test="$hasoldstable-updates">
726            <dt title="updates for the old stable release">old-upd</dt>
727            <dd>
728              <xsl:call-template name="output-version">
729                <xsl:with-param name="suite">oldstable-updates</xsl:with-param>
730              </xsl:call-template>
731            </dd>
732          </xsl:if>
733          <xsl:if test="$hasoldstable-backports">
734            <dt title="backports for the old stable release">old-bpo</dt>
735            <dd>
736              <xsl:call-template name="output-version">
737                <xsl:with-param name="suite">oldstable-backports</xsl:with-param>
738              </xsl:call-template>
739            </dd>
740          </xsl:if>
741          <xsl:if test="$hasstable">
742            <dt>stable</dt>
743            <dd>
744              <xsl:call-template name="output-version">
745                <xsl:with-param name="suite">stable</xsl:with-param>
746              </xsl:call-template>
747            </dd>
748          </xsl:if>
749          <xsl:if test="$hassecurity-stable">
750            <dt title="security updates for the stable release">stable-sec</dt>
751            <dd>
752              <xsl:call-template name="output-version">
753                <xsl:with-param name="suite">security-stable</xsl:with-param>
754              </xsl:call-template>
755            </dd>
756          </xsl:if>
757          <xsl:if test="$hasstable-updates">
758            <dt title="updates for the stable release">stable-upd</dt>
759            <dd>
760              <xsl:call-template name="output-version">
761                <xsl:with-param name="suite">stable-updates</xsl:with-param>
762              </xsl:call-template>
763            </dd>
764          </xsl:if>
765          <xsl:if test="$hasstable-proposed-updates">
766            <dt title="stable proposed updates">s-p-u</dt>
767            <dd>
768              <xsl:call-template name="output-version">
769                <xsl:with-param name="suite">stable-proposed-updates</xsl:with-param>
770              </xsl:call-template>
771            </dd>
772          </xsl:if>
773          <xsl:if test="$hasstable-backports">
774            <dt title="backports for the stable release">stable-bpo</dt>
775            <dd>
776              <xsl:call-template name="output-version">
777                <xsl:with-param name="suite">stable-backports</xsl:with-param>
778              </xsl:call-template>
779            </dd>
780          </xsl:if>
781          <xsl:if test="$hastesting">
782            <dt>testing</dt>
783            <dd>
784              <xsl:call-template name="output-version">
785                <xsl:with-param name="suite">testing</xsl:with-param>
786              </xsl:call-template>
787            </dd>
788          </xsl:if>
789          <xsl:if test="$hassecurity-testing">
790            <dt title="security updates for the testing release">testing-sec</dt>
791            <dd>
792              <xsl:call-template name="output-version">
793                <xsl:with-param name="suite">security-testing</xsl:with-param>
794              </xsl:call-template>
795            </dd>
796          </xsl:if>
797          <xsl:if test="$hastesting-proposed-updates">
798            <dt title="testing proposed updates">t-p-u</dt>
799            <dd>
800              <xsl:call-template name="output-version">
801                <xsl:with-param name="suite">testing-proposed-updates</xsl:with-param>
802              </xsl:call-template>
803            </dd>
804          </xsl:if>
805          <xsl:if test="$hasunstable">
806            <dt>unstable</dt>
807            <dd>
808              <xsl:call-template name="output-version">
809                <xsl:with-param name="suite">unstable</xsl:with-param>
810              </xsl:call-template>
811            </dd>
812          </xsl:if>
813          <xsl:if test="$hasexperimental">
814            <dt title="experimental release">exp</dt>
815            <dd>
816              <xsl:call-template name="output-version">
817                <xsl:with-param name="suite">experimental</xsl:with-param>
818              </xsl:call-template>
819            </dd>
820          </xsl:if>
821          <xsl:if test="$hasother and $other/@new_version">
822            <dt title="waiting in the NEW queue for FTP master review">
823              <a href="http://ftp-master.debian.org/new.html">NEW</a>
824            </dt>
825            <dd>
826              <xsl:value-of select="$other/@new_version" />
827            </dd>
828          </xsl:if>
829        </dl>
830      </div>
831  </xsl:template>  </xsl:template>
832    
833  <xsl:template name="ubuntu">  <xsl:template name="ubuntu">
   <!-- Patches list [FG] -->  
834    <xsl:if test="$other/@ubuntu='yes'">    <xsl:if test="$other/@ubuntu='yes'">
835      <tr class="titlerow">      <div class="block ubuntu">
836        <td class="titlecell" colspan="2"><a        <a name="ubuntu" />
837            title="Information about Ubuntu for Debian Developers"        <h2>ubuntu
838            href="https://wiki.ubuntu.com/Ubuntu/ForDebianDevelopers">Ubuntu ...</a>          <img src="../common/ubuntu.png" alt="ubuntu" />
839        </td>          <xsl:text> </xsl:text>
840      </tr>          <xsl:call-template name="more-info-marker">
841      <tr>            <xsl:with-param name="href">https://wiki.ubuntu.com/Ubuntu/ForDebianDevelopers</xsl:with-param>
842        <td class="contentcell" colspan="2" style="text-align: left">            <xsl:with-param name="title">Information about Ubuntu for Debian Developers</xsl:with-param>
843          <ul>          </xsl:call-template>
844              <li>        </h2>
                     Version: <a href="{$other/ubuntu/@url}"><xsl:value-of select="$other/ubuntu/@version"/></a>  
             </li>  
           <xsl:if test="$other/ubuntu/patch">  
             <li>  
                     <a href="{$other/ubuntu/patch/@url}">Patch for version <xsl:value-of select="$other/ubuntu/patch/@version"/></a>  
             </li>  
           </xsl:if>  
           <xsl:if test="$other/ubuntu/bugs">  
             <li>  
                     <a href="{$other/ubuntu/bugs/@url}"><xsl:value-of select="$other/ubuntu/bugs/@count"/> open bugs</a>  
             </li>  
           </xsl:if>  
         </ul>  
       </td>  
     </tr>  
   </xsl:if>  
 </xsl:template>  
   
 <xsl:template name="other-links">  
   <tr class="titlerow">  
     <td class="titlecell" colspan="2">  
       Other links  
   </td></tr>  
   <tr>  
     <td class="contentcell" colspan="2" style="text-align: left">  
845        <ul>        <ul>
         <xsl:if test="homepage">  
           <li> <a href="{homepage}">Upstream homepage</a> </li>  
         </xsl:if>  
846          <li>          <li>
847            <xsl:element name="a">            version: <a href="{$other/ubuntu/@url}"><xsl:value-of select="$other/ubuntu/@version"/></a>
             <xsl:attribute name="href">  
               <xsl:text>http://packages.debian.org/changelogs/</xsl:text>  
               <xsl:value-of select="directory"/>  
               <xsl:text>/current/changelog</xsl:text>  
             </xsl:attribute>  
             <xsl:text>Changelog</xsl:text>  
           </xsl:element>  
           /  
           <xsl:element name="a">  
             <xsl:attribute name="href">  
               <xsl:text>http://packages.debian.org/changelogs/</xsl:text>  
               <xsl:value-of select="directory"/>  
               <xsl:text>/current/copyright</xsl:text>  
             </xsl:attribute>  
             <xsl:text>Copyright</xsl:text>  
           </xsl:element>  
848          </li>          </li>
849          <xsl:if test="architecture!='all'">          <xsl:if test="$other/ubuntu/patch">
           <li>  
             <xsl:text>Buildd: </xsl:text>  
             <a href="http://buildd.debian.org/pkg.cgi?pkg={$escaped-package}"  
               title="buildd.debian.org build logs">logs</a>  
             <xsl:text>, </xsl:text>  
             <!-- <a href="http://people.debian.org/~igloo/status.php?packages={$escaped-package}"  
               title="igloo's build logs on people.debian.org">more</a> -->  
             <a href="http://buildd.debian.org/~jeroen/status/package.php?p={$escaped-package}"  
               title="jeroen's build logs on buildd.debian.org">more</a>  
             <xsl:text>, </xsl:text>  
             <a href="http://experimental.debian.net/build.php?pkg={$escaped-package}"  
               title="experimental.debian.net build logs">exp</a>  
             <xsl:text>, </xsl:text>  
             <a href="http://buildd.debian-ports.org/status/package.php?p={$escaped-package}"  
               title="debian ports build logs">ports</a>  
           </li>  
         </xsl:if>  
         <!-- DISABLED until ddtp.debian.org is back up  
         <li>  
           <xsl:element name="a">  
             <xsl:attribute name="href">  
               <xsl:text>http://ddtp.debian.org/stats/pdesc/report.cgi?package=</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;lang=all&amp;type=src-drvbin&amp;subword=0</xsl:text>  
             </xsl:attribute>  
             Description's translations (DDTP)  
           </xsl:element>  
         </li>  
         <xsl:if test="$other/@debconf='yes'">  
           <li>  
             <xsl:element name="a">  
               <xsl:attribute name="href">  
                 <xsl:text>http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&amp;package=</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>  
               Debconf templates's translations (DDTP)  
             </xsl:element>  
           </li>  
         </xsl:if>  
         -->  
         <xsl:if test="($hasunstable and $other/debcheck/@unstable='yes')  
           or ($hastesting and $other/debcheck/@testing='yes')  
           or ($hasstable and $other/debcheck/@stable='yes')">  
850            <li>            <li>
851              Debcheck on:              <a href="{$other/ubuntu/patch/@url}">patches for
852              <xsl:if test="$hasunstable">              <xsl:value-of select="$other/ubuntu/patch/@version"/></a>
               <xsl:text> </xsl:text>  
               <a href="http://qa.debian.org/debcheck.php?dist=unstable&amp;package={$escaped-package}">unstable</a>  
             </xsl:if>  
             <xsl:if test="$hastesting">  
               <xsl:text> </xsl:text>  
               <a href="http://qa.debian.org/debcheck.php?dist=testing&amp;package={$escaped-package}">testing</a>  
             </xsl:if>  
             <xsl:if test="$hasstable">  
               <xsl:text> </xsl:text>  
               <a href="http://qa.debian.org/debcheck.php?dist=stable&amp;package={$escaped-package}">stable</a>  
             </xsl:if>  
853            </li>            </li>
854          </xsl:if>          </xsl:if>
855          <xsl:if test="$other/@lintian='yes'">          <xsl:if test="$other/ubuntu/bugs">
           <xsl:variable name="lintian_url"><xsl:call-template name="mk_lintian_url" /></xsl:variable>  
856            <li>            <li>
857              <a href="{$lintian_url}">Lintian report</a>              <a href="{$other/ubuntu/bugs/@url}"><xsl:value-of select="$other/ubuntu/bugs/@count"/>
858              <xsl:if test="$lin_errs + $lin_warns > 0">              bugs</a>
859                <xsl:text> </xsl:text>              <xsl:if test="$other/ubuntu/bugpatches">
860                <small><span title="(errors, warnings)">(<xsl:value-of select="$lin_errs" />,                (<a href="{$other/ubuntu/bugpatches/@url}"><xsl:value-of select="$other/ubuntu/bugpatches/@count"/>
861                    <xsl:value-of select="$lin_warns" />)</span></small>                patches</a>)
862              </xsl:if>              </xsl:if>
863            </li>            </li>
864          </xsl:if>          </xsl:if>
         <li>  
           <a href="http://qa.debian.org/developer.php?popcon={$escaped-package}">Popcon stats</a>  
         </li>  
         <xsl:if test="$other/@svnbuildstat='yes'">  
           <li>  
             <a href="http://svnbuildstat.debian.net/packages/info/{$escaped-package}">Svnbuildstat</a>  
           </li>  
         </xsl:if>  
865        </ul>        </ul>
866      </td>      </div>
867    </tr>    </xsl:if>
868  </xsl:template>  </xsl:template>
869    
870  <xsl:template name="package-files">  <xsl:template name="other-links">
871    <tr class="titlerow">    <div class="block links">
872      <td class="titlecell" colspan="2">Source package</td>      <a name="links" />
873    </tr>      <h2>links</h2>
874    <tr class="titlerow">      <ul>
875      <td class="labelcell">        <xsl:if test="homepage">
876        <xsl:element name="a">          <li><a title="upstream web homepage" href="{homepage}">homepage</a></li>
877          <xsl:attribute name="href">        </xsl:if>
878            <xsl:call-template name="mirror"/>        <li>
879            <xsl:text>/</xsl:text>          <xsl:element name="a">
880            <xsl:value-of select="directory"/>            <xsl:attribute name="href">
881            <xsl:text>/</xsl:text>              <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
882          </xsl:attribute>              <xsl:value-of select="directory"/>
883          <xsl:text>Files</xsl:text>              <xsl:text>/current/changelog</xsl:text>
884        </xsl:element>            </xsl:attribute>
885      </td>            <xsl:text>changelog</xsl:text>
886      <td class="contentcell" id="src_files">          </xsl:element>
887        <ul>          /
888          <xsl:for-each select="files/item">          <xsl:element name="a">
889            <xsl:variable name="filetype">            <xsl:attribute name="href">
890              <xsl:call-template name="categorize-srcfile" />              <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
891            </xsl:variable>              <xsl:value-of select="directory"/>
892            <xsl:element name="li">              <xsl:text>/current/copyright</xsl:text>
893              <xsl:attribute name="class">srcfile</xsl:attribute>            </xsl:attribute>
894              <xsl:if test="string($filetype)!=''">            <xsl:text>copyright</xsl:text>
895                <xsl:attribute name="id">          </xsl:element>
896                  <xsl:text>srcfile_</xsl:text>        </li>
897                  <xsl:value-of select="$filetype" />        <xsl:if test="architecture!='all'">
898                </xsl:attribute>          <li>
899              </xsl:if>            <xsl:text>buildd: </xsl:text>
900              <xsl:element name="a">            <a href="https://buildd.debian.org/status/package.php?p={$escaped-package}"
901                <xsl:attribute name="class">srcfile</xsl:attribute>               title="buildd.debian.org build logs">logs</a>
902                <xsl:attribute name="href">            <xsl:text>, </xsl:text>
903                  <xsl:call-template name="mirror"/>                 <xsl:if test="$hasexperimental">
904                  <xsl:text>/</xsl:text>                   <a href="https://buildd.debian.org/status/package.php?p={$escaped-package}&amp;suite=experimental"
905                  <xsl:value-of select="../../directory"/>                      title="experimental build logs">exp</a>
906                  <xsl:text>/</xsl:text>                   <xsl:text>, </xsl:text>
907                  <xsl:value-of select="filename"/>                 </xsl:if>
908                </xsl:attribute>                 <a href="http://buildd.debian-ports.org/status/package.php?p={$escaped-package}"
909                <xsl:attribute name="title">                    title="debian ports build logs">ports</a>
910                  <xsl:value-of select="filename" />          </li>
911                  <xsl:text>: </xsl:text>        </xsl:if>
912                  <xsl:value-of select="size"/>        <xsl:if test="$hasother and $other/@piuparts='yes'">
913                  <xsl:text> bytes</xsl:text>          <li>
914                </xsl:attribute>            <a title="report about errors found while stressing package installation"
915                <xsl:text>.</xsl:text>               href="http://piuparts.debian.org/sid/source/{$hash}/{$package}.html">piuparts</a>
916                <xsl:value-of select="$filetype"/>          </li>
917              </xsl:element>        </xsl:if>
918            </xsl:element>        <xsl:if test="($hasunstable and $other/debcheck/@unstable='yes')
919          </xsl:for-each>                      or ($hastesting and $other/debcheck/@testing='yes')
920        </ul>                      or ($hasstable and $other/debcheck/@stable='yes')">
921      </td>          <li>
922    </tr>            debcheck:
923              <xsl:if test="$hasunstable">
924                <xsl:text> </xsl:text>
925                <a href="http://qa.debian.org/debcheck.php?dist=unstable&amp;package={$escaped-package}">unstable</a>
926              </xsl:if>
927              <xsl:if test="$hastesting">
928                <xsl:text> </xsl:text>
929                <a href="http://qa.debian.org/debcheck.php?dist=testing&amp;package={$escaped-package}">testing</a>
930              </xsl:if>
931              <xsl:if test="$hasstable">
932                <xsl:text> </xsl:text>
933                <a href="http://qa.debian.org/debcheck.php?dist=stable&amp;package={$escaped-package}">stable</a>
934              </xsl:if>
935            </li>
936          </xsl:if>
937          <xsl:if test="$other/@lintian='yes'">
938            <xsl:variable name="lintian_url"><xsl:call-template name="mk_lintian_url" /></xsl:variable>
939            <li>
940              <a title="report about packaging issues spotted by lintian"
941                 href="{$lintian_url}">lintian</a>
942              <!-- <xsl:if test="$lin_errs + $lin_warns > 0"> -->
943              <!--   <xsl:text> </xsl:text> -->
944              <!--   <small><span title="(errors, warnings)">(<span id="lintian_errors"><xsl:value-of select="$lin_errs" /></span>, -->
945              <!--  <span id="lintian_warnings"><xsl:value-of select="$lin_warns" /></span>)</span></small> -->
946              <!-- </xsl:if> -->
947            </li>
948          </xsl:if>
949          <li>
950            <a title="package popularity"
951               href="http://qa.debian.org/popcon.php?package={$escaped-package}">popcon</a>
952          </li>
953          <xsl:if test="$other/@svnbuildstat='yes'">
954            <li>
955              <a href="http://svnbuildstat.debian.net/packages/info/{$escaped-package}">Svnbuildstat</a>
956            </li>
957          </xsl:if>
958          <xsl:if test="$other/i18n/@href">
959            <li>
960              <a title="translation status"
961                 href="{$other/i18n/@href}">l10n</a>
962              <small>
963                (<span title="completeness of Debian string translation">
964                  <xsl:value-of select="$other/i18n/@deb" />
965                </span>,
966                <span title="completeness of non-Debian string translation">
967                  <xsl:value-of select="$other/i18n/@nondeb" />
968                </span>)
969              </small>
970            </li>
971          </xsl:if>
972          <xsl:if test="$other/@fonts='yes'">
973            <li>
974              <a title="fonts review" href="{$other/fonts/@href}">fonts</a>
975            </li>
976          </xsl:if>
977        </ul>
978      </div>
979  </xsl:template>  </xsl:template>
980    
981  <xsl:template name="todo-list">  <xsl:template name="todo-list">
982    <xsl:variable name="todo">    <xsl:variable name="todo">
983        <xsl:call-template name="issue-security" />
984      <xsl:call-template name="issue-nmu" />      <xsl:call-template name="issue-nmu" />
985      <xsl:call-template name="issue-lintian" />      <xsl:call-template name="issue-lintian" />
986      <xsl:call-template name="issue-mentors-pending" />      <xsl:call-template name="issue-mentors-pending" />
# Line 988  other-to-%xx, especially % to %25... For Line 988  other-to-%xx, especially % to %25... For
988      <xsl:call-template name="issue-outdate-stdver" />      <xsl:call-template name="issue-outdate-stdver" />
989      <xsl:call-template name="issue-new-upstream" />      <xsl:call-template name="issue-new-upstream" />
990      <xsl:call-template name="issue-patches" />      <xsl:call-template name="issue-patches" />
991        <xsl:call-template name="issue-l10n" />
992      <xsl:if test="$hasother">      <xsl:if test="$hasother">
993        <xsl:for-each select="$other/todo/item">        <xsl:for-each select="$other/todo/item">
994          <xsl:call-template name="outputitem" />          <xsl:call-template name="outputitem" />
995        </xsl:for-each>        </xsl:for-each>
996      </xsl:if>      </xsl:if>
997    </xsl:variable>    </xsl:variable>
998    
999    <xsl:if test="count($todo)>0 and string($todo)!=''">    <xsl:if test="count($todo)>0 and string($todo)!=''">
1000      <tr class="titlerow">      <div class="block todo">
1001        <td class="titlecell" id="todo">Todo</td>        <a name="todo" />
1002      </tr>        <h2>todo</h2>
1003      <tr class="normalrow">        <ul>
1004        <td class="contentcell2"><ul><xsl:copy-of select="$todo"/></ul></td>          <xsl:copy-of select="$todo" />
1005      </tr>        </ul>
1006        </div>
1007    </xsl:if>    </xsl:if>
1008  </xsl:template>  </xsl:template>
1009    
# Line 1021  other-to-%xx, especially % to %25... For Line 1024  other-to-%xx, especially % to %25... For
1024        </xsl:for-each>        </xsl:for-each>
1025      </xsl:if>      </xsl:if>
1026    </xsl:variable>    </xsl:variable>
1027    
1028    <xsl:if test="count($problems)>0 and string($problems)!=''">    <xsl:if test="count($problems)>0 and string($problems)!=''">
1029      <tr class="titlerow">      <div class="block problems">
1030        <td class="titlecell" id="problems">Problems</td>        <a name="problems" />
1031      </tr>        <h2>problems</h2>
1032      <tr class="normalrow">        <ul>
1033        <td class="contentcell2"><ul><xsl:copy-of select="$problems"/></ul></td>          <xsl:copy-of select="$problems" />
1034      </tr>        </ul>
1035        </div>
1036    </xsl:if>    </xsl:if>
1037  </xsl:template>  </xsl:template>
1038    
1039  <xsl:template name="testing-status">  <xsl:template name="testing-status">
1040    <xsl:if test="$hasexcuse or $other/@transitions='yes'">    <xsl:if test="$hasexcuse or $other/@transitions='yes'">
1041      <tr class="titlerow">      <div class="block testing">
1042        <td class="titlecell">        <a name="testing" />
1043          Testing status        <h2>testing migration</h2>
1044      </td></tr>        <xsl:if test="$other/@transitions='yes'">
1045    </xsl:if>          <xsl:variable name="translist">
1046    <xsl:if test="$other/@transitions='yes'">            <xsl:for-each select="$other/transitions/transition">
1047      <xsl:variable name="translist">              <xsl:value-of select="@name" />
1048        <xsl:for-each select="$other/transitions/transition">              <xsl:if test="position() != last()"> <xsl:text> </xsl:text>
1049          <xsl:value-of select="@name" />              </xsl:if>
1050          <xsl:if test="position() != last()">            </xsl:for-each>
1051            <xsl:text> </xsl:text>          </xsl:variable>
1052          </xsl:if>          <xsl:variable name="transno"
1053        </xsl:for-each>                        select="count($other/transitions/transition)" />
1054      </xsl:variable>          <div class="warning">
     <xsl:variable name="transno" select="count($other/transitions/transition)" />  
     <tr class="normalrow">  
       <td class="contentcell2" style="text-align: left">  
         <ul>  
1055            <!-- XXX unappropriate <ul>, just to make the text looks like other            <!-- XXX unappropriate <ul>, just to make the text looks like other
1056              boxes, should be fixed on the CSS side (getting rid of <ul>) -->                 boxes, should be fixed on the CSS side (getting rid of <ul>) -->
1057                <li>This package is part of <em><xsl:value-of select="$transno" />            <p>This package is part of <em><xsl:value-of select="$transno" /> ongoing
1058                    ongoing testing transition<xsl:if test="$transno != '1'">s</xsl:if>                testing transition<xsl:if test="$transno != '1'">s</xsl:if></em>
1059                  </em> (namely: <tt><xsl:value-of select="$translist" /></tt>). For              (namely: <tt><xsl:value-of select="$translist" /></tt>). For
1060                  more information see the              more information see the
1061                  <a href="http://ftp-master.debian.org/transitions.yaml">transition              <a href="http://ftp-master.debian.org/transitions.yaml">transition
1062                    status file</a>.<br />                status file</a>.<br />
1063                  <em>Uploads to unstable will be rejected</em> while transitions are              <em>Uploads to unstable will be rejected</em> while
1064                  ongoing; you might want to upload to experimental in the              transitions are ongoing; you might want to upload to
1065                  meantime, or contact <tt><a href="mailto:debian-release@lists.debian.org">debian-release</a></tt>              experimental in the meantime, or
1066                  if an upload is really necessary.              contact <tt><a href="mailto:debian-release@lists.debian.org">debian-release</a></tt>
1067                </li>              if an upload is really necessary.
1068              </ul>            </p>
1069            </td>          </div>
         </tr>  
1070        </xsl:if>        </xsl:if>
1071        <xsl:if test="$hasexcuse">        <xsl:if test="$hasexcuse">
1072          <tr class="normalrow">          <a title="reasons why the package is not moving to testing"
1073            <td class="contentcell2" style="text-align: left">             href="http://qa.debian.org/excuses.php?package={$escaped-package}">excuses</a>:
1074              <a title="reasons why the package is not moving to testing"          <ul class="testing-excuses">
1075                href="http://qa.debian.org/excuses.php?package={$package}">Excuses</a>:            <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
1076              <ul class="testing-excuses">              <xsl:call-template name="outputitem"/>
1077                <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">            </xsl:for-each>
1078                  <xsl:call-template name="outputitem"/>          </ul>
1079                </xsl:for-each>        </xsl:if>
1080              </ul>      </div>
1081            </td>    </xsl:if>
1082          </tr>  </xsl:template>
       </xsl:if>  
     </xsl:template>  
   
     <xsl:template name="static-info">  
       <xsl:call-template name="output-static">  
         <xsl:with-param name="static" select="$static" />  
       </xsl:call-template>  
     </xsl:template>  
1083    
1084      <xsl:template name="latest-news">  <xsl:template name="static-info">
1085        <xsl:call-template name="output-news">    <xsl:call-template name="output-static">
1086          <xsl:with-param name="news" select="$news" />      <xsl:with-param name="static" select="$static" />
1087        </xsl:call-template>    </xsl:call-template>
1088      </xsl:template>  </xsl:template>
1089    
1090      <xsl:variable name="static">  <xsl:template name="latest-news">
1091        <xsl:if test="$hasnews">    <xsl:call-template name="output-news">
1092          <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">      <xsl:with-param name="news" select="$news" />
1093            <xsl:call-template name="outputitem"/>    </xsl:call-template>
1094          </xsl:for-each>  </xsl:template>
       </xsl:if>  
     </xsl:variable>  
   
     <xsl:variable name="news">  
       <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>  
   
     <!-- All the work is done in a single template -->  
     <xsl:template match="source">  
   
       <!-- Start of html -->  
       <html>  
         <head>  
           <meta name="ROBOTS" content="NOFOLLOW"/>  
           <link type="text/css" title="User selected" rel="stylesheet" href="../common/default.css"/>  
           <link type="text/css" title="Official" rel="alternate stylesheet" href="../common/revamp.css"/>  
           <link type="text/css" title="Legacy PTS" rel="alternate stylesheet" href="../common/pts.css"/>  
           <link type="text/css" title="Compact rendering" rel="alternate stylesheet" href="../common/compact.css"/>  
           <script type="text/javascript" src="../common/pts.js"></script>  
           <xsl:if test="count($news)>0 and string($news)!=''">  
             <link rel="alternate" type="application/rss+xml" title="RSS"  
               href="{$package}/news.rss20.xml" />  
           </xsl:if>  
           <title>Overview of <xsl:value-of select="$package"/> source package</title>  
         </head>  
         <body onload="javascript:onLoad();">  
   
           <div id="quickforms" style="float: right;">  
             <form method="get" action="/common/index.html">  
               <p><span title="Jump to package">Go:</span>  
                 <input type="text" name="src" value=""/></p>  
             </form>  
             <form id="csspref-form" method="get" action="/common/set-csspref.php">  
               <p>Switch style: <select name="csspref" onchange="javascript:onChangeStyle();">  
                   <option value="revamp.css">Default</option>  
                   <option value="compact.css">Compact</option>  
                   <option value="pts.css">Legacy</option>  
               </select></p>  
             </form>  
1095    
1096            </div>  <xsl:variable name="static">
1097            <h1>Overview of    <xsl:if test="$hasnews">
1098              <xsl:element name="a">      <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">
1099                <xsl:attribute name="href">        <xsl:call-template name="outputitem"/>
1100                  <xsl:text>http://packages.debian.org/src:</xsl:text>      </xsl:for-each>
1101                  <xsl:value-of select="$package"/>    </xsl:if>
1102                </xsl:attribute>  </xsl:variable>
1103                <xsl:value-of select="$package"/>  
1104              </xsl:element>  <xsl:variable name="news">
1105              source package</h1>    <xsl:if test="$hasnews">
1106        <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">
1107            <div id="body">        <xsl:call-template name="outputitem"/>
1108              <xsl:choose>      </xsl:for-each>
1109                <xsl:when test="$removed='yes'">    </xsl:if>
1110                  <!-- REMOVED PACKAGE -->  </xsl:variable>
1111                  <p>This package is not part of any Debian distribution. Thus you won't  
1112                    find much information here. The package is either very new and hasn't  <!-- All the work is done in a single template -->
1113                    appeared on mirrors yet, or it's an old package that eventually got removed.  <xsl:template match="source">
1114                    The old news are kept for historic purpose only.</p>  
1115      <!-- Start of html -->
1116                  <table class="righttable">    <html>
1117                    <xsl:call-template name="static-info" />      <head>
1118                    <xsl:call-template name="latest-news" />        <meta name="ROBOTS" content="NOFOLLOW"/>
1119                  </table>        <link type="text/css" title="User selected" rel="stylesheet" href="../common/default.css"/>
1120          <link type="text/css" title="Official" rel="alternate stylesheet" href="../common/revamp.css"/>
1121                  <!-- END REMOVED PACKAGE -->        <link type="text/css" title="Legacy PTS" rel="alternate stylesheet" href="../common/pts.css"/>
1122                </xsl:when>        <link type="text/css" title="Compact rendering" rel="alternate stylesheet" href="../common/compact.css"/>
1123                <xsl:otherwise>        <script type="text/javascript" src="../common/pts.js"></script>
1124                  <!-- NON REMOVED PACKAGE -->        <xsl:if test="count($news)>0 and string($news)!=''">
1125            <link rel="alternate" type="application/rss+xml" title="RSS"
1126                  <table class="containertable">                href="{$package}/news.rss20.xml" />
1127                    <tr class="containerrow" valign="top">        </xsl:if>
1128                      <td class="containercell">        <title>Debian Package Tracking System -
1129                        <!-- LEFT SIDE -->          <xsl:value-of select="$package"/></title>
1130                        <table class="lefttable">      </head>
1131                          <xsl:call-template name="general-information" />      <body onload="javascript:onLoad();">
1132                          <xsl:call-template name="available-versions" />        <div class="quickform" style="float: right;">
1133                        </table>          <form title="jump to the PTS page of another source package"
1134                        <table class="lefttable">                method="get" action="/common/index.html">
1135                          <xsl:call-template name="package-files" />            <p>
1136                          <xsl:call-template name="binary-packages" />              <input type="text" size="14" name="src" value=""/>
1137                        </table>              <input type="submit" value="jump to" />
1138                        <!-- END LEFT SIDE -->            </p>
1139                        </td><td class="containercell">          </form>
1140                        <!-- RIGHT SIDE -->        </div>
1141                        <table class="righttable">  
1142                          <xsl:call-template name="todo-list" />        <h1>
1143                          <xsl:call-template name="problems" />          <xsl:value-of select="$package"/><br />
1144                        </table>          <small>source package</small>
1145                        <table class="righttable">        </h1>
1146                          <xsl:call-template name="testing-status" />  
1147                          <xsl:call-template name="static-info" />        <div id="body">
1148                          <xsl:call-template name="latest-news" />          <xsl:choose>
1149                        </table>            <xsl:when test="$removed='yes'">
1150                        <!-- END RIGHT SIDE -->              <div class="block removed">
1151                        </td><td class="containercell">                <p>This package is not part of any Debian
1152                        <table class="lefttable">                  distribution. Thus you won't find much information
1153                          <xsl:call-template name="bugs-count" />                  here. The package is either very new and hasn't
1154                          <xsl:call-template name="pts-subscription" />                  appeared on mirrors yet, or it's an old package that
1155                        </table>                  eventually got removed.  The old news are kept for
1156                        <table class="lefttable">                  historic purpose only.</p>
1157                          <xsl:call-template name="other-links" />                <xsl:call-template name="static-info" />
1158                        </table>                <xsl:call-template name="latest-news" />
                       <table class="lefttable" id="ubuntubox">  
                         <xsl:call-template name="ubuntu" />  
                       </table>  
                   </td></tr>  
                 </table>  
   
                 <!-- END NON REMOVED PACKAGE -->  
               </xsl:otherwise>  
             </xsl:choose>  
   
             <hr/>  
             <div class="footer">  
               <table width="100%">  
                 <tr>  
                   <td>  
                     <p>  
                       <em><a href="http://www.debian.org">Debian</a> Package  
                         Tracking System</em> - Copyright 2002-2008 Raphaël  
                       Hertzog and others.<br/> Report problems to the  
                       <a href="http://bugs.debian.org/qa.debian.org"><tt>qa.debian.org</tt>  
                         pseudopackage</a> in the <a href="http://bugs.debian.org">Debian  
                         <acronym title="Bug Tracking System">BTS</acronym></a>.<br/>  
                       Last modified: <xsl:value-of select="$date"/>.  
                     </p>  
                   </td>  
                   <td>  
                     <a href="http://validator.w3.org/check?uri=referer"><img  
                         src="http://www.w3.org/Icons/valid-xhtml10-blue"  
                         alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>  
                   </td>  
                 </tr>  
               </table>  
1159              </div>              </div>
1160            </div>            </xsl:when>
1161          </body>            <xsl:otherwise>       <!-- non removed package -->
1162        </html>              <div class="left maincol">
1163      </xsl:template>                <xsl:call-template name="general-information" />
1164                  <xsl:call-template name="available-versions" />
1165                  <xsl:call-template name="binary-packages" />
1166                </div>
1167                <div class="center maincol">
1168                  <xsl:call-template name="todo-list" />
1169                  <xsl:call-template name="problems" />
1170                  <xsl:call-template name="testing-status" />
1171                  <xsl:call-template name="static-info" />
1172                  <xsl:call-template name="latest-news" />
1173                </div>
1174                <div class="right maincol">
1175                  <xsl:call-template name="bugs-count" />
1176                  <xsl:call-template name="other-links" />
1177                  <xsl:call-template name="ubuntu" />
1178                </div>
1179              </xsl:otherwise>
1180            </xsl:choose>
1181    
1182            <hr/>
1183            <div class="footer">
1184              <table width="100%">
1185                <tr>
1186                  <td>
1187                  <!--
1188                    <div class="quickform">
1189                      <form id="csspref-form" method="get"
1190                            action="/common/set-csspref.php">
1191                        <p>
1192                          change skin:
1193                          <select name="csspref" onchange="javascript:onChangeStyle();">
1194                            <option value="revamp.css">default</option>
1195                            <option value="compact.css">compact</option>
1196                            <option value="pts.css">legacy</option>
1197                          </select>
1198                        </p>
1199                      </form>
1200                    </div>
1201                  -->
1202                    <div class="quickform">
1203                      <xsl:call-template name="pts-subscription" />
1204                    </div>
1205                  </td>
1206                  <td>
1207                    <p>
1208                      <em><a href="http://www.debian.org">Debian</a>
1209                        Package Tracking System</em> - Copyright ©
1210                        2002-2009 Raphaël Hertzog, Stefano Zacchiroli and
1211                        others.<br/> Report problems to the
1212                      <a href="http://bugs.debian.org/qa.debian.org"><tt>qa.debian.org</tt>
1213                        pseudopackage</a> in the <a href="http://bugs.debian.org">Debian
1214                        <acronym title="Bug Tracking System">BTS</acronym></a>.<br/>
1215                      Last modified: <xsl:value-of select="$date"/>.
1216                    </p>
1217                  </td>
1218                  <td>
1219                    <a href="http://validator.w3.org/check?uri=referer">
1220                      <img
1221                         src="http://www.w3.org/Icons/valid-xhtml10-blue"
1222                         alt="Valid XHTML 1.0 Strict" height="31" width="88" />
1223                    </a>
1224                  </td>
1225                </tr>
1226              </table>
1227            </div>
1228          </div>
1229        </body>
1230      </html>
1231    </xsl:template>
1232    
1233  </xsl:stylesheet>  </xsl:stylesheet>

Legend:
Removed from v.2058  
changed lines
  Added in v.2551

  ViewVC Help
Powered by ViewVC 1.1.5