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

Legend:
Removed from v.1938  
changed lines
  Added in v.2713

  ViewVC Help
Powered by ViewVC 1.1.5