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

Legend:
Removed from v.1425  
changed lines
  Added in v.1959

  ViewVC Help
Powered by ViewVC 1.1.5