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

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

  ViewVC Help
Powered by ViewVC 1.1.5