/[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 1819 by zack, Thu Jan 24 18:57:38 2008 UTC revision 2057 by zack, Sat Nov 29 15:01:48 2008 UTC
# Line 2  Line 2 
2    
3  <!--  <!--
4  # Copyright 2002-2008 Raphaël Hertzog and others  # Copyright 2002-2008 Raphaël Hertzog and others
5    # Copyright 2007-2008 Stefano Zacchiroli
6  # This file is distributed under the terms of the General Public License  # This file is distributed under the terms of the General Public License
7  # version 2 or (at your option) any later version.  # version 2 or (at your option) any later version.
8  -->  -->
9    
10  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">  <xsl:stylesheet
11      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
12      xmlns="http://www.w3.org/1999/xhtml"
13      version="1.0">
14    
15    <xsl:output
16      method="xml"
17      encoding="UTF-8"
18      omit-xml-declaration="yes"
19      doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
20      doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
21      indent="yes" />
22    
23  <xsl:output encoding="UTF-8" method="html"/>  <xsl:include href="pts-issues.xsl" />
24    
25  <xsl:param name="package"/>  <xsl:param name="package"/>
26  <xsl:param name="dir"/>  <xsl:param name="dir"/>
# Line 18  Line 30 
30  <xsl:param name="hastesting" select="''"/>  <xsl:param name="hastesting" select="''"/>
31  <xsl:param name="hasunstable" select="''"/>  <xsl:param name="hasunstable" select="''"/>
32  <xsl:param name="hasexperimental" select="''"/>  <xsl:param name="hasexperimental" select="''"/>
33    <xsl:param name="hasmentors" select="''"/>
34  <xsl:param name="hasother" select="''"/>  <xsl:param name="hasother" select="''"/>
35  <xsl:param name="hass-p-u" select="''"/>  <xsl:param name="hasstable-proposed-updates" select="''"/>
36  <xsl:param name="hast-p-u" select="''"/>  <xsl:param name="hastesting-proposed-updates" select="''"/>
37  <xsl:param name="hasoldstable-security" select="''"/>  <xsl:param name="hassecurity-oldstable" select="''"/>
38  <xsl:param name="hasstable-security" select="''"/>  <xsl:param name="hassecurity-stable" select="''"/>
39  <xsl:param name="hastesting-security" select="''"/>  <xsl:param name="hassecurity-testing" select="''"/>
40  <xsl:param name="hassecure-testing" select="''"/>  <xsl:param name="hassecure-testing" select="''"/>
41  <xsl:param name="hasvolatile" select="''"/>  <xsl:param name="hasvolatile" select="''"/>
42  <xsl:param name="hasnews" select="''"/>  <xsl:param name="hasnews" select="''"/>
# Line 36  Line 49 
49    
50  <!-- Those variables controls the todo and problem item concerning  <!-- Those variables controls the todo and problem item concerning
51       standards-version not being up to date -->       standards-version not being up to date -->
52  <xsl:variable name="lastsv" select="'3.7.3'"/>  <xsl:variable name="lastsv" select="'3.8.0'"/>
53  <xsl:variable name="lastmajorsv" select="'3.'"/>  <xsl:variable name="lastmajorsv" select="'3.'"/>
54    
55    <!-- lintian summary -->
56    <xsl:variable name="lin_errs" select="$other/lintian/@errors" />
57    <xsl:variable name="lin_warns" select="$other/lintian/@warnings" />
58    
59  <!-- Named templates aka functions -->  <!-- Named templates aka functions -->
60    
61    <xsl:template name="mk_lintian_url">
62      <!-- convert maintainer/name to follow lintian.debian.org convention -->
63      <xsl:variable name="lintian_pattern" select="concat('àáèéëêòöøîìùñ~/()&#34; ', &quot;'&quot;)"/>
64      <xsl:variable name="lintian_email" select="translate(maintainer/email, $lintian_pattern, '_____________________')"/>
65    
66      <xsl:text>http://lintian.debian.org/reports/maintainer/</xsl:text>
67      <xsl:value-of select="$lintian_email" />
68      <xsl:text>.html#</xsl:text>
69      <xsl:value-of select="$package" />
70    </xsl:template>
71    
72  <xsl:template name="mirror">  <xsl:template name="mirror">
73    <xsl:text>http://ftp.debian.org/debian</xsl:text>    <xsl:text>http://ftp.debian.org/debian</xsl:text>
74  </xsl:template>  </xsl:template>
# Line 104  other-to-%xx, especially % to %25... For Line 133  other-to-%xx, especially % to %25... For
133    <xsl:if test="repository">    <xsl:if test="repository">
134      <tr>      <tr>
135        <td class="labelcell">        <td class="labelcell">
136          <xsl:text>Version Control</xsl:text>          <acronym title="Version Control System">VCS</acronym>
137        </td>        </td>
138        <td class="contentcell">        <td class="contentcell">
         <xsl:if test="repository/vcs[@kind='browser']">  
           <a href="{repository/vcs[@kind='browser']/@url}">  
             <xsl:text>browser</xsl:text>  
           </a>  
           <br />  
         </xsl:if>  
139          <xsl:if test="repository/vcs[@kind!='browser']">          <xsl:if test="repository/vcs[@kind!='browser']">
           <xsl:text>raw: </xsl:text>  
140            <xsl:for-each select="repository/vcs[@kind!='browser']">            <xsl:for-each select="repository/vcs[@kind!='browser']">
141              <xsl:sort select="@kind" />              <xsl:sort select="@kind" />
142              <a href="{@url}">              <a title="access to the raw repository" href="{@url}">
143                <xsl:value-of select="@kind" />                <xsl:value-of select="@kind" />
144              </a>              </a>
145              <xsl:if test="position()!=last()">              <xsl:if test="position()!=last()">
# Line 125  other-to-%xx, especially % to %25... For Line 147  other-to-%xx, especially % to %25... For
147              </xsl:if>              </xsl:if>
148            </xsl:for-each>            </xsl:for-each>
149          </xsl:if>          </xsl:if>
150            <xsl:if test="repository/vcs[@kind='browser']">
151              <xsl:text> (</xsl:text>
152              <a title="web-based repository browsing"
153                href="{repository/vcs[@kind='browser']/@url}">browse</a>
154              <xsl:text>)</xsl:text>
155            </xsl:if>
156        </td>        </td>
157      </tr>      </tr>
158    </xsl:if>    </xsl:if>
# Line 146  other-to-%xx, especially % to %25... For Line 174  other-to-%xx, especially % to %25... For
174    <xsl:if test="string($dm)!='' or string($lownmu)!=''">    <xsl:if test="string($dm)!='' or string($lownmu)!=''">
175      <tr>      <tr>
176        <td class="labelcell">        <td class="labelcell">
177          <xsl:text>Maintenance info</xsl:text>          <xsl:text>Maintenance</xsl:text>
178        </td>        </td>
179        <td class="contentcell">        <td class="contentcell">
180    
# Line 227  other-to-%xx, especially % to %25... For Line 255  other-to-%xx, especially % to %25... For
255    
256  <xsl:template name="general-information">  <xsl:template name="general-information">
257    <tr class="titlerow">    <tr class="titlerow">
258      <td class="titlecell" colspan="2">      <td class="titlecell" colspan="2">General information</td>
       General information  
     </td>  
259    </tr>    </tr>
260    <tr class="normalrow">    <tr class="normalrow">
261      <td class="labelcell">Latest version</td>      <td class="labelcell">Latest version</td>
262      <td class="contentcell"><xsl:value-of select="version"/></td>      <td class="contentcell">
263          <span id="latest_version"><xsl:value-of select="version"/></span>
264        </td>
265    </tr>    </tr>
266    <xsl:if test="@release!='unstable'">    <xsl:if test="@release!='unstable'">
267      <tr class="normalrow">      <tr class="normalrow">
# Line 243  other-to-%xx, especially % to %25... For Line 271  other-to-%xx, especially % to %25... For
271    </xsl:if>    </xsl:if>
272    <tr class="normalrow">    <tr class="normalrow">
273      <td class="labelcell">Maintainer</td>      <td class="labelcell">Maintainer</td>
274      <td class="contentcell">      <td class="maintainer contentcell">
275        <xsl:element name="a">        <xsl:element name="a">
276          <xsl:attribute name="href">          <xsl:attribute name="href">
277            <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>            <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
# Line 251  other-to-%xx, especially % to %25... For Line 279  other-to-%xx, especially % to %25... For
279              <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>              <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>
280            </xsl:call-template>            </xsl:call-template>
281          </xsl:attribute>          </xsl:attribute>
282          <xsl:value-of select="maintainer/name"/>          <span class="name"><xsl:value-of select="maintainer/name"/></span>
283        </xsl:element>        </xsl:element>
284        <xsl:text> </xsl:text>        <xsl:text> </xsl:text>
285        <xsl:call-template name="maintainer-email">        <xsl:call-template name="maintainer-email">
# Line 259  other-to-%xx, especially % to %25... For Line 287  other-to-%xx, especially % to %25... For
287        </xsl:call-template>        </xsl:call-template>
288      </td>      </td>
289    </tr>    </tr>
290      <xsl:if test="uploaders">
291        <tr class="normalrow">
292          <td class="labelcell"><a href="http://www.debian.org/doc/manuals/developers-reference/pkgs.html#collaborative-maint">Uploaders</a></td>
293          <td class="uploaders contentcell">
294            <xsl:for-each select="uploaders/item">
295              <span class="uploader">
296                <xsl:element name="a">
297                  <xsl:attribute name="href">
298                    <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
299                    <xsl:call-template name="escape-name">
300                      <xsl:with-param name="text"><xsl:value-of select="email"/></xsl:with-param>
301                    </xsl:call-template>
302                  </xsl:attribute>
303                  <span class="name"><xsl:value-of select="name"/></span>
304                </xsl:element>
305                <xsl:text> </xsl:text>
306                <xsl:call-template name="maintainer-email">
307                  <xsl:with-param name="email" select="email" />
308                </xsl:call-template>
309              </span>
310              <br />
311            </xsl:for-each>
312        </td></tr>
313      </xsl:if>
314      <xsl:call-template name='add-maintenance-info'>
315        <xsl:with-param name="email" select="maintainer/email" />
316      </xsl:call-template>
317    <tr class="normalrow">    <tr class="normalrow">
318      <td class="labelcell"><a href="http://www.debian.org/doc/manuals/developers-reference/ch-pkgs.en.html#s-collaborative-maint">Uploaders</a></td>      <xsl:variable name='stdver' select="standards-version" />
319        <td class="labelcell">Conforms to</td>
320      <td class="contentcell">      <td class="contentcell">
321        <xsl:if test="uploaders">        <a title="Debian Policy Manual (version: {$stdver})"
322          <xsl:for-each select="uploaders/item">          href="http://www.debian.org/doc/debian-policy/">
323            <xsl:element name="a">          <xsl:value-of select="$stdver"/>
324              <xsl:attribute name="href">        </a>
325                <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>      </td>
               <xsl:call-template name="escape-name">  
                 <xsl:with-param name="text"><xsl:value-of select="email"/></xsl:with-param>  
               </xsl:call-template>  
             </xsl:attribute>  
             <xsl:value-of select="name"/>  
           </xsl:element>  
           <xsl:text> </xsl:text>  
           <xsl:call-template name="maintainer-email">  
             <xsl:with-param name="email" select="email" />  
           </xsl:call-template>  
           <br />  
         </xsl:for-each>  
       </xsl:if>  
       <xsl:if test="not(uploaders)">  
         <a class="none" title="You should find some co-maintainers ..." name="fake">None</a>  
       </xsl:if>  
       <xsl:call-template name='add-maintenance-info'>  
         <xsl:with-param name="email" select="maintainer/email" />  
       </xsl:call-template>  
   </td></tr>  
   <tr class="normalrow">  
     <td class="labelcell">Standards version</td>  
     <td class="contentcell"><xsl:value-of select="standards-version"/></td>  
326    </tr>    </tr>
327    <tr class="normalrow">    <tr class="normalrow">
328      <td class="labelcell">Priority</td>      <td class="labelcell">Priority</td>
# Line 310  other-to-%xx, especially % to %25... For Line 343  other-to-%xx, especially % to %25... For
343    
344  <xsl:template name="bugs-count">  <xsl:template name="bugs-count">
345    <tr class="titlerow">    <tr class="titlerow">
346      <td class="titlecell" colspan="2">      <td class="titlecell" colspan="2">Bugs count</td>
       Bugs count  
     </td>  
347    </tr>    </tr>
348    <tr class="normalrow" id="bugs_all">    <tr class="normalrow" id="bugs_all">
349      <td class="labelcell">All bugs</td>      <td class="labelcell">All bugs
350           <xsl:element name="a">
351            <xsl:attribute name="href">
352              <xsl:text>http://people.debian.org/~glandium/bts/</xsl:text>
353              <xsl:value-of select="substring($package, 1, 1)"/>
354              <xsl:text>/</xsl:text>
355              <xsl:value-of select="$escaped-package" />
356              <xsl:text>.png</xsl:text>
357            </xsl:attribute>
358            <xsl:attribute name="style">font-weight: normal</xsl:attribute>
359            <xsl:text>(graph)</xsl:text>
360          </xsl:element>
361        </td>
362      <td class="contentcell">      <td class="contentcell">
363        <xsl:element name="a">        <xsl:element name="a">
364          <xsl:attribute name="href">          <xsl:attribute name="href">
365            <xsl:text>http://bugs.debian.org/src:</xsl:text>            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=no&amp;src=</xsl:text>
366            <xsl:call-template name="escape-name">            <xsl:value-of select="$escaped-package" />
             <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
           </xsl:call-template>  
367          </xsl:attribute>          </xsl:attribute>
368          <xsl:if test="$hasother">          <xsl:if test="$hasother">
369            <xsl:value-of select="$other/bugs/@all"/>            <xsl:value-of select="$other/bugs/@all"/>
370          </xsl:if>          </xsl:if>
371        </xsl:element>        </xsl:element>
372          <xsl:if test="$hasother and $other/bugs/@all_m">
373            (<xsl:element name="a">
374              <xsl:attribute name="href">
375                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=yes&amp;src=</xsl:text>
376                <xsl:value-of select="$escaped-package" />
377              </xsl:attribute>
378              <xsl:value-of select="$other/bugs/@all_m"/>
379            </xsl:element>)
380          </xsl:if>
381      </td>      </td>
382    </tr>    </tr>
383    <tr class="normalrow" id="bugs_rc">    <tr class="normalrow" id="bugs_rc">
# Line 335  other-to-%xx, especially % to %25... For Line 385  other-to-%xx, especially % to %25... For
385      <td class="contentcell">      <td class="contentcell">
386        <xsl:element name="a">        <xsl:element name="a">
387          <xsl:attribute name="href">          <xsl:attribute name="href">
388            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
389            <xsl:call-template name="escape-name">            <xsl:value-of select="$escaped-package" />
390              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>            <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=critical&amp;sev-inc=grave&amp;sev-inc=serious&amp;repeatmerged=no</xsl:text>
           </xsl:call-template>  
           <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=critical&amp;sev-inc=grave&amp;sev-inc=serious</xsl:text>  
391          </xsl:attribute>          </xsl:attribute>
392          <xsl:if test="$hasother">          <xsl:if test="$hasother">
393            <xsl:value-of select="$other/bugs/@rc"/>            <xsl:value-of select="$other/bugs/@rc"/>
394          </xsl:if>          </xsl:if>
395        </xsl:element>        </xsl:element>
396          <xsl:if test="$hasother and $other/bugs/@rc_m">
397            (<xsl:element name="a">
398              <xsl:attribute name="href">
399                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
400                <xsl:value-of select="$escaped-package" />
401                <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=critical&amp;sev-inc=grave&amp;sev-inc=serious&amp;repeatmerged=yes</xsl:text>
402              </xsl:attribute>
403              <xsl:value-of select="$other/bugs/@rc_m"/>
404            </xsl:element>)
405          </xsl:if>
406      </td>      </td>
407    </tr>    </tr>
408    <tr class="normalrow" id="bugs_in">    <tr class="normalrow" id="bugs_in">
# Line 352  other-to-%xx, especially % to %25... For Line 410  other-to-%xx, especially % to %25... For
410      <td class="contentcell">      <td class="contentcell">
411        <xsl:element name="a">        <xsl:element name="a">
412          <xsl:attribute name="href">          <xsl:attribute name="href">
413            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
414            <xsl:call-template name="escape-name">            <xsl:value-of select="$escaped-package" />
415              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>            <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=important&amp;sev-inc=normal&amp;repeatmerged=no</xsl:text>
           </xsl:call-template>  
           <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=important&amp;sev-inc=normal</xsl:text>  
416          </xsl:attribute>          </xsl:attribute>
417          <xsl:if test="$hasother">          <xsl:if test="$hasother">
418            <xsl:value-of select="$other/bugs/@normal"/>            <xsl:value-of select="$other/bugs/@normal"/>
419          </xsl:if>          </xsl:if>
420        </xsl:element>        </xsl:element>
421          <xsl:if test="$hasother and $other/bugs/@normal_m">
422            (<xsl:element name="a">
423              <xsl:attribute name="href">
424                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
425                <xsl:value-of select="$escaped-package" />
426                <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=important&amp;sev-inc=normal&amp;repeatmerged=yes</xsl:text>
427              </xsl:attribute>
428              <xsl:value-of select="$other/bugs/@normal_m"/>
429            </xsl:element>)
430          </xsl:if>
431      </td>      </td>
432    </tr>    </tr>
433    <tr class="normalrow" id="bugs_mw">    <tr class="normalrow" id="bugs_mw">
# Line 369  other-to-%xx, especially % to %25... For Line 435  other-to-%xx, especially % to %25... For
435      <td class="contentcell">      <td class="contentcell">
436        <xsl:element name="a">        <xsl:element name="a">
437          <xsl:attribute name="href">          <xsl:attribute name="href">
438            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
439            <xsl:call-template name="escape-name">            <xsl:value-of select="$escaped-package" />
440              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>            <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=minor&amp;sev-inc=wishlist&amp;repeatmerged=no</xsl:text>
           </xsl:call-template>  
           <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=minor&amp;sev-inc=wishlist</xsl:text>  
441          </xsl:attribute>          </xsl:attribute>
442          <xsl:if test="$hasother">          <xsl:if test="$hasother">
443            <xsl:value-of select="$other/bugs/@wishlist"/>            <xsl:value-of select="$other/bugs/@wishlist"/>
444          </xsl:if>          </xsl:if>
445        </xsl:element>        </xsl:element>
446          <xsl:if test="$hasother and $other/bugs/@wishlist_m">
447            (<xsl:element name="a">
448              <xsl:attribute name="href">
449                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
450                <xsl:value-of select="$escaped-package" />
451                <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=minor&amp;sev-inc=wishlist&amp;repeatmerged=yes</xsl:text>
452              </xsl:attribute>
453              <xsl:value-of select="$other/bugs/@wishlist_m"/>
454            </xsl:element>)
455          </xsl:if>
456      </td>      </td>
457    </tr>    </tr>
458    <tr class="normalrow" id="bugs_fp">    <tr class="normalrow" id="bugs_fp">
# Line 386  other-to-%xx, especially % to %25... For Line 460  other-to-%xx, especially % to %25... For
460      <td class="contentcell">      <td class="contentcell">
461        <xsl:element name="a">        <xsl:element name="a">
462          <xsl:attribute name="href">          <xsl:attribute name="href">
463            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
464            <xsl:call-template name="escape-name">            <xsl:value-of select="$escaped-package" />
465              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>            <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=no</xsl:text>
           </xsl:call-template>  
           <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>  
466          </xsl:attribute>          </xsl:attribute>
467          <xsl:if test="$hasother">          <xsl:if test="$hasother">
468            <xsl:value-of select="$other/bugs/@fixed"/>            <xsl:value-of select="$other/bugs/@fixed"/>
469          </xsl:if>          </xsl:if>
470        </xsl:element>        </xsl:element>
471          <xsl:if test="$hasother and $other/bugs/@fixed_m">
472            (<xsl:element name="a">
473              <xsl:attribute name="href">
474                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
475                <xsl:value-of select="$escaped-package" />
476                <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=yes</xsl:text>
477              </xsl:attribute>
478              <xsl:value-of select="$other/bugs/@fixed_m"/>
479            </xsl:element>)
480          </xsl:if>
481      </td>      </td>
482    </tr>    </tr>
483      <xsl:if test="$other/bugs/@gift > 0">
484        <tr class="normalrow" id="bugs_gift">
485          <td class="labelcell"><span class="indented"><a
486                href="http://wiki.debian.org/qa.debian.org/GiftTag">Gift</a>
487              bugs</span></td>
488          <td class="contentcell">
489            <xsl:element name="a">
490              <xsl:attribute name="href">
491                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
492                <xsl:value-of select="$escaped-package" />
493                <xsl:text>&amp;users=debian-qa@lists.debian.org;tag=gift</xsl:text>
494              </xsl:attribute>
495              <xsl:value-of select="$other/bugs/@gift" />
496            </xsl:element>
497          </td>
498        </tr>
499      </xsl:if>
500  </xsl:template>  </xsl:template>
501    
502  <xsl:template name="pts-subscription">  <xsl:template name="pts-subscription">
503    <tr class="titlerow">    <tr class="titlerow">
504      <td class="titlecell" colspan="2">      <td class="titlecell" colspan="2">
505        <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        <a class="titlelink" href="http://www.debian.org/doc/manuals/developers-reference/resources.html#pkg-tracking-system"><acronym title="Package Tracking System">PTS</acronym></a> subscription
506    </td></tr>    </td></tr>
507    <tr class="normalrow">    <tr class="normalrow">
508      <td class="labelcell">Subscribers count</td>      <td class="labelcell">Subscribers count</td>
# Line 421  other-to-%xx, especially % to %25... For Line 520  other-to-%xx, especially % to %25... For
520              <option value="unsubscribe">Unsubscribe</option>              <option value="unsubscribe">Unsubscribe</option>
521              <option value="advanced">Advanced mode</option>              <option value="advanced">Advanced mode</option>
522            </select>            </select>
523            <input type="text" name="email" size="15" value="your email" onFocus="if(email.value=='your email'){{email.value=''}}"/>            <input type="text" name="email" size="15" value="your email"
524                onfocus="if(email.value=='your email'){{email.value=''}}"/>
525            <input type="submit" name="submit" value="Send"/>            <input type="submit" name="submit" value="Send"/>
526          </p>          </p>
527        </form>        </form>
# Line 431  other-to-%xx, especially % to %25... For Line 531  other-to-%xx, especially % to %25... For
531    
532  <xsl:template name="binary-packages">  <xsl:template name="binary-packages">
533    <tr class="titlerow">    <tr class="titlerow">
534      <td class="titlecell" colspan="2">      <td class="titlecell" colspan="2">Binary packages</td>
535        Binary package(s)    </tr>
   </td></tr>  
536    <tr class="normalrow">    <tr class="normalrow">
537      <td class="normalcell" colspan="2" style="text-align: left">      <td class="normalcell" colspan="2" style="text-align: left">
538        <ul>        <ul>
539          <xsl:for-each select="binary/item">          <xsl:for-each select="binary/item">
540            <xsl:sort select="text()"/>            <xsl:sort select="text()"/>
541            <xsl:variable name="pkg" select="text()"/>            <xsl:variable name="pkg" select="text()"/>
542              <xsl:variable name="tooltip"
543                select="concat($pkg, ': ',
544                    $other/descriptions/shortdesc[@package=$pkg])" />
545            <li class="binpkg">            <li class="binpkg">
546              <a class="binpkg" href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>              <a class="binpkg" title="{$tooltip}"
547                  href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>
548              <span style="font-size: 70%">              <span style="font-size: 70%">
549                (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:                (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:
550    
# Line 502  other-to-%xx, especially % to %25... For Line 605  other-to-%xx, especially % to %25... For
605    <tr class="titlerow">    <tr class="titlerow">
606      <td class="titlecell" colspan="2">      <td class="titlecell" colspan="2">
607        Available versions        Available versions
608          <small>
609            <a href="http://qa.debian.org/madison.php?package={$package}"
610              style="font-weight: normal"
611              title="madison">(more...)</a>
612          </small>
613    </td></tr>    </td></tr>
614    
615    <!-- oldstable -->    <!-- oldstable -->
# Line 514  other-to-%xx, especially % to %25... For Line 622  other-to-%xx, especially % to %25... For
622        </td>        </td>
623      </tr>      </tr>
624    </xsl:if>    </xsl:if>
625    <xsl:if test="$hasoldstable-security">    <xsl:if test="$hassecurity-oldstable">
626      <tr class="normalrow">      <tr class="normalrow">
627        <td class="labelcell"><small>Oldstable Security Updates</small></td>        <td class="labelcell"><small>Oldstable Security Updates</small></td>
628        <td class="contentcell">        <td class="contentcell">
629          <xsl:value-of select="document(concat('../base/', $dir, '/oldstable-security.xml'))/source/version"/>          <xsl:value-of select="document(concat('../base/', $dir, '/security-oldstable.xml'))/source/version"/>
630        </td>        </td>
631      </tr>      </tr>
632    </xsl:if>    </xsl:if>
# Line 533  other-to-%xx, especially % to %25... For Line 641  other-to-%xx, especially % to %25... For
641        </td>        </td>
642      </tr>      </tr>
643    </xsl:if>    </xsl:if>
644    <xsl:if test="$hasstable-security">    <xsl:if test="$hassecurity-stable">
645      <tr class="normalrow">      <tr class="normalrow">
646        <td class="labelcell"><small>Stable Security Updates</small></td>        <td class="labelcell"><small>Stable Security Updates</small></td>
647        <td class="contentcell">        <td class="contentcell">
648          <xsl:value-of select="document(concat('../base/', $dir, '/stable-security.xml'))/source/version"/>          <xsl:value-of select="document(concat('../base/', $dir, '/security-stable.xml'))/source/version"/>
649        </td>        </td>
650      </tr>      </tr>
651    </xsl:if>    </xsl:if>
652    <xsl:if test="$hass-p-u">    <xsl:if test="$hasstable-proposed-updates">
653      <tr class="normalrow">      <tr class="normalrow">
654        <td class="labelcell"><small>Stable Proposed Updates</small></td>        <td class="labelcell"><small>Stable Proposed Updates</small></td>
655        <td class="contentcell">        <td class="contentcell">
656          <xsl:value-of select="document(concat('../base/', $dir, '/s-p-u.xml'))/source/version"/>          <xsl:value-of select="document(concat('../base/', $dir,
657                '/stable-proposed-updates.xml'))/source/version" />
658        </td>        </td>
659      </tr>      </tr>
660    </xsl:if>    </xsl:if>
# Line 560  other-to-%xx, especially % to %25... For Line 669  other-to-%xx, especially % to %25... For
669        </td>        </td>
670      </tr>      </tr>
671    </xsl:if>    </xsl:if>
672    <xsl:if test="$hastesting-security">    <xsl:if test="$hassecurity-testing">
673      <tr class="normalrow">      <tr class="normalrow">
674        <td class="labelcell"><small>Testing Security Updates</small></td>        <td class="labelcell"><small>Testing Security Updates</small></td>
675        <td class="contentcell">        <td class="contentcell">
676          <xsl:value-of select="document(concat('../base/', $dir, '/testing-security.xml'))/source/version"/>          <xsl:value-of select="document(concat('../base/', $dir, '/security-testing.xml'))/source/version"/>
677        </td>        </td>
678      </tr>      </tr>
679    </xsl:if>    </xsl:if>
680    <xsl:if test="$hast-p-u">    <xsl:if test="$hastesting-proposed-updates">
681      <tr class="normalrow">      <tr class="normalrow">
682        <td class="labelcell"><small>Testing Proposed Updates</small></td>        <td class="labelcell"><small>Testing Proposed Updates</small></td>
683        <td class="contentcell">        <td class="contentcell">
684          <xsl:value-of select="document(concat('../base/', $dir, '/t-p-u.xml'))/source/version"/>          <xsl:value-of select="document(concat('../base/', $dir,
685                '/testing-proposed-updates.xml'))/source/version" />
686        </td>        </td>
687      </tr>      </tr>
688    </xsl:if>    </xsl:if>
# Line 620  other-to-%xx, especially % to %25... For Line 730  other-to-%xx, especially % to %25... For
730    </xsl:if>    </xsl:if>
731  </xsl:template>  </xsl:template>
732    
733  <xsl:template name="patches">  <xsl:template name="ubuntu">
734    <!-- Patches list [FG] -->    <!-- Patches list [FG] -->
735    <xsl:if test="$other/@patches='yes'">    <xsl:if test="$other/@ubuntu='yes'">
736      <tr class="titlerow">      <tr class="titlerow">
737        <td class="titlecell" colspan="2">        <td class="titlecell" colspan="2"><a
738          Patches            title="Information about Ubuntu for Debian Developers"
739      </td></tr>            href="https://wiki.ubuntu.com/Ubuntu/ForDebianDevelopers">Ubuntu ...</a>
740          </td>
741        </tr>
742      <tr>      <tr>
743        <td class="contentcell" colspan="2" style="text-align: left">        <td class="contentcell" colspan="2" style="text-align: left">
744          <ul>          <ul>
           <xsl:for-each select="$other/patches/item">  
