/[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 903 by jeroen, Mon Jan 31 22:52:35 2005 UTC revision 2700 by hertzog, Wed Jan 11 09:50:42 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="UTF-8" method="html"/>  <xsl:include href="pts-issues.xsl" />
25    
26  <xsl:param name="package"/>  <xsl:param name="package"/>
27  <xsl:param name="dir"/>  <xsl:param name="dir"/>
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.2'"/>
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:choose>  <xsl:template name="mk_lintian_url">
97      <xsl:when test="contains(/source/section, 'non-US')">    <!-- convert maintainer/name to follow lintian.debian.org convention -->
98        <xsl:text>http://non-us.debian.org/debian-non-US</xsl:text>    <xsl:variable name="lintian_pattern" select="concat('àáèéëêòöøîìùñ~/()&#34; ', &quot;'&quot;)"/>
99      </xsl:when>    <xsl:variable name="lintian_email" select="translate(maintainer/email, $lintian_pattern, '_____________________')"/>
100      <xsl:otherwise>  
101        <xsl:text>http://http.us.debian.org/debian</xsl:text>    <xsl:text>http://lintian.debian.org/maintainer/</xsl:text>
102      </xsl:otherwise>    <xsl:value-of select="$lintian_email" />
103    </xsl:choose>    <xsl:text>.html#</xsl:text>
104      <xsl:value-of select="$package" />
105    </xsl:template>
106    
107    <xsl:template name="mk_logcheck_url">
108      <xsl:text>http://buildd.debian.org/~brlink/packages/</xsl:text>
109      <xsl:value-of select="substring($package,1,1)"/>
110      <xsl:text>/</xsl:text>
111      <xsl:value-of select="$package" />
112      <xsl:text>.html</xsl:text>
113  </xsl:template>  </xsl:template>
114    
115    <xsl:variable name="mirror">http://cdn.debian.net/debian</xsl:variable>
116    <xsl:variable name="security-mirror">http://security.debian.org/debian-security</xsl:variable>
117    <xsl:variable name="backports-mirror">http://backports.debian.org/debian-backports</xsl:variable>
118    
119  <xsl:template name="outputitem">  <xsl:template name="outputitem">
120    <xsl:choose>    <xsl:choose>
121      <xsl:when test="@url">      <xsl:when test="@url">
# Line 51  Line 123 
123          <xsl:text>[</xsl:text>          <xsl:text>[</xsl:text>
124          <xsl:value-of select="@date"/>          <xsl:value-of select="@date"/>
125          <xsl:text>] </xsl:text>          <xsl:text>] </xsl:text>
126        </xsl:if><a href="{@url}"><xsl:value-of select="text()"/></a></li>        </xsl:if><a href="{@url}">
127          <xsl:value-of select="text()"/></a><xsl:if test="@from">
128            <xsl:text> (</xsl:text>
129            <xsl:value-of select="@from"/>
130            <xsl:text>)</xsl:text></xsl:if></li>
131        </xsl:when>
132        <xsl:when test="@type='raw'">
133          <li>
134            <xsl:copy-of select="node()" />
135          </li>
136      </xsl:when>      </xsl:when>
137      <xsl:otherwise>      <xsl:otherwise>
138        <li><xsl:if test="@date">        <li><xsl:if test="@date">
# Line 63  Line 144 
144    </xsl:choose>    </xsl:choose>
145  </xsl:template>  </xsl:template>
146    
147  <!-- Convert + in %2b for URL escaping ... -->  <!-- Convert + in %2b for URL escaping. Should actually first also do
148    other-to-%xx, especially % to %25... Fortunately, that's rare -->
149  <xsl:template name="escape-name">  <xsl:template name="escape-name">
150    <xsl:param name="text"/>    <xsl:param name="text"/>
151    <xsl:if test="contains($text,'+')">    <xsl:if test="contains($text,'+')">
# Line 78  Line 160 
160    </xsl:if>    </xsl:if>
161  </xsl:template>  </xsl:template>
162    
163    <xsl:variable name="escaped-package">
164  <!-- All the work is done in a single template -->    <xsl:call-template name="escape-name">
165  <xsl:template match="source">      <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
166      </xsl:call-template>
167    <!-- Start of html -->  </xsl:variable>
168    <html>  
169    <head>  <!-- Strip epoch -->
170    <meta name="ROBOTS" content="NOFOLLOW"/>  <xsl:template name="strip-epoch">
171    <link title="Default" rel="stylesheet" href="../common/pts.css"/>    <xsl:param name="version"/>
172    <link title="Standard link rendering" rel="alternate stylesheet" href="../common/pts2.css"/>    <xsl:if test="contains($version,':')">
173    <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;">  
   <!-- this link should make lynx/links happy [FG] -->  
   Jump to package (<a href="/">home page</a>): <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">  
   <xsl:element name="a">  
     <xsl:attribute name="href">  
       <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>  
       <xsl:call-template name="escape-name">  
         <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>  
       </xsl:call-template>  
     </xsl:attribute>  
     <xsl:value-of select="maintainer/name"/>  
   </xsl:element>  
   [<a class="email" href="mailto:{maintainer/email}">mail</a>]  
   </td>  
   </tr>  
   <tr class="normalrow">  
   <td class="labelcell"><a href="http://www.debian.org/doc/manuals/developers-reference/ch-pkgs.en.html#s-collaborative-maint">Co-Maintainers</a></td>  
   <td class="contentcell">  
   <xsl:if test="uploaders">  
     <xsl:for-each select="uploaders/item">  
       <a class="email" href="http://qa.debian.org/developer.php?login={email}"><xsl:value-of select="name"/></a> [<a class="email" href="mailto:{email}">mail</a>]<br/>  
     </xsl:for-each>  
174    </xsl:if>    </xsl:if>
175    <xsl:if test="not(uploaders)">    <xsl:if test="not(contains($version,':'))">
176      <a class="none" title="You should find some co-maintainers ..." name="fake">None</a>      <xsl:value-of select="$version"/>
177    </xsl:if>    </xsl:if>
178    </td></tr>  </xsl:template>
179    <tr class="normalrow">  
180    <td class="labelcell">Standards-Version</td>  <xsl:template name="add-vcs-info">
181    <td class="contentcell"><xsl:value-of select="standards-version"/></td>    <xsl:if test="repository">
182    </tr>      <dt title="Version Control System">VCS</dt>
183    <tr class="normalrow">      <dd>
184    <td class="labelcell">Priority &amp; Section</td>        <xsl:if test="repository/vcs[@kind!='browser']">
185    <td class="contentcell"><xsl:value-of select="priority"/> - <xsl:value-of select="section"/></td>          <xsl:for-each select="repository/vcs[@kind!='browser']">
186    </tr>            <xsl:sort select="@kind" />
187    <xsl:if test="architecture!='any' and architecture!='all'">            <a title="raw {@kind} repository" href="{@url}">
188    <tr class="normalrow">              <xsl:value-of select="@kind" />
189    <td class="labelcell">Architecture</td>            </a>
190    <td class="contentcell"><xsl:value-of select="architecture"/></td>            <xsl:if test="position()!=last()"><xsl:text>, </xsl:text></xsl:if>
191    </tr>          </xsl:for-each>
192    </xsl:if>        </xsl:if>
193          <xsl:if test="repository/vcs[@kind='browser']">
194    <tr class="titlerow">          <xsl:text> (</xsl:text>
195    <td class="titlecell" colspan="2">          <a title="browse the repository"
196    Bugs Count             href="{repository/vcs[@kind='browser']/@url}">browse</a>
197    </td></tr>            <xsl:text>)</xsl:text>
198    <tr class="normalrow">        </xsl:if>
199    <td class="labelcell">All bugs</td>      </dd>
200    <td class="contentcell">    </xsl:if>
201    <xsl:element name="a">  </xsl:template>
202      <xsl:attribute name="href">  
203        <xsl:text>http://bugs.debian.org/src:</xsl:text>  <xsl:template name="add-maintenance-info">
204        <xsl:call-template name="escape-name">    <xsl:param name="email" />
205          <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>    <xsl:variable name="dm">
206        </xsl:call-template>      <xsl:if test="dm-upload-allowed and string(dm-upload-allowed)='yes'">
207      </xsl:attribute>        <xsl:text>true</xsl:text>
     <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"/>  
208      </xsl:if>      </xsl:if>
209    </xsl:element>    </xsl:variable>
210    </td>    <xsl:variable name="lownmu">
211    </tr>      <xsl:if test="$low-nmu-emails/email[text()=$email]">
212    <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"/>  
213      </xsl:if>      </xsl:if>
214    </xsl:element>    </xsl:variable>
215    </td>  
216    </tr>    <xsl:if test="string($dm)!='' or string($lownmu)!=''">
217    <tr class="normalrow">      <div class="maint-markers">
218    <td class="labelcell">Minor and Wishlist</td>      <xsl:if test="string($dm)!=''">
219    <td class="contentcell">        <span class="dm-tag">
220    <xsl:element name="a">          <a href="http://www.debian.org/vote/2007/vote_003">
221      <xsl:attribute name="href">            <acronym title="Debian Maintainer Upload Allowed: this package can be uploaded by Debian Maintainers">DMUA</acronym>
222        <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>          </a>
223        <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"/>  
224      </xsl:if>      </xsl:if>
225    </xsl:element>      <xsl:if test="string($lownmu)!=''">
226    </td>        <xsl:if test="string($dm)!=''">
227    </tr>          <xsl:text>, </xsl:text>
228    <tr class="normalrow">        </xsl:if>
229    <td class="labelcell">Fixed and Pending</td>        <span class="lownmu-tag">
230    <td class="contentcell">          <a href="http://wiki.debian.org/LowThresholdNmu">
231    <xsl:element name="a">            <acronym title="maintainer agrees with Low Threshold NMU">LowNMU</acronym>
232      <xsl:attribute name="href">          </a>
233        <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"/>  
234      </xsl:if>      </xsl:if>
235    </xsl:element>      </div>
236    </td>    </xsl:if>
237    </tr>  </xsl:template>
238    
239    <tr class="titlerow">  <xsl:template name="output-news">
240    <td class="titlecell" colspan="2">    <xsl:param name="news" />
241    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>  
242    </td></tr>    <xsl:if test="count($news)>0 and string($news)!=''">
243    <tr class="normalrow">      <div class="block news">
244    <td class="labelcell">Subscribers count</td>        <a name="news" />
245    <td class="contentcell"><xsl:if test="$hasother">        <h2>news <a class="feedlink" href="{$package}/news.rss20.xml">RSS</a></h2>
246      <xsl:value-of select="$other/pts/@count"/>        <ul id="news-list">
247    </xsl:if></td>          <xsl:copy-of select="$news" />
248    </tr>        </ul>
249    <tr class="normalrow">      </div>
250    <td class="contentcell" colspan="2">    </xsl:if>
251    </xsl:template>
252    
253    <xsl:template name="output-static">
254      <xsl:param name="static" />
255    
256      <xsl:if test="count($static)>0 and string($static)!=''">
257        <div class="block static">
258          <a name="static" />
259          <h2>static info</h2>
260          <ul>
261            <xsl:copy-of select="$static" />
262          </ul>
263        </div>
264      </xsl:if>
265    </xsl:template>
266    
267    <xsl:template name="maintainer-email">
268      <xsl:param name="email" />
269      <a class="email" href="mailto:{$email}">
270        <img alt="[email]" src="../common/email.png" title="email" />
271      </a>
272    </xsl:template>
273    
274    <xsl:template name="general-information">
275      <div class="block info">
276        <a name="general" />
277        <h2>general</h2>
278        <dl>
279          <dt>source</dt>
280          <dd>
281            <a href="http://packages.debian.org/src:{$package}">
282              <xsl:value-of select="$package" />
283            </a>
284            (<span id="priority" title="priority">
285              <small><xsl:value-of select="priority"/></small>
286            </span>,
287            <span id="section" title="section">
288              <small><xsl:value-of select="section"/></small>
289            </span>)
290          </dd>
291    
292          <dt>version</dt>
293          <dd>
294            <span id="latest_version"><xsl:value-of select="version"/></span>
295          </dd>
296    
297          <xsl:if test="@release!='unstable'">
298            <dt>distro</dt>
299            <dd><xsl:value-of select="@release"/></dd>
300          </xsl:if>
301    
302          <dt title="Maintainer and Uploaders">maint</dt>
303          <dd class="maintainer">
304            <xsl:element name="a">
305              <xsl:attribute name="href">
306                <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
307                <xsl:call-template name="escape-name">
308                  <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>
309                </xsl:call-template>
310              </xsl:attribute>
311              <span class="name" title="maintainer">
312                <xsl:value-of select="maintainer/name"/>
313              </span>
314            </xsl:element>
315            <xsl:if test="uploaders">
316              <xsl:for-each select="uploaders/item">
317                <xsl:text>, </xsl:text>
318                <span class="uploader">
319                  <small>
320                  <xsl:element name="a">
321                    <xsl:attribute name="href">
322                      <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
323                      <xsl:call-template name="escape-name">
324                        <xsl:with-param name="text">
325                          <xsl:value-of select="email"/>
326                        </xsl:with-param>
327                      </xsl:call-template>
328                    </xsl:attribute>
329                    <span class="name" title="uploader">
330                      <xsl:value-of select="name"/>
331                    </span>
332                  </xsl:element>
333                  <xsl:text> (u)</xsl:text>
334                  </small>
335                </span>
336              </xsl:for-each>
337            </xsl:if>
338            <xsl:call-template name='add-maintenance-info'>
339              <xsl:with-param name="email" select="maintainer/email" />
340            </xsl:call-template>
341          </dd>
342    
343          <xsl:if test="architecture!='any' and architecture!='all'">
344            <dt>arch</dt>
345            <dd><xsl:value-of select="architecture"/></dd>
346          </xsl:if>
347    
348          <dt title="Standards-Version">std-ver</dt>
349          <dd>
350            <span id="standards_version">
351              <xsl:value-of select="standards-version"/>
352            </span>
353          </dd>
354    
355          <xsl:call-template name='add-vcs-info' />
356        </dl>
357      </div>
358    </xsl:template>
359    
360    <xsl:template name="bugs-count">
361      <div class="block bugs">
362        <a name="bugs" />
363        <h2>bugs</h2>
364        <dl>
365          <dt id="bugs_all">
366            all
367            <xsl:element name="a">
368              <xsl:attribute name="href">
369                <xsl:text>http://qa.debian.org/data/bts/graphs/</xsl:text>
370                <xsl:value-of select="$dir"/>
371                <xsl:text>.png</xsl:text>
372              </xsl:attribute>
373              <xsl:attribute name="title">bug history graph</xsl:attribute>
374              <img alt="bug history graph" src="../common/bug-graph.png" />
375            </xsl:element>
376          </dt>
377          <dd>
378            <xsl:element name="a">
379              <xsl:attribute name="href">
380                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=no&amp;src=</xsl:text>
381                <xsl:value-of select="$escaped-package" />
382              </xsl:attribute>
383              <xsl:if test="$hasother">
384                <span class="bugcount" title="all">
385                  <xsl:value-of select="$other/bugs/@all"/>
386                </span>
387              </xsl:if>
388            </xsl:element>
389            <xsl:if test="$hasother and $other/bugs/@all_m">
390              (<xsl:element name="a">
391                <xsl:attribute name="href">
392                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=yes&amp;src=</xsl:text>
393                  <xsl:value-of select="$escaped-package" />
394                </xsl:attribute>
395                <xsl:value-of select="$other/bugs/@all_m"/>
396              </xsl:element>)
397            </xsl:if>
398          </dd>
399          <dt id="bugs_rc" title="Release Critical">
400            <span class="indented">RC</span>
401          </dt>
402          <dd>
403            <xsl:element name="a">
404              <xsl:attribute name="href">
405                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
406                <xsl:value-of select="$escaped-package" />
407                <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>
408              </xsl:attribute>
409              <xsl:if test="$hasother">
410                <span class="bugcount" title="rc">
411                  <xsl:value-of select="$other/bugs/@rc"/>
412                </span>
413              </xsl:if>
414            </xsl:element>
415            <xsl:if test="$hasother and $other/bugs/@rc_m">
416              (<xsl:element name="a">
417                <xsl:attribute name="href">
418                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
419                  <xsl:value-of select="$escaped-package" />
420                  <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>
421                </xsl:attribute>
422                <xsl:value-of select="$other/bugs/@rc_m"/>
423              </xsl:element>)
424            </xsl:if>
425          </dd>
426          <dt id="bugs_in" title="Important and Normal">
427            <span class="indented">I&amp;N</span>
428          </dt>
429          <dd>
430            <xsl:element name="a">
431              <xsl:attribute name="href">
432                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
433                <xsl:value-of select="$escaped-package" />
434                <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>
435              </xsl:attribute>
436              <xsl:if test="$hasother">
437                <span class="bugcount" title="in">
438                  <xsl:value-of select="$other/bugs/@normal"/>
439                </span>
440              </xsl:if>
441            </xsl:element>
442            <xsl:if test="$hasother and $other/bugs/@normal_m">
443              (<xsl:element name="a">
444                <xsl:attribute name="href">
445                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
446                  <xsl:value-of select="$escaped-package" />
447                  <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>
448                </xsl:attribute>
449                <xsl:value-of select="$other/bugs/@normal_m"/>
450              </xsl:element>)
451            </xsl:if>
452          </dd>
453          <dt id="bugs_mw" title="Minor and Wishlist">
454            <span class="indented">M&amp;W</span>
455          </dt>
456          <dd>
457            <xsl:element name="a">
458              <xsl:attribute name="href">
459                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
460                <xsl:value-of select="$escaped-package" />
461                <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>
462              </xsl:attribute>
463              <xsl:if test="$hasother">
464                <span class="bugcount" title="mw">
465                  <xsl:value-of select="$other/bugs/@wishlist"/>
466                </span>
467              </xsl:if>
468            </xsl:element>
469            <xsl:if test="$hasother and $other/bugs/@wishlist_m">
470              (<xsl:element name="a">
471                <xsl:attribute name="href">
472                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
473                  <xsl:value-of select="$escaped-package" />
474                  <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>
475                </xsl:attribute>
476                <xsl:value-of select="$other/bugs/@wishlist_m"/>
477              </xsl:element>)
478            </xsl:if>
479          </dd>
480          <dt id="bugs_fp" title="Fixed and Pending">
481            <span class="indented">F&amp;P</span>
482          </dt>
483          <dd>
484            <xsl:element name="a">
485              <xsl:attribute name="href">
486                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
487                <xsl:value-of select="$escaped-package" />
488                <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=no</xsl:text>
489              </xsl:attribute>
490              <xsl:if test="$hasother">
491                <span class="bugcount" title="fp">
492                  <xsl:value-of select="$other/bugs/@fixed"/>
493                </span>
494              </xsl:if>
495            </xsl:element>
496            <xsl:if test="$hasother and $other/bugs/@fixed_m">
497              (<xsl:element name="a">
498                <xsl:attribute name="href">
499                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
500                  <xsl:value-of select="$escaped-package" />
501                  <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=yes</xsl:text>
502                </xsl:attribute>
503                <xsl:value-of select="$other/bugs/@fixed_m"/>
504              </xsl:element>)
505            </xsl:if>
506          </dd>
507          <xsl:if test="$other/bugs/@gift &gt; 0">
508            <dt id="bugs_gift">
509              <span class="indented">
510                <a href="http://wiki.debian.org/qa.debian.org/GiftTag">gift</a>
511              </span>
512            </dt>
513            <dd>
514              <xsl:element name="a">
515                <xsl:attribute name="href">
516                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
517                  <xsl:value-of select="$escaped-package" />
518                <xsl:text>&amp;users=debian-qa@lists.debian.org;tag=gift</xsl:text>
519                </xsl:attribute>
520                <span class="bugcount" title="gift">
521                  <xsl:value-of select="$other/bugs/@gift" />
522                </span>
523              </xsl:element>
524            </dd>
525          </xsl:if>
526        </dl>
527      </div>
528    </xsl:template>
529    
530    <xsl:template name="pts-subscription">
531      <!-- <acronym title="Package Tracking System">PTS</acronym> subscription -->
532      <!-- <tr class="normalrow"> -->
533      <!--   <td class="labelcell">Subscribers count</td> -->
534      <!--   <td class="contentcell"><xsl:if test="$hasother"> -->
535      <!--  <xsl:value-of select="$other/pts/@count"/> -->
536      <!--   </xsl:if></td> -->
537      <!-- </tr> -->
538    <form method="post" action="/cgi-bin/pts.cgi">    <form method="post" action="/cgi-bin/pts.cgi">
539      <input type="hidden" name="package" value="{$package}"/>      <p>
540      <select name="what">        <input type="hidden" name="package" value="{$package}"/>
541        <option value="subscribe">Subscribe</option>        subscribe to this package<br />
542        <option value="unsubscribe">Unsubscribe</option>        <input type="text" name="email" size="10" value="email"
543        <option value="advanced">Advanced mode</option>               onfocus="if(email.value=='your email'){{email.value=''}}"/>
544      </select>        <select name="what">
545      <input type="text" name="email" size="15" value="your email" onFocus="if(email.value=='your email'){{email.value=''}}"/>          <option value="subscribe">sub</option>
546      <input type="submit" name="submit" value="Send"/>          <option value="unsubscribe">unsub</option>
547            <option value="advanced">opts</option>
548          </select>
549          <input type="submit" name="submit" value="go"/>
550        </p>
551    </form>    </form>
552    </td>  </xsl:template>
   </tr>  
553    
554    <tr class="titlerow">  <xsl:template name="binary-packages">
555    <td class="titlecell" colspan="2">    <div class="block binaries">
556    Binary Package(s)      <a name="binaries" />
557    </td></tr>      <h2>binaries</h2>
558    <tr class="normalrow">      <ul>
559    <td class="normalcell" colspan="2" style="text-align: left">        <xsl:for-each select="binary/item">
560    <xsl:for-each select="binary/item">          <xsl:sort select="text()"/>
561      <xsl:sort select="text()"/>          <xsl:variable name="pkg" select="text()"/>
562      <xsl:variable name="pkg" select="text()"/>          <xsl:variable name="tooltip"
563      <li>                        select="concat($pkg, ': ',
564      <a href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>                                $other/descriptions/shortdesc[@package=$pkg])" />
565      <span style="font-size: 70%">          <li class="binpkg">
566      (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:            <a class="binpkg" title="{$tooltip}"
567                 href="http://packages.debian.org/{text()}">
568                <span class="binpkg"><xsl:value-of select="text()"/></span>
569              </a>
570              <span style="font-size: 70%">
571                (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:
572                <xsl:element name="a">
573                  <xsl:attribute name="title">critical, grave and serious</xsl:attribute>
574                  <xsl:attribute name="href">
575                    <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
576                    <xsl:call-template name="escape-name">
577                      <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
578                    </xsl:call-template>
579                    <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>
580                  </xsl:attribute>
581                  <xsl:value-of select="$other/bugs/item[@name=$pkg]/@rc"/>
582                </xsl:element>,
583                <xsl:element name="a">
584                  <xsl:attribute name="title">important and normal</xsl:attribute>
585                  <xsl:attribute name="href">
586                    <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
587                    <xsl:call-template name="escape-name">
588                      <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
589                    </xsl:call-template>
590                    <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>
591                  </xsl:attribute>
592                  <xsl:value-of select="$other/bugs/item[@name=$pkg]/@normal"/>
593                </xsl:element>,
594                <xsl:element name="a">
595                  <xsl:attribute name="title">wishlist and minor</xsl:attribute>
596                  <xsl:attribute name="href">
597                    <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
598                    <xsl:call-template name="escape-name">
599                      <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
600                    </xsl:call-template>
601                    <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>
602                  </xsl:attribute>
603                  <xsl:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/>
604                </xsl:element>,
605                <xsl:element name="a">
606                  <xsl:attribute name="title">pending and fixed</xsl:attribute>
607                  <xsl:attribute name="href">
608                    <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
609                    <xsl:call-template name="escape-name">
610                      <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
611                    </xsl:call-template>
612                    <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
613                  </xsl:attribute>
614                  <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>
615                </xsl:element>)
616              </span>
617            </li>
618          </xsl:for-each>
619        </ul>
620      </div>
621    </xsl:template>
622    
623    <xsl:template name="output-version">
624      <xsl:param name="suite" select="''" />
625      <xsl:param name="link" select="'yes'" />
626      <xsl:variable name="version">
627        <span class="srcversion" title="{$suite}">
628          <xsl:value-of select="document(concat('../base/', $dir, '/', $suite,
629                                '.xml'))/source/version"/>
630        </span>
631      </xsl:variable>
632      <xsl:choose>
633        <xsl:when test="$link='yes'">
634        <xsl:element name="a">        <xsl:element name="a">
635          <xsl:attribute name="title">critical, grave and serious</xsl:attribute>          <xsl:attribute name="class">dsc</xsl:attribute>
636          <xsl:attribute name="href">          <xsl:attribute name="href">
637            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>            <xsl:choose>
638            <xsl:call-template name="escape-name">              <xsl:when test="starts-with($suite, 'security-')">
639              <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>                <xsl:value-of select="$security-mirror"/>
640            </xsl:call-template>                <xsl:text>/</xsl:text>
641            <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
642                     select="document(concat('../base/', $dir, '/',
643                             $suite, '.xml'))/source/directory" />
644                </xsl:when>
645                <xsl:when test="str:replace($suite, '-backports', '') != $suite">
646                  <xsl:value-of select="$backports-mirror"/>
647                  <xsl:text>/</xsl:text>
648                  <xsl:value-of
649                     select="document(concat('../base/', $dir, '/',
650                             $suite, '.xml'))/source/directory" />
651                </xsl:when>
652                <xsl:otherwise>
653                  <xsl:value-of select="$mirror"/>
654                  <xsl:text>/</xsl:text>
655                  <xsl:value-of select="$pooldir"/>
656                </xsl:otherwise>
657              </xsl:choose>
658              <xsl:text>/</xsl:text>
659              <xsl:value-of select="document(concat('../base/', $dir, '/',
660                                    $suite, '.xml'))/source/files/item[1]/filename"/>
661          </xsl:attribute>          </xsl:attribute>
662          <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>
663        </xsl:element>,          <img src="../common/save.png" alt="save" />
664          </xsl:element>
665          <xsl:choose>
666            <xsl:when test="starts-with($suite, 'security-')">
667              <xsl:element name="a">
668                <xsl:attribute name="href">
669                  <xsl:text>http://packages.debian.org/source/</xsl:text>
670                  <xsl:value-of select="str:replace($suite, 'security-', '')" />
671                  <xsl:text>/</xsl:text>
672                  <xsl:copy-of select="$package" />
673                </xsl:attribute>
674                <xsl:copy-of select="$version" />
675              </xsl:element>
676            </xsl:when>
677            <xsl:when test="str:replace($suite, '-backports', '') != $suite">
678              <xsl:copy-of select="$version" />
679            </xsl:when>
680            <xsl:when test="str:replace($suite, '-updates', '') != $suite">
681              <xsl:copy-of select="$version" />
682            </xsl:when>
683            <xsl:otherwise>
684              <a href="http://packages.debian.org/source/{$suite}/{$package}">
685                <xsl:copy-of select="$version" />
686              </a>
687            </xsl:otherwise>
688          </xsl:choose>
689        </xsl:when>
690        <xsl:otherwise>
691          <xsl:copy-of select="$version" />
692        </xsl:otherwise>
693      </xsl:choose>
694    </xsl:template>
695    
696        <xsl:element name="a">  <xsl:template name="more-info-marker">
697          <xsl:attribute name="title">important and normal</xsl:attribute>    <xsl:param name="href" />
698          <xsl:attribute name="href">    <xsl:param name="title">more information are available on an external web page</xsl:param>
699          <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>    <a href="{$href}">
700          <xsl:call-template name="escape-name">      <img src="../common/external.png" title="{$title}" alt="..." />
701            <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>    </a>
702          </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>,  
703    
704        <xsl:element name="a">  <xsl:template name="available-versions">
705          <xsl:attribute name="title">pending and fixed</xsl:attribute>    <div class="block versions">
706          <xsl:attribute name="href">      <a name="versions" />
707            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>      <h2>versions
708            <xsl:call-template name="escape-name">        <xsl:call-template name="more-info-marker">
709              <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>          <xsl:with-param name="href">
710              <xsl:text>http://qa.debian.org/madison.php?package=</xsl:text>
711              <xsl:value-of select="$package" />
712            </xsl:with-param>
713            <xsl:with-param name="title">more versions can be listed by madison</xsl:with-param>
714          </xsl:call-template>
715          <xsl:text> </xsl:text>
716          <xsl:call-template name="more-info-marker">
717            <xsl:with-param name="href">http://snapshot.debian.org/package/<xsl:value-of select="package" />/</xsl:with-param>
718            <xsl:with-param name="title">old versions available from snapshot.debian.org</xsl:with-param>
719          </xsl:call-template>
720          <a class="dsc" href="{$mirror}/{$pooldir}">
721            <img src="../common/folder.png" alt="pool" title="pool directory" />
722          </a>
723        </h2>
724    
725        <dl>
726          <xsl:if test="$hasoldstable">
727            <dt title="old stable release">oldstable</dt>
728            <dd>
729              <xsl:call-template name="output-version">
730                <xsl:with-param name="suite">oldstable</xsl:with-param>
731            </xsl:call-template>            </xsl:call-template>
732            <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>          </dd>
733          </xsl:attribute>        </xsl:if>
734          <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>        <xsl:if test="$hassecurity-oldstable">
735        </xsl:element>)          <dt title="security updates for the old stable release">old-sec</dt>
736            <dd>
737              <xsl:call-template name="output-version">
738                <xsl:with-param name="suite">security-oldstable</xsl:with-param>
739              </xsl:call-template>
740            </dd>
741          </xsl:if>
742          <xsl:if test="$hasoldstable-updates">
743            <dt title="updates for the old stable release">old-upd</dt>
744            <dd>
745              <xsl:call-template name="output-version">
746                <xsl:with-param name="suite">oldstable-updates</xsl:with-param>
747              </xsl:call-template>
748            </dd>
749          </xsl:if>
750          <xsl:if test="$hasoldstable-backports">
751            <dt title="backports for the old stable release">old-bpo</dt>
752            <dd>
753              <xsl:call-template name="output-version">
754                <xsl:with-param name="suite">oldstable-backports</xsl:with-param>
755              </xsl:call-template>
756            </dd>
757          </xsl:if>
758          <xsl:if test="$hasstable">
759            <dt>stable</dt>
760            <dd>
761              <xsl:call-template name="output-version">
762                <xsl:with-param name="suite">stable</xsl:with-param>
763              </xsl:call-template>
764            </dd>
765          </xsl:if>
766          <xsl:if test="$hassecurity-stable">
767            <dt title="security updates for the stable release">stable-sec</dt>
768            <dd>
769              <xsl:call-template name="output-version">
770                <xsl:with-param name="suite">security-stable</xsl:with-param>
771              </xsl:call-template>
772            </dd>
773          </xsl:if>
774          <xsl:if test="$hasstable-updates">
775            <dt title="updates for the stable release">stable-upd</dt>
776            <dd>
777              <xsl:call-template name="output-version">
778                <xsl:with-param name="suite">stable-updates</xsl:with-param>
779              </xsl:call-template>
780            </dd>
781          </xsl:if>
782          <xsl:if test="$hasstable-proposed-updates">
783            <dt title="stable proposed updates">s-p-u</dt>
784            <dd>
785              <xsl:call-template name="output-version">
786                <xsl:with-param name="suite">stable-proposed-updates</xsl:with-param>
787              </xsl:call-template>
788            </dd>
789          </xsl:if>
790          <xsl:if test="$hasstable-backports">
791            <dt title="backports for the stable release">stable-bpo</dt>
792            <dd>
793              <xsl:call-template name="output-version">
794                <xsl:with-param name="suite">stable-backports</xsl:with-param>
795              </xsl:call-template>
796            </dd>
797          </xsl:if>
798          <xsl:if test="$hastesting">
799            <dt>testing</dt>
800            <dd>
801              <xsl:call-template name="output-version">
802                <xsl:with-param name="suite">testing</xsl:with-param>
803              </xsl:call-template>
804            </dd>
805          </xsl:if>
806          <xsl:if test="$hassecurity-testing">
807            <dt title="security updates for the testing release">testing-sec</dt>
808            <dd>
809              <xsl:call-template name="output-version">
810                <xsl:with-param name="suite">security-testing</xsl:with-param>
811              </xsl:call-template>
812            </dd>
813          </xsl:if>
814          <xsl:if test="$hastesting-proposed-updates">
815            <dt title="testing proposed updates">t-p-u</dt>
816            <dd>
817              <xsl:call-template name="output-version">
818                <xsl:with-param name="suite">testing-proposed-updates</xsl:with-param>
819              </xsl:call-template>
820            </dd>
821          </xsl:if>
822          <xsl:if test="$hasunstable">
823            <dt>unstable</dt>
824            <dd>
825              <xsl:call-template name="output-version">
826                <xsl:with-param name="suite">unstable</xsl:with-param>
827              </xsl:call-template>
828            </dd>
829          </xsl:if>
830          <xsl:if test="$hasexperimental">
831            <dt title="experimental release">exp</dt>
832            <dd>
833              <xsl:call-template name="output-version">
834                <xsl:with-param name="suite">experimental</xsl:with-param>
835              </xsl:call-template>
836            </dd>
837          </xsl:if>
838          <xsl:if test="$hasother and $other/@new_version">
839            <dt title="waiting in the NEW queue for FTP master review">
840              <a href="http://ftp-master.debian.org/new.html">NEW</a>
841            </dt>
842            <dd>
843              <xsl:value-of select="$other/@new_version" />
844            </dd>
845          </xsl:if>
846        </dl>
847      </div>
848    </xsl:template>
849    
850    <xsl:template name="ubuntu">
851      <xsl:if test="$other/@ubuntu='yes'">
852        <div class="block ubuntu">
853          <a name="ubuntu" />
854          <h2>ubuntu
855            <img src="../common/ubuntu.png" alt="ubuntu" />
856            <xsl:text> </xsl:text>
857            <xsl:call-template name="more-info-marker">
858              <xsl:with-param name="href">https://wiki.ubuntu.com/Ubuntu/ForDebianDevelopers</xsl:with-param>
859              <xsl:with-param name="title">Information about Ubuntu for Debian Developers</xsl:with-param>
860            </xsl:call-template>
861          </h2>
862          <ul>
863            <li>
864              version: <a href="{$other/ubuntu/@url}"><xsl:value-of select="$other/ubuntu/@version"/></a>
865            </li>
866            <xsl:if test="$other/ubuntu/patch">
867              <li>
868                <a href="{$other/ubuntu/patch/@url}">patches for
869                <xsl:value-of select="$other/ubuntu/patch/@version"/></a>
870              </li>
871            </xsl:if>
872            <xsl:if test="$other/ubuntu/bugs">
873              <li>
874                <a href="{$other/ubuntu/bugs/@url}"><xsl:value-of select="$other/ubuntu/bugs/@count"/>
875                bugs</a>
876                <xsl:if test="$other/ubuntu/bugpatches">
877                  (<a href="{$other/ubuntu/bugpatches/@url}"><xsl:value-of select="$other/ubuntu/bugpatches/@count"/>
878                  patches</a>)
879                </xsl:if>
880              </li>
881            </xsl:if>
882          </ul>
883        </div>
884      </xsl:if>
885    </xsl:template>
886    
887    <xsl:template name="output-patch-tracker-version">
888      <xsl:param name="suite" select="''" />
889      <xsl:param name="link" select="'yes'" />
890      <xsl:variable name="version">
891        <span class="srcversion" title="{$suite}">
892          <xsl:value-of select="document(concat('../base/', $dir, '/', $suite,
893                                '.xml'))/source/version"/>
894      </span>      </span>
895      </li>    </xsl:variable>
896    </xsl:for-each>    <xsl:choose>
897    </td></tr>      <xsl:when test="$link='yes'">
898          <a href="http://patch-tracker.debian.org/package/{$package}/{$version}">
899    <tr class="titlerow">          <xsl:copy-of select="$version" />
900    <td class="titlecell" colspan="2">        </a>
901    Other available versions      </xsl:when>
902    </td></tr>      <xsl:otherwise>
903    <xsl:if test="$hasexperimental">        <xsl:copy-of select="$version" />
904    <tr class="normalrow">      </xsl:otherwise>
905    <td class="labelcell">Experimental</td>    </xsl:choose>
906    <td class="contentcell">  </xsl:template>
907    <xsl:value-of select="document(concat('../base/', $dir, '/experimental.xml'))/source/version"/>  
908    </td>  <xsl:template name="patch-tracker">
909    </tr>    <div class="block patch-tracker">
910    </xsl:if>      <a name="patch-tracker" />
911    <xsl:if test="$hasstable-security">      <h2>patch-tracker
912    <tr class="normalrow">          <xsl:call-template name="more-info-marker">
913    <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>
914    <td class="contentcell">            <xsl:with-param name="title">Link to patch tracker</xsl:with-param>
915    <xsl:value-of select="document(concat('../base/', $dir, '/stable-security.xml'))/source/version"/>          </xsl:call-template></h2>
916    </td>  
917    </tr>      <dl>
918    </xsl:if>        <xsl:if test="$hasoldstable">
919    <xsl:if test="$hastesting-security">          <dt title="old stable release">oldstable</dt>
920    <tr class="normalrow">          <dd>
921    <td class="labelcell">Security Updates (testing)</td>            <xsl:call-template name="output-patch-tracker-version">
922    <td class="contentcell">              <xsl:with-param name="suite">oldstable</xsl:with-param>
923    <xsl:value-of select="document(concat('../base/', $dir, '/testing-security.xml'))/source/version"/>            </xsl:call-template>
924    </td>          </dd>
925    </tr>        </xsl:if>
926    </xsl:if>        <xsl:if test="$hasstable">
927    <xsl:if test="$hastesting">          <dt>stable</dt>
928    <tr class="normalrow">          <dd>
929    <td class="labelcell"><a href="http://www.debian.org/releases/testing/">Testing</a></td>            <xsl:call-template name="output-patch-tracker-version">
930    <td class="contentcell">              <xsl:with-param name="suite">stable</xsl:with-param>
931    <xsl:value-of select="document(concat('../base/', $dir, '/testing.xml'))/source/version"/>            </xsl:call-template>
932    </td>          </dd>
933    </tr>        </xsl:if>
934    </xsl:if>        <xsl:if test="$hastesting">
935    <xsl:if test="$hast-p-u">          <dt>testing</dt>
936    <tr class="normalrow">          <dd>
937    <td class="labelcell">Testing Proposed Updates</td>            <xsl:call-template name="output-patch-tracker-version">
938    <td class="contentcell">              <xsl:with-param name="suite">testing</xsl:with-param>
939    <xsl:value-of select="document(concat('../base/', $dir, '/t-p-u.xml'))/source/version"/>            </xsl:call-template>
940    </td>          </dd>
941    </tr>        </xsl:if>
942    </xsl:if>        <xsl:if test="$hasunstable">
943    <xsl:if test="$hasstable">          <dt>unstable</dt>
944    <tr class="normalrow">          <dd>
945    <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>            <xsl:call-template name="output-patch-tracker-version">
946    <td class="contentcell">              <xsl:with-param name="suite">unstable</xsl:with-param>
947    <xsl:value-of select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/>            </xsl:call-template>
948    </td>          </dd>
949    </tr>        </xsl:if>
950    </xsl:if>        <xsl:if test="$hasexperimental">
951    <xsl:if test="$hass-p-u">          <dt title="experimental release">exp</dt>
952    <tr class="normalrow">          <dd>
953    <td class="labelcell">Stable Proposed Updates</td>            <xsl:call-template name="output-patch-tracker-version">
954    <td class="contentcell">              <xsl:with-param name="suite">experimental</xsl:with-param>
955    <xsl:value-of select="document(concat('../base/', $dir, '/s-p-u.xml'))/source/version"/>            </xsl:call-template>
956    </td>          </dd>
957    </tr>        </xsl:if>
958    </xsl:if>      </dl>
959      </div>
960    <tr class="titlerow">  </xsl:template>
961    <td class="titlecell" colspan="2">  
962    Other links  <xsl:template name="other-links">
963    </td></tr>    <div class="block links">
964    <tr>      <a name="links" />
965    <td class="contentcell" colspan="2" style="text-align: left">      <h2>links</h2>
966    <xsl:if test="architecture!='all'">      <ul>
967      <li>        <xsl:if test="homepage">
968        <xsl:element name="a">          <li><a title="upstream web homepage" href="{homepage}">homepage</a></li>
969          <xsl:attribute name="href">        </xsl:if>
970            <xsl:text>http://buildd.debian.org/build.php?pkg=</xsl:text>        <li>
971            <xsl:call-template name="escape-name">          <xsl:element name="a">
972              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>            <xsl:attribute name="href">
973            </xsl:call-template>              <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
974          </xsl:attribute>              <xsl:value-of select="directory"/>
975          <xsl:text>Buildd logs</xsl:text>              <xsl:text>/current/changelog</xsl:text>
976        </xsl:element>            </xsl:attribute>
977      </li>            <xsl:text>changelog</xsl:text>
978    </xsl:if>          </xsl:element>
979    <!-- DISABLED until ddtp.debian.org is back up          /
980      <li>          <xsl:element name="a">
981        <xsl:element name="a">            <xsl:attribute name="href">
982          <xsl:attribute name="href">              <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
983            <xsl:text>http://ddtp.debian.org/stats/pdesc/report.cgi?package=</xsl:text>              <xsl:value-of select="directory"/>
984            <xsl:call-template name="escape-name">              <xsl:text>/current/copyright</xsl:text>
985              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>            </xsl:attribute>
986            </xsl:call-template>            <xsl:text>copyright</xsl:text>
987            <xsl:text>&amp;lang=all&amp;type=src-drvbin&amp;subword=0</xsl:text>          </xsl:element>
988          </xsl:attribute>        </li>
989          Description's translations (DDTP)        <xsl:if test="architecture!='all'">
990        </xsl:element>          <li>
991      </li>            <xsl:text>buildd: </xsl:text>
992    <xsl:if test="$other/@debconf='yes'">            <a href="https://buildd.debian.org/status/package.php?p={$escaped-package}"
993      <li>               title="buildd.debian.org build logs">logs</a>
994        <xsl:element name="a">            <xsl:text>, </xsl:text>
995          <xsl:attribute name="href">                 <xsl:if test="$hasexperimental">
996            <xsl:text>http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&amp;package=</xsl:text>                   <a href="https://buildd.debian.org/status/package.php?p={$escaped-package}&amp;suite=experimental"
997            <xsl:call-template name="escape-name">                      title="experimental build logs">exp</a>
998              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>                   <xsl:text>, </xsl:text>
999            </xsl:call-template>                 </xsl:if>
1000          </xsl:attribute>                 <a href="http://buildd.debian-ports.org/status/package.php?p={$escaped-package}"
1001          Debconf templates's translations (DDTP)                    title="debian ports build logs">ports</a>
1002        </xsl:element>          </li>
1003      </li>        </xsl:if>
1004    </xsl:if>        <xsl:if test="$other/@logcheck='yes'">
1005    -->          <xsl:variable name="logcheck_url"><xsl:call-template name="mk_logcheck_url" /></xsl:variable>
1006    <xsl:if test="$hasunstable and $other/debcheck/@unstable='yes'">          <li>
1007      <li>            <a title="report about issues spotted in buildd logs"
1008        <xsl:element name="a">               href="{$logcheck_url}">build log checks</a>
1009          <xsl:attribute name="href">          </li>
1010            <xsl:text>http://qa.debian.org/debcheck.php?dist=unstable&amp;package=</xsl:text>        </xsl:if>
1011            <xsl:call-template name="escape-name">        <xsl:if test="$hasother and $other/@piuparts='yes'">
1012              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>          <li>
1013            </xsl:call-template>            <a title="report about errors found while stressing package installation"
1014          </xsl:attribute>               href="http://piuparts.debian.org/sid/source/{$hash}/{$package}.html">piuparts</a>
1015          <xsl:text>Debcheck on unstable</xsl:text>          </li>
1016        </xsl:element>        </xsl:if>
1017      </li>        <xsl:if test="($hasunstable and $other/debcheck/@unstable='yes')
1018    </xsl:if>                      or ($hastesting and $other/debcheck/@testing='yes')
1019    <xsl:if test="$hastesting and $other/debcheck/@testing='yes'">                      or ($hasstable and $other/debcheck/@stable='yes')">
1020      <li>          <li>
1021        <xsl:element name="a">            debcheck:
1022          <xsl:attribute name="href">            <xsl:if test="$hasunstable">
1023            <xsl:text>http://qa.debian.org/debcheck.php?dist=testing&amp;package=</xsl:text>              <xsl:text> </xsl:text>
1024            <xsl:call-template name="escape-name">              <a href="http://qa.debian.org/debcheck.php?dist=unstable&amp;package={$escaped-package}">unstable</a>
1025              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>            </xsl:if>
1026            </xsl:call-template>            <xsl:if test="$hastesting">
1027          </xsl:attribute>              <xsl:text> </xsl:text>
1028          <xsl:text>Debcheck on testing</xsl:text>              <a href="http://qa.debian.org/debcheck.php?dist=testing&amp;package={$escaped-package}">testing</a>
1029        </xsl:element>            </xsl:if>
1030      </li>            <xsl:if test="$hasstable">
1031    </xsl:if>              <xsl:text> </xsl:text>
1032    <xsl:if test="$hasstable and $other/debcheck/@stable='yes'">              <a href="http://qa.debian.org/debcheck.php?dist=stable&amp;package={$escaped-package}">stable</a>
1033      <li>            </xsl:if>
1034        <xsl:element name="a">          </li>
1035          <xsl:attribute name="href">        </xsl:if>
1036            <xsl:text>http://qa.debian.org/debcheck.php?dist=stable&amp;package=</xsl:text>        <xsl:if test="$other/@lintian='yes'">
1037            <xsl:variable name="lintian_url"><xsl:call-template name="mk_lintian_url" /></xsl:variable>
1038            <li>
1039              <a title="report about packaging issues spotted by lintian"
1040                 href="{$lintian_url}">lintian</a>
1041              <!-- <xsl:if test="$lin_errs + $lin_warns > 0"> -->
1042              <!--   <xsl:text> </xsl:text> -->
1043              <!--   <small><span title="(errors, warnings)">(<span id="lintian_errors"><xsl:value-of select="$lin_errs" /></span>, -->
1044              <!--  <span id="lintian_warnings"><xsl:value-of select="$lin_warns" /></span>)</span></small> -->
1045              <!-- </xsl:if> -->
1046            </li>
1047          </xsl:if>
1048          <li>
1049            <a title="package popularity"
1050               href="http://qa.debian.org/popcon.php?package={$escaped-package}">popcon</a>
1051          </li>
1052          <xsl:if test="$other/@svnbuildstat='yes'">
1053            <li>
1054              <a href="http://svnbuildstat.debian.net/packages/info/{$escaped-package}">Svnbuildstat</a>
1055            </li>
1056          </xsl:if>
1057          <xsl:if test="$other/i18n/@href">
1058            <li>
1059              <a title="translation status"
1060                 href="{$other/i18n/@href}">l10n</a>
1061              <small>
1062                (<span title="completeness of Debian string translation">
1063                  <xsl:value-of select="$other/i18n/@deb" />
1064                </span>,
1065                <span title="completeness of non-Debian string translation">
1066                  <xsl:value-of select="$other/i18n/@nondeb" />
1067                </span>)
1068              </small>
1069            </li>
1070          </xsl:if>
1071          <xsl:if test="$other/@fonts='yes'">
1072            <li>
1073              <a title="fonts review" href="{$other/fonts/@href}">fonts</a>
1074            </li>
1075          </xsl:if>
1076          <li>
1077            <xsl:variable name="escaped-email">
1078            <xsl:call-template name="escape-name">            <xsl:call-template name="escape-name">
1079              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>              <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>
1080            </xsl:call-template>            </xsl:call-template>
1081          </xsl:attribute>          </xsl:variable>
1082          <xsl:text>Debcheck on stable</xsl:text>          <a title="edit all debtags" href="http://debtags.debian.net/rep/todo/maint/{$escaped-email}#{$escaped-package}">debtags</a>
1083        </xsl:element>        </li>
1084      </li>      </ul>
1085    </xsl:if>    </div>
1086    <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->  </xsl:template>
                               <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>  
   
   </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">  
   
