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

Legend:
Removed from v.1763  
changed lines
  Added in v.2488

  ViewVC Help
Powered by ViewVC 1.1.5