745              <li>              <li>
746                <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>                      Version: <a href="{$other/ubuntu/@url}"><xsl:value-of select="$other/ubuntu/@version"/></a>
747              </li>              </li>
748            </xsl:for-each>            <xsl:if test="$other/ubuntu/patch">
           <xsl:if test="$other/bugs/@patch!='0'">  
749              <li>              <li>
750                <xsl:element name="a">                      <a href="{$other/ubuntu/patch/@url}">Patch for version <xsl:value-of select="$other/ubuntu/patch/@version"/></a>
751                  <xsl:attribute name="href">              </li>
752                    <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>            </xsl:if>
753                    <xsl:call-template name="escape-name">            <xsl:if test="$other/ubuntu/bugs">
754                      <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>              <li>
755                    </xsl:call-template>                      <a href="{$other/ubuntu/bugs/@url}"><xsl:value-of select="$other/ubuntu/bugs/@count"/> open bugs</a>
                   <xsl:text>&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done</xsl:text>  
                 </xsl:attribute>  
                 Patches from BTS (<xsl:value-of select="$other/bugs/@patch"/>)  
               </xsl:element>  
756              </li>              </li>
757            </xsl:if>            </xsl:if>
758          </ul>          </ul>
# Line 687  other-to-%xx, especially % to %25... For Line 793  other-to-%xx, especially % to %25... For
793          </li>          </li>
794          <xsl:if test="architecture!='all'">          <xsl:if test="architecture!='all'">
795            <li>            <li>
796              <a href="http://buildd.debian.org/pkg.cgi?pkg={$escaped-package}">Buildd logs</a>              <xsl:text>Buildd: </xsl:text>
797              <xsl:text> (</xsl:text>              <a href="http://buildd.debian.org/pkg.cgi?pkg={$escaped-package}"
798              <a href="http://experimental.debian.net/build.php?pkg={$escaped-package}">more</a>                title="buildd.debian.org build logs">logs</a>
799                <xsl:text>, </xsl:text>
800                <!-- <a href="http://people.debian.org/~igloo/status.php?packages={$escaped-package}"
801                  title="igloo's build logs on people.debian.org">more</a> -->
802                <a href="http://buildd.debian.org/~jeroen/status/package.php?p={$escaped-package}"
803                  title="jeroen's build logs on buildd.debian.org">more</a>
804                <xsl:text>, </xsl:text>
805                <a href="http://experimental.debian.net/build.php?pkg={$escaped-package}"
806                  title="experimental.debian.net build logs">exp</a>
807              <xsl:text>, </xsl:text>              <xsl:text>, </xsl:text>
808              <a href="http://buildd.debian-ports.org/status/package.php?p={$escaped-package}">ports</a>              <a href="http://buildd.debian-ports.org/status/package.php?p={$escaped-package}"
809              <xsl:text>)</xsl:text>                title="debian ports build logs">ports</a>
810            </li>            </li>
811          </xsl:if>          </xsl:if>
812          <!-- DISABLED until ddtp.debian.org is back up          <!-- DISABLED until ddtp.debian.org is back up
# Line 741  other-to-%xx, especially % to %25... For Line 855  other-to-%xx, especially % to %25... For
855              </xsl:if>              </xsl:if>
856            </li>            </li>
857          </xsl:if>          </xsl:if>
858          <!-- convert maintainer/name to follow lintian.debian.org convention -->          <xsl:if test="$other/@lintian='yes'">
859          <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ~/()&#34; ', &quot;'&quot;)"/>            <xsl:variable name="lintian_url"><xsl:call-template name="mk_lintian_url" /></xsl:variable>
860          <xsl:variable name="_email" select="translate(maintainer/email, $pattern, '_____________________')"/>            <li>
861          <li><a href="http://lintian.debian.org/reports/maintainer/{$_email}.html#{$package}">Lintian report</a></li>              <a href="{$lintian_url}">Lintian report</a>
862                <xsl:if test="$lin_errs + $lin_warns > 0">
863                  <xsl:text> </xsl:text>
864                  <small><span title="(errors, warnings)">(<xsl:value-of select="$lin_errs" />,
865                      <xsl:value-of select="$lin_warns" />)</span></small>
866                </xsl:if>
867              </li>
868            </xsl:if>
869          <li>          <li>
870            <a href="http://qa.debian.org/developer.php?popcon={$escaped-package}">Popcon stats</a>            <a href="http://qa.debian.org/developer.php?popcon={$escaped-package}">Popcon stats</a>
871          </li>          </li>
# Line 760  other-to-%xx, especially % to %25... For Line 881  other-to-%xx, especially % to %25... For
881    
882  <xsl:template name="package-files">  <xsl:template name="package-files">
883    <tr class="titlerow">    <tr class="titlerow">
884      <td class="titlecell" colspan="2">      <td class="titlecell" colspan="2">Source package</td>
885        Source package    </tr>
   </td></tr>  