1087    
1088    <!-- Todo list -->  <xsl:template name="todo-list">
1089    <xsl:variable name="todo">    <xsl:variable name="todo">
1090      <xsl:if test="@nmu">      <xsl:call-template name="issue-security" />
1091        <li>Incorporate and acknowledge the changes from the non maintainer upload.</li>      <xsl:call-template name="issue-nmu" />
1092      </xsl:if>      <xsl:call-template name="issue-lintian" />
1093      <xsl:if test="not(uploaders)and(priority='standard' or priority='required' or priority='important')">      <xsl:call-template name="issue-logcheck" />
1094        <li>The package is of priority standard or higher, you should really find some co-maintainers.</li>      <xsl:call-template name="issue-mentors-pending" />
1095      </xsl:if>      <xsl:call-template name="issue-comaintenance" />
1096      <xsl:if test="not(starts-with(standards-version, $lastsv))">      <xsl:call-template name="issue-outdate-stdver" />
1097        <li>The package should be updated to follow the last version of      <xsl:call-template name="issue-new-upstream" />
1098        <a href="http://www.debian.org/doc/debian-policy/">Debian Policy</a> (Standards-Version      <xsl:call-template name="issue-patches" />
1099        <xsl:value-of select="$lastsv"/> instead of      <xsl:call-template name="issue-l10n" />
1100        <xsl:value-of select="standards-version"/>).</li>      <xsl:call-template name="issue-release-goals" />
     </xsl:if>  
