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

Legend:
Removed from v.600  
changed lines
  Added in v.2552

  ViewVC Help
Powered by ViewVC 1.1.5