886    <tr class="titlerow">    <tr class="titlerow">
887      <td class="labelcell">      <td class="labelcell">
888        <xsl:element name="a">        <xsl:element name="a">
# Line 816  other-to-%xx, especially % to %25... For Line 936  other-to-%xx, especially % to %25... For
936    
937  <xsl:template name="todo-list">  <xsl:template name="todo-list">
938    <xsl:variable name="todo">    <xsl:variable name="todo">
939      <xsl:if test="@nmu">      <xsl:call-template name="issue-nmu" />
940        <li>Incorporate and acknowledge the changes from the non maintainer upload.</li>      <xsl:call-template name="issue-lintian" />
941      </xsl:if>      <xsl:call-template name="issue-mentors-pending" />
942      <xsl:if test="not(uploaders)and(priority='standard' or priority='required' or priority='important')">      <xsl:call-template name="issue-comaintenance" />
943        <li>The package is of priority standard or higher, you should really find some co-maintainers.</li>      <xsl:call-template name="issue-outdate-stdver" />
944      </xsl:if>      <xsl:call-template name="issue-new-upstream" />
945      <xsl:if test="not(starts-with(standards-version, $lastsv))">      <xsl:call-template name="issue-patches" />
       <li>The package should be updated to follow the last version of  
         <a href="http://www.debian.org/doc/debian-policy/">Debian Policy</a> (Standards-Version  
         <xsl:value-of select="$lastsv"/> instead of  
         <xsl:value-of select="standards-version"/>).</li>  
     </xsl:if>  
