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

Legend:
Removed from v.1094  
changed lines
  Added in v.2422

  ViewVC Help
Powered by ViewVC 1.1.5