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

Legend:
Removed from v.903  
changed lines
  Added in v.2057

  ViewVC Help
Powered by ViewVC 1.1.5