946      <xsl:if test="$hasother">      <xsl:if test="$hasother">
947        <xsl:for-each select="$other/todo/item">        <xsl:for-each select="$other/todo/item">
948          <xsl:call-template name="outputitem"/>          <xsl:call-template name="outputitem" />
949        </xsl:for-each>        </xsl:for-each>
       <!-- new upstream version goes in todo [FG] -->  
       <!-- disable watch rendering, the info are out of date since long, see #400480 for example -->  
       <!--  
       <xsl:if test="$other/@watch='yes' and $other/watch/@new!='0'">  
         <li>A new upstream version was found:  
           (<xsl:value-of select="$other/watch/@new"/>). <a href="{$other/watch/@url}"><xsl:value-of select="$other/watch/@url"/></a></li>  
       </xsl:if>  
       -->  
       <xsl:if test="$other/bugs/@patch!='0'">  
         <li>The Bug Tracking System contains  
           <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data={$escaped-package}&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done">  
             <xsl:value-of select="$other/bugs/@patch"/> patch<xsl:if test="$other/bugs/@patch!='1'">es</xsl:if>  
           </a>, you should include  
           <xsl:if test="$other/bugs/@patch!='1'">them</xsl:if>  
           <xsl:if test="$other/bugs/@patch='1'">it</xsl:if>.  
         </li>  
       </xsl:if>  