1101      <xsl:if test="$hasother">      <xsl:if test="$hasother">
1102        <xsl:for-each select="$other/todo/item">        <xsl:for-each select="$other/todo/item">
1103          <xsl:call-template name="outputitem"/>          <xsl:call-template name="outputitem" />
1104        </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>  
1105      </xsl:if>      </xsl:if>
1106    </xsl:variable>    </xsl:variable>
1107    
1108    <xsl:if test="count($todo)>0 and string($todo)!=''">    <xsl:if test="count($todo)>0 and string($todo)!=''">
1109    <tr class="titlerow">      <div class="block todo">
1110    <td class="titlecell" style="background-color: blue">        <a name="todo" />
1111    Todo        <h2>todo</h2>
1112    </td></tr>        <ul>
1113    <tr class="normalrow">          <xsl:copy-of select="$todo" />
1114    <td class="contentcell2"><xsl:copy-of select="$todo"/>        </ul>
1115    </td>      </div>
   </tr>  
1116    </xsl:if>    </xsl:if>
1117    </xsl:template>
1118    <!-- List of problems -->  
1119    <xsl:template name="problems">
1120    <xsl:variable name="problems">    <xsl:variable name="problems">
1121      <xsl:if test="$hasexcuse and document(concat('../base/', $dir, '/excuse.xml'))/excuse/@problematic">      <xsl:call-template name="issue-testing-excuses" />
1122        <li>The package has not yet entered <a      <xsl:call-template name="issue-piuparts" />
1123        href="http://ftp-master.debian.org/testing/update_excuses.html.gz#{$package}">testing</a>      <xsl:call-template name="issue-ancient-stdver" />
1124        even though the <xsl:value-of select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/@limit"/>-day      <xsl:call-template name="issue-item-dead-package" />
1125        delay is over.      <xsl:call-template name="issue-item-override-disparity" />
1126        <xsl:element name="a">      <xsl:call-template name="issue-item-help-bugs" />
1127          <xsl:attribute name="href">      <xsl:call-template name="issue-item-wnpp" />
1128            <xsl:text>http://bjorn.haxx.se/debian/testing.pl?package=</xsl:text>      <!-- <xsl:call-template name="issue-item-watch-failure" /> -->
1129            <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>  
1130      <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 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: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 -->  
1131        <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">  
1132          <xsl:call-template name="outputitem"/>          <xsl:call-template name="outputitem"/>
1133        </xsl:for-each>        </xsl:for-each>
1134      </xsl:if>      </xsl:if>
1135    </xsl:variable>    </xsl:variable>
1136    <xsl:if test="count($news)>0 and string($news)!=''">  
1137      <tr class="titlerow">    <xsl:if test="count($problems)>0 and string($problems)!=''">
1138      <td class="titlecell">      <div class="block problems">
1139      Latest News        <a name="problems" />
1140      </td></tr>        <h2>problems</h2>
1141      <tr class="normalrow">        <ul>
1142      <td class="contentcell2"><xsl:copy-of select="$news"/></td>          <xsl:copy-of select="$problems" />
1143      </tr>        </ul>
1144    </xsl:if>      </div>
1145      </xsl:if>
1146    </table>  </xsl:template>
1147    <!-- END RIGHT SIDE -->  
1148    </td></tr>  <xsl:template name="testing-status">
1149    </table>    <xsl:if test="$hasexcuse or $other/@transitions='yes'">
1150    <hr/>      <div class="block testing">
1151    Debian Package Tracking System - Copyright 2002-2004 Raphaël Hertzog<br/>        <a name="testing" />
1152    Last modified : <xsl:value-of select="$date"/>        <h2>testing migration</h2>
1153    </body>        <xsl:if test="$other/@transitions='yes'">
1154            <xsl:variable name="translist">
1155              <xsl:for-each select="$other/transitions/transition">
1156                <xsl:value-of select="@name" />
1157                <xsl:if test="position() != last()"> <xsl:text> </xsl:text>
1158                </xsl:if>
1159              </xsl:for-each>
1160            </xsl:variable>
1161            <xsl:variable name="transno"
1162                          select="count($other/transitions/transition)" />
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/release.debian.org">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.903  
changed lines
  Added in v.2700

  ViewVC Help
Powered by ViewVC 1.1.5