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

Legend:
Removed from v.1558  
changed lines
  Added in v.1927

  ViewVC Help
Powered by ViewVC 1.1.5