950      </xsl:if>      </xsl:if>
951    </xsl:variable>    </xsl:variable>
952    <xsl:if test="count($todo)>0 and string($todo)!=''">    <xsl:if test="count($todo)>0 and string($todo)!=''">
953      <tr class="titlerow">      <tr class="titlerow">
954        <td class="titlecell" id="todo">        <td class="titlecell" id="todo">Todo</td>
955          Todo      </tr>
     </td></tr>  
956      <tr class="normalrow">      <tr class="normalrow">
957        <td class="contentcell2">        <td class="contentcell2"><ul><xsl:copy-of select="$todo"/></ul></td>
         <ul>  
           <xsl:copy-of select="$todo"/>  
         </ul>  
       </td>  
958      </tr>      </tr>
959    </xsl:if>    </xsl:if>
960  </xsl:template>  </xsl:template>
961    
962  <xsl:template name="problems">  <xsl:template name="problems">
963    <xsl:variable name="problems">    <xsl:variable name="problems">
964      <xsl:if test="$hasexcuse and document(concat('../base/', $dir, '/excuse.xml'))/excuse/@problematic">      <xsl:call-template name="issue-testing-excuses" />
965        <li>The package has not yet entered <a      <xsl:call-template name="issue-piuparts" />
966            href="http://ftp-master.debian.org/testing/update_excuses.html.gz#{$package}">testing</a>      <xsl:call-template name="issue-ancient-stdver" />
967          even though the <xsl:value-of select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/@limit"/>-day      <xsl:call-template name="issue-item-dead-package" />
968          delay is over.      <xsl:call-template name="issue-item-override-disparity" />
969          <a href="http://release.debian.org/migration/testing.pl?package={$escaped-package}">Check why</a>.</li>      <xsl:call-template name="issue-item-help-bugs" />
970      </xsl:if>      <xsl:call-template name="issue-item-wnpp" />
971      <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">      <!-- <xsl:call-template name="issue-item-watch-failure" /> -->
972        <li>The package is severly out of date with respect to the Debian      <xsl:call-template name="issue-item-dehs-failure" />
         Policy. Latest version is <xsl:value-of select="$lastsv"/>  
         and your package only follows  
         <xsl:value-of select="standards-version"/>...</li>  
     </xsl:if>  
     <xsl:if test="@release!='unstable' and @release!='experimental'">  
       <li>This package is neither part of unstable nor experimental. This  
         probably means that the package <a  
           href="http://ftp-master.debian.org/removals.txt">has been removed</a> (or  
         has been renamed). Thus the information here is of little interest ...  
         the package is going to disappear unless someone takes it over and  
         reintroduces it into unstable.</li>  
     </xsl:if>  
