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

Legend:
Removed from v.633  
changed lines
  Added in v.2718

  ViewVC Help
Powered by ViewVC 1.1.5