973      <xsl:if test="$hasother">      <xsl:if test="$hasother">
   
       <!-- Override disparity handling. [JvW] -->  
       <xsl:if test="$other/@override='yes'">  
         <xsl:for-each select="$other/override/group">  
           <li>There were override disparities found in suite <xsl:value-of  
               select="@suite"/>:  
             <ul>  
               <xsl:for-each select="disparity">  
                 <li><xsl:value-of select="text()"/></li>  
               </xsl:for-each>  
             </ul>  
           </li>  
         </xsl:for-each>  
       </xsl:if>  
   
       <!-- Wnpp handling. [PvR] -->  
       <xsl:if test="$other/@wnpp='yes'">  
         <li>  
           <xsl:choose>  
             <xsl:when test="$other/wnpp/@type='O'">  
               <xsl:choose>  
                 <xsl:when test="@release!='unstable' and @release!='experimental'">  
                   The WNPP database contains an O (Orphaned) entry for  
                   this package. This is probably an error, as it is neither part of  
                   unstable nor experimental.  
                 </xsl:when>  
                 <xsl:otherwise>  
                   <span style="font-weight: bold">This package has been orphaned</span>.  
                   This means that it does not have a real maintainer at the  
                   moment. Please consider adopting this package if you are interested in it.  
                 </xsl:otherwise>  
               </xsl:choose>  
             </xsl:when>  
             <xsl:when test="$other/wnpp/@type='ITA'">  
               <xsl:choose>  
                 <xsl:when test="@release!='unstable' and @release!='experimental'">  
                   The WNPP database contains an ITA (Intent To Adopt) entry for  
                   this package. This is probably an error, as it is neither part of  
                   unstable nor experimental.  
                 </xsl:when>  
                 <xsl:otherwise>  
                   This package has been orphaned, but someone intends to maintain it.  
                 </xsl:otherwise>  
               </xsl:choose>  
             </xsl:when>  
             <xsl:when test="$other/wnpp/@type='RFA'">  
               <xsl:choose>  
                 <xsl:when test="@release!='unstable' and @release!='experimental'">  
                   The WNPP database contains an RFA (Request For Adoption) entry for  
                   this package. This is probably an error, as it is neither part of  
                   unstable nor experimental.  
                 </xsl:when>  
                 <xsl:otherwise>  
                   The current maintainer is looking for someone who can take over  
                   maintenance of this package. If you are interested in this package,  
                   please consider taking it over. Alternatively you may  
                   want to be co-maintainer in order to help the actual maintainer.  
                 </xsl:otherwise>  
               </xsl:choose>  
             </xsl:when>  
             <xsl:when test="$other/wnpp/@type='RFH'">  
               <xsl:choose>  
                 <xsl:when test="@release!='unstable' and @release!='experimental'">  
                   The WNPP database contains an RFH (Request For Help) entry for  
                   this package. This is probably an error, as it is neither part of  
                   unstable nor experimental.  
                 </xsl:when>  
                 <xsl:otherwise>  
                   The current maintainer is looking for someone who can help with the  
                   maintenance of this package. If you are interested in this package,  
                   please consider helping out. One way you can help is offer to be a  
                   co-maintainer or triage bugs in the bts.  
                 </xsl:otherwise>  
               </xsl:choose>  
             </xsl:when>  
             <xsl:when test="$other/wnpp/@type='ITP'">  
               <xsl:choose>  
                 <xsl:when test="@release!='unstable' and @release!='experimental'">  
                   The WNPP database contains an ITP (Intent To Package). This probably  
                   means that somebody is going to reintroduce this package into unstable.  
                 </xsl:when>  
                 <xsl:otherwise>  
                   The WNPP database contains an ITP (Intent To Package) entry for  
                   this package. This is probably an error, as it has already been  
                   packaged.  
                 </xsl:otherwise>  
               </xsl:choose>  
             </xsl:when>  
             <xsl:when test="$other/wnpp/@type='RFP'">  
               <xsl:choose>  
                 <xsl:when test="@release!='unstable' and @release!='experimental'">  
                   The WNPP database contains an RFP (Request For Package). This probably  
                   means that somebody would like to see this package reintroduced into  
                   unstable by a volunteer.  
                 </xsl:when>  
                 <xsl:otherwise>  
                   The WNPP database contains an RFP (Request For Package) entry  
                   for this package.  This is probably an error, as it has already  
                   been packaged.  
                 </xsl:otherwise>  
               </xsl:choose>  
             </xsl:when>  
             <xsl:when test="$other/wnpp/@type='RM'">  
               <span style="font-weight: bold">This package has been requested to be  
                 removed</span>.  
               This means that, when this request gets processed by an ftp-master, this  
               package will no longer be in unstable, and will automatically be removed  
               from testing too afterwards. If for some reason you want keep this  
               package in unstable, please discuss so in the bug.  
             </xsl:when>  
             <xsl:otherwise>  
               The WNPP database contains an entry for this package,  
               but it is unclear what kind of entry it is. This is probably an error.  
             </xsl:otherwise>  
           </xsl:choose>  
           <xsl:variable name="bn" select="$other/wnpp/@bugnumber"/>  
           Please see bug number <a href="http://bugs.debian.org/{$bn}">  
             #<xsl:value-of select="$bn"/></a> for more information.  
         </li>  
       </xsl:if>  
   
       <!-- uscan output if present [FG] -->  
       <!-- disable watch rendering, see above -->  
       <!--  
       <xsl:if test="$other/@watch='yes'">  
         <li>  
           <xsl:if test="$other/watch/@warning!=''">  
             uscan had problems while searching for a new upstream version: <xsl:value-of select="$other/watch/@warning"/>  
           </xsl:if>  
         </li>  
       </xsl:if>  
       -->  
   
       <!-- Misc problems reported -->  
974        <xsl:for-each select="$other/problems/item">        <xsl:for-each select="$other/problems/item">
975          <xsl:call-template name="outputitem"/>          <xsl:call-template name="outputitem"/>
976        </xsl:for-each>        </xsl:for-each>
# Line 1031  other-to-%xx, especially % to %25... For Line 978  other-to-%xx, especially % to %25... For
978    </xsl:variable>    </xsl:variable>
979    <xsl:if test="count($problems)>0 and string($problems)!=''">    <xsl:if test="count($problems)>0 and string($problems)!=''">
980      <tr class="titlerow">      <tr class="titlerow">
981        <td class="titlecell" id="problems">        <td class="titlecell" id="problems">Problems</td>
982          Problems      </tr>
     </td></tr>  
983      <tr class="normalrow">      <tr class="normalrow">
984        <td class="contentcell2">        <td class="contentcell2"><ul><xsl:copy-of select="$problems"/></ul></td>
         <ul><xsl:copy-of select="$problems"/></ul>  
       </td>  
985      </tr>      </tr>
986    </xsl:if>    </xsl:if>
987  </xsl:template>  </xsl:template>
988    
989  <xsl:template name="testing-status">  <xsl:template name="testing-status">
990    <xsl:if test="$hasexcuse">    <xsl:if test="$hasexcuse or $other/@transitions='yes'">
991      <tr class="titlerow">      <tr class="titlerow">
992        <td class="titlecell">        <td class="titlecell">
993          Testing status          Testing status
994      </td></tr>      </td></tr>
995      </xsl:if>
996      <xsl:if test="$other/@transitions='yes'">
997        <xsl:variable name="translist">
998          <xsl:for-each select="$other/transitions/transition">
999            <xsl:value-of select="@name" />
1000            <xsl:if test="position() != last()">
1001              <xsl:text> </xsl:text>
1002            </xsl:if>
1003          </xsl:for-each>
1004        </xsl:variable>
1005        <xsl:variable name="transno" select="count($other/transitions/transition)" />
1006      <tr class="normalrow">      <tr class="normalrow">
1007        <td class="contentcell2" style="text-align: left">        <td class="contentcell2" style="text-align: left">
1008          <ul>          <ul>
1009            <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">            <!-- XXX unappropriate <ul>, just to make the text looks like other
1010              <xsl:call-template name="outputitem"/>              boxes, should be fixed on the CSS side (getting rid of <ul>) -->
1011            </xsl:for-each>                <li>This package is part of <em><xsl:value-of select="$transno" />
1012          </ul>                    ongoing testing transition<xsl:if test="$transno != '1'">s</xsl:if>
1013        </td>                  </em> (namely: <tt><xsl:value-of select="$translist" /></tt>). For
1014      </tr>                  more information see the
1015    </xsl:if>                  <a href="http://ftp-master.debian.org/transitions.yaml">transition
1016  </xsl:template>                    status file</a>.<br />
1017                    <em>Uploads to unstable will be rejected</em> while transitions are
1018  <xsl:template name="static-info">                  ongoing; you might want to upload to experimental in the
1019    <xsl:call-template name="output-static">                  meantime, or contact <tt><a href="mailto:debian-release@lists.debian.org">debian-release</a></tt>
1020      <xsl:with-param name="static" select="$static" />                  if an upload is really necessary.
1021    </xsl:call-template>                </li>
1022  </xsl:template>              </ul>
1023              </td>
1024            </tr>
1025          </xsl:if>
1026          <xsl:if test="$hasexcuse">
1027            <tr class="normalrow">
1028              <td class="contentcell2" style="text-align: left">
1029                <a title="reasons why the package is not moving to testing"
1030                  href="http://qa.debian.org/excuses.php?package={$package}">Excuses</a>:
1031                <ul class="testing-excuses">
1032                  <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
1033                    <xsl:call-template name="outputitem"/>
1034                  </xsl:for-each>
1035                </ul>
1036              </td>
1037            </tr>
1038          </xsl:if>
1039        </xsl:template>
1040    
1041  <xsl:template name="latest-news">      <xsl:template name="static-info">
1042    <xsl:call-template name="output-news">        <xsl:call-template name="output-static">
1043      <xsl:with-param name="news" select="$news" />          <xsl:with-param name="static" select="$static" />
1044    </xsl:call-template>        </xsl:call-template>
1045  </xsl:template>      </xsl:template>
1046    
1047  <xsl:variable name="static">      <xsl:template name="latest-news">
1048    <xsl:if test="$hasnews">        <xsl:call-template name="output-news">
1049      <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">          <xsl:with-param name="news" select="$news" />
1050        <xsl:call-template name="outputitem"/>        </xsl:call-template>
1051      </xsl:for-each>      </xsl:template>
   </xsl:if>  
 </xsl:variable>  
1052    
1053  <xsl:variable name="news">      <xsl:variable name="static">
1054    <xsl:if test="$hasnews">        <xsl:if test="$hasnews">
1055      <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">          <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">
1056        <xsl:call-template name="outputitem"/>            <xsl:call-template name="outputitem"/>
1057      </xsl:for-each>          </xsl:for-each>
1058    </xsl:if>        </xsl:if>
1059  </xsl:variable>      </xsl:variable>
1060    
1061  <!-- All the work is done in a single template -->      <xsl:variable name="news">
1062  <xsl:template match="source">        <xsl:if test="$hasnews">
1063            <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">
1064              <xsl:call-template name="outputitem"/>
1065            </xsl:for-each>
1066          </xsl:if>
1067        </xsl:variable>
1068    
1069    <!-- Start of html -->      <!-- All the work is done in a single template -->
1070    <xsl:text disable-output-escaping="yes">      <xsl:template match="source">
   &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="User selected" rel="stylesheet" href="../common/default.css"/>  
   <link type="text/css" title="Official" rel="alternate stylesheet" href="../common/revamp.css"/>  
   <link type="text/css" title="Legacy PTS" rel="alternate stylesheet" href="../common/pts.css"/>  
   <link type="text/css" title="Compact rendering" rel="alternate stylesheet" href="../common/compact.css"/>  
   <script type="text/javascript" src="../common/pts.js"></script>  
   <xsl:if test="count($news)>0 and string($news)!=''">  
     <link rel="alternate" type="application/rss+xml" title="RSS"  
       href="{$package}/news.rss20.xml" />  
   </xsl:if>  
   <title>Overview of <xsl:value-of select="$package"/> source package</title>  
   </head>  
   <body onload="javascript:onLoad();">  
   
   <div id="quickforms" style="float: right;">  
   <form method="get" action="/common/index.html">  
   <p><span title="Jump to package">Go:</span>  
   <input type="text" name="src" value=""/></p>  
   </form>  
   <form id="csspref-form" method="get" action="/common/set-csspref.php">  
   <p>Switch style: <select name="csspref" onchange="javascript:onChangeStyle();">  
   <option value="revamp.css">Default</option>  
   <option value="compact.css">Compact</option>  
   <option value="pts.css">Legacy</option>  
   </select></p>  
   </form>  
   
   </div>  
   <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>  
1071    
1072    <div id="body">        <!-- Start of html -->
1073    <xsl:choose>        <html>
1074    <xsl:when test="$removed='yes'">          <head>
1075    <!-- REMOVED PACKAGE -->            <meta name="ROBOTS" content="NOFOLLOW"/>
1076    <p>This package is not part of any Debian distribution. Thus you won't            <link type="text/css" title="User selected" rel="stylesheet" href="../common/default.css"/>
1077    find much information here. The package is either very new and hasn't            <link type="text/css" title="Official" rel="alternate stylesheet" href="../common/revamp.css"/>
1078    appeared on mirrors yet, or it's an old package that eventually got removed.            <link type="text/css" title="Legacy PTS" rel="alternate stylesheet" href="../common/pts.css"/>
1079    The old news are kept for historic purpose only.</p>            <link type="text/css" title="Compact rendering" rel="alternate stylesheet" href="../common/compact.css"/>
1080              <script type="text/javascript" src="../common/pts.js"></script>
1081    <table class="righttable">            <xsl:if test="count($news)>0 and string($news)!=''">
1082      <xsl:call-template name="static-info" />              <link rel="alternate" type="application/rss+xml" title="RSS"
1083      <xsl:call-template name="latest-news" />                href="{$package}/news.rss20.xml" />
1084    </table>            </xsl:if>
1085              <title>Overview of <xsl:value-of select="$package"/> source package</title>
1086    <!-- END REMOVED PACKAGE -->          </head>
1087    </xsl:when>          <body onload="javascript:onLoad();">
1088    <xsl:otherwise>  
1089    <!-- NON REMOVED PACKAGE -->            <div id="quickforms" style="float: right;">
1090                <form method="get" action="/common/index.html">
1091    <table class="containertable">                <p><span title="Jump to package">Go:</span>
1092    <tr class="containerrow" valign="top">                  <input type="text" name="src" value=""/></p>
1093    <td class="containercell">              </form>
1094    <!-- LEFT SIDE -->              <form id="csspref-form" method="get" action="/common/set-csspref.php">
1095    <table class="lefttable">                <p>Switch style: <select name="csspref" onchange="javascript:onChangeStyle();">
1096      <xsl:call-template name="general-information" />                    <option value="revamp.css">Default</option>
1097      <xsl:call-template name="available-versions" />                    <option value="compact.css">Compact</option>
1098    </table>                    <option value="pts.css">Legacy</option>
1099    <table class="lefttable">                </select></p>
1100      <xsl:call-template name="package-files" />              </form>
     <xsl:call-template name="binary-packages" />  
   </table>  
   <!-- END LEFT SIDE -->  
   </td><td class="containercell">  
   <!-- RIGHT SIDE -->  
   <table class="righttable">  
     <xsl:call-template name="todo-list" />  
     <xsl:call-template name="problems" />  
   </table>  
   <table class="righttable">  
     <xsl:call-template name="testing-status" />  
     <xsl:call-template name="static-info" />  
     <xsl:call-template name="latest-news" />  
   </table>  
   <!-- END RIGHT SIDE -->  
   </td><td class="containercell">  
   <table class="lefttable">  
     <xsl:call-template name="bugs-count" />  
     <xsl:call-template name="pts-subscription" />  
   </table>  
   <table class="lefttable">  
     <xsl:call-template name="patches" />  
   </table>  
   <table class="lefttable">  
     <xsl:call-template name="other-links" />  
   </table>  
   </td></tr>  
   </table>  
1101    
1102    <!-- END NON REMOVED PACKAGE -->            </div>
1103    </xsl:otherwise>            <h1>Overview of
1104    </xsl:choose>              <xsl:element name="a">
1105                  <xsl:attribute name="href">
1106                    <xsl:text>http://packages.debian.org/src:</xsl:text>
1107                    <xsl:value-of select="$package"/>
1108                  </xsl:attribute>
1109                  <xsl:value-of select="$package"/>
1110                </xsl:element>
1111                source package</h1>
1112    
1113    <hr/>            <div id="body">
1114    <div class="footer">              <xsl:choose>
1115      <p>                <xsl:when test="$removed='yes'">
1116        <a href="http://www.debian.org">Debian</a> Package Tracking System -                  <!-- REMOVED PACKAGE -->
1117        Copyright 2002-2008 Raphaël Hertzog and others.<br/>                  <p>This package is not part of any Debian distribution. Thus you won't
1118        Report problems to the <a href="http://bugs.debian.org/qa.debian.org"                    find much information here. The package is either very new and hasn't
1119          ><tt>qa.debian.org</tt> pseudopackage</a> in the <a                    appeared on mirrors yet, or it's an old package that eventually got removed.
1120          href="http://bugs.debian.org">Debian <acronym title="Bug Tracking                    The old news are kept for historic purpose only.</p>
1121            System">BTS</acronym></a>.<br/>  
1122        Last modified : <xsl:value-of select="$date"/>.                  <table class="righttable">
1123      </p>                    <xsl:call-template name="static-info" />
1124    </div>                    <xsl:call-template name="latest-news" />
1125    </div>                  </table>
1126    </body>  
1127    </html>                  <!-- END REMOVED PACKAGE -->
1128  </xsl:template>                </xsl:when>
1129                  <xsl:otherwise>
1130                    <!-- NON REMOVED PACKAGE -->
1131    
1132                    <table class="containertable">
1133                      <tr class="containerrow" valign="top">
1134                        <td class="containercell">
1135                          <!-- LEFT SIDE -->
1136                          <table class="lefttable">
1137                            <xsl:call-template name="general-information" />
1138                            <xsl:call-template name="available-versions" />
1139                          </table>
1140                          <table class="lefttable">
1141                            <xsl:call-template name="package-files" />
1142                            <xsl:call-template name="binary-packages" />
1143                          </table>
1144                          <!-- END LEFT SIDE -->
1145                          </td><td class="containercell">
1146                          <!-- RIGHT SIDE -->
1147                          <table class="righttable">
1148                            <xsl:call-template name="todo-list" />
1149                            <xsl:call-template name="problems" />
1150                          </table>
1151                          <table class="righttable">
1152                            <xsl:call-template name="testing-status" />
1153                            <xsl:call-template name="static-info" />
1154                            <xsl:call-template name="latest-news" />
1155                          </table>
1156                          <!-- END RIGHT SIDE -->
1157                          </td><td class="containercell">
1158                          <table class="lefttable">
1159                            <xsl:call-template name="bugs-count" />
1160                            <xsl:call-template name="pts-subscription" />
1161                          </table>
1162                          <table class="lefttable">
1163                            <xsl:call-template name="other-links" />
1164                          </table>
1165                          <table class="lefttable" id="ubuntubox">
1166                            <xsl:call-template name="ubuntu" />
1167                          </table>
1168                      </td></tr>
1169                    </table>
1170    
1171                    <!-- END NON REMOVED PACKAGE -->
1172                  </xsl:otherwise>
1173                </xsl:choose>
1174    
1175                <hr/>
1176                <div class="footer">
1177                  <table width="100%">
1178                    <tr>
1179                      <td>
1180                        <p>
1181                          <em><a href="http://www.debian.org">Debian</a> Package
1182                            Tracking System</em> - Copyright 2002-2008 Raphaël
1183                          Hertzog and others.<br/> Report problems to the
1184                          <a href="http://bugs.debian.org/qa.debian.org"><tt>qa.debian.org</tt>
1185                            pseudopackage</a> in the <a href="http://bugs.debian.org">Debian
1186                            <acronym title="Bug Tracking System">BTS</acronym></a>.<br/>
1187                          Last modified: <xsl:value-of select="$date"/>.
1188                        </p>
1189                      </td>
1190                      <td>
1191                        <a href="http://validator.w3.org/check?uri=referer"><img
1192                            src="http://www.w3.org/Icons/valid-xhtml10-blue"
1193                            alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>
1194                      </td>
1195                    </tr>
1196                  </table>
1197                </div>
1198              </div>
1199            </body>
1200          </html>
1201        </xsl:template>
1202    
1203  </xsl:stylesheet>  </xsl:stylesheet>

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

  ViewVC Help
Powered by ViewVC 1.1.5