/[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 1831 by zack, Tue Feb 19 15:46:04 2008 UTC revision 2058 by zack, Sat Nov 29 15:20:51 2008 UTC
# Line 7  Line 7 
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 19  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 37  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 105  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 126  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 147  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 228  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 244  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 252  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 260  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 311  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 336  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 353  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 370  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 387  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 422  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 432  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 499  other-to-%xx, especially % to %25... For Line 601  other-to-%xx, especially % to %25... For
601    </ul></td></tr>    </ul></td></tr>
602  </xsl:template>  </xsl:template>
603    
604    <xsl:template name="output-version">
605      <xsl:param name="suite" select="''" />
606      <xsl:param name="link" select="'yes'" />
607      <xsl:variable name="version">
608        <span class="srcversion" title="{$suite}">
609          <xsl:value-of select="document(concat('../base/', $dir, '/', $suite,
610                                '.xml'))/source/version"/>
611        </span>
612      </xsl:variable>
613      <xsl:choose>
614        <xsl:when test="$link='yes'">
615          <a href="http://packages.debian.org/source/{$suite}/{$package}">
616            <xsl:copy-of select="$version" />
617          </a>
618        </xsl:when>
619        <xsl:otherwise>
620          <xsl:copy-of select="$version" />
621        </xsl:otherwise>
622      </xsl:choose>
623    </xsl:template>
624    
625  <xsl:template name="available-versions">  <xsl:template name="available-versions">
626    <tr class="titlerow">    <tr class="titlerow">
627      <td class="titlecell" colspan="2">      <td class="titlecell" colspan="2">
628        Available versions        Available versions
629          <small>
630            <a href="http://qa.debian.org/madison.php?package={$package}"
631              style="font-weight: normal"
632              title="madison">(more...)</a>
633          </small>
634    </td></tr>    </td></tr>
635    
636    <!-- oldstable -->    <!-- oldstable -->
# Line 510  other-to-%xx, especially % to %25... For Line 638  other-to-%xx, especially % to %25... For
638      <tr class="normalrow">      <tr class="normalrow">
639        <td class="labelcell"><a href="http://www.debian.org/releases/sarge/">Oldstable</a></td>        <td class="labelcell"><a href="http://www.debian.org/releases/sarge/">Oldstable</a></td>
640        <td class="contentcell">        <td class="contentcell">
641          <a href="http://packages.debian.org/source/oldstable/{$package}"><xsl:value-of          <xsl:call-template name="output-version">
642              select="document(concat('../base/', $dir, '/oldstable.xml'))/source/version"/></a>            <xsl:with-param name="suite">oldstable</xsl:with-param>
643            </xsl:call-template>
644        </td>        </td>
645      </tr>      </tr>
646    </xsl:if>    </xsl:if>
647    <xsl:if test="$hasoldstable-security">    <xsl:if test="$hassecurity-oldstable">
648      <tr class="normalrow">      <tr class="normalrow">
649        <td class="labelcell"><small>Oldstable Security Updates</small></td>        <td class="labelcell"><small>Oldstable Security Updates</small></td>
650        <td class="contentcell">        <td class="contentcell">
651          <xsl:value-of select="document(concat('../base/', $dir, '/oldstable-security.xml'))/source/version"/>          <xsl:call-template name="output-version">
652              <xsl:with-param name="suite">security-oldstable</xsl:with-param>
653              <xsl:with-param name="link">no</xsl:with-param>
654            </xsl:call-template>
655        </td>        </td>
656      </tr>      </tr>
657    </xsl:if>    </xsl:if>
# Line 529  other-to-%xx, especially % to %25... For Line 661  other-to-%xx, especially % to %25... For
661      <tr class="normalrow">      <tr class="normalrow">
662        <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>        <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>
663        <td class="contentcell">        <td class="contentcell">
664          <a href="http://packages.debian.org/source/stable/{$package}"><xsl:value-of          <xsl:call-template name="output-version">
665              select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/></a>            <xsl:with-param name="suite">stable</xsl:with-param>
666            </xsl:call-template>
667        </td>        </td>
668      </tr>      </tr>
669    </xsl:if>    </xsl:if>
670    <xsl:if test="$hasstable-security">    <xsl:if test="$hassecurity-stable">
671      <tr class="normalrow">      <tr class="normalrow">
672        <td class="labelcell"><small>Stable Security Updates</small></td>        <td class="labelcell"><small>Stable Security Updates</small></td>
673        <td class="contentcell">        <td class="contentcell">
674          <xsl:value-of select="document(concat('../base/', $dir, '/stable-security.xml'))/source/version"/>          <xsl:call-template name="output-version">
675              <xsl:with-param name="suite">security-stable</xsl:with-param>
676              <xsl:with-param name="link">no</xsl:with-param>
677            </xsl:call-template>
678        </td>        </td>
679      </tr>      </tr>
680    </xsl:if>    </xsl:if>
681    <xsl:if test="$hass-p-u">    <xsl:if test="$hasstable-proposed-updates">
682      <tr class="normalrow">      <tr class="normalrow">
683        <td class="labelcell"><small>Stable Proposed Updates</small></td>        <td class="labelcell"><small>Stable Proposed Updates</small></td>
684        <td class="contentcell">        <td class="contentcell">
685          <xsl:value-of select="document(concat('../base/', $dir, '/s-p-u.xml'))/source/version"/>          <xsl:call-template name="output-version">
686              <xsl:with-param name="suite">stable-proposed-updates</xsl:with-param>
687              <xsl:with-param name="link">no</xsl:with-param>
688            </xsl:call-template>
689        </td>        </td>
690      </tr>      </tr>
691    </xsl:if>    </xsl:if>
# Line 556  other-to-%xx, especially % to %25... For Line 695  other-to-%xx, especially % to %25... For
695      <tr class="normalrow">      <tr class="normalrow">
696        <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>
697        <td class="contentcell">        <td class="contentcell">
698          <a href="http://packages.debian.org/source/testing/{$package}"><xsl:value-of          <xsl:call-template name="output-version">
699              select="document(concat('../base/', $dir, '/testing.xml'))/source/version"/></a>            <xsl:with-param name="suite">testing</xsl:with-param>
700            </xsl:call-template>
701        </td>        </td>
702      </tr>      </tr>
703    </xsl:if>    </xsl:if>
704    <xsl:if test="$hastesting-security">    <xsl:if test="$hassecurity-testing">
705      <tr class="normalrow">      <tr class="normalrow">
706        <td class="labelcell"><small>Testing Security Updates</small></td>        <td class="labelcell"><small>Testing Security Updates</small></td>
707        <td class="contentcell">        <td class="contentcell">
708          <xsl:value-of select="document(concat('../base/', $dir, '/testing-security.xml'))/source/version"/>          <xsl:call-template name="output-version">
709              <xsl:with-param name="suite">security-testing</xsl:with-param>
710              <xsl:with-param name="link">no</xsl:with-param>
711            </xsl:call-template>
712        </td>        </td>
713      </tr>      </tr>
714    </xsl:if>    </xsl:if>
715    <xsl:if test="$hast-p-u">    <xsl:if test="$hastesting-proposed-updates">
716      <tr class="normalrow">      <tr class="normalrow">
717        <td class="labelcell"><small>Testing Proposed Updates</small></td>        <td class="labelcell"><small>Testing Proposed Updates</small></td>
718        <td class="contentcell">        <td class="contentcell">
719          <xsl:value-of select="document(concat('../base/', $dir, '/t-p-u.xml'))/source/version"/>          <xsl:call-template name="output-version">
720              <xsl:with-param name="suite">testing-proposed-updates</xsl:with-param>
721              <xsl:with-param name="link">no</xsl:with-param>
722            </xsl:call-template>
723        </td>        </td>
724      </tr>      </tr>
725    </xsl:if>    </xsl:if>
# Line 583  other-to-%xx, especially % to %25... For Line 729  other-to-%xx, especially % to %25... For
729      <tr class="normalrow">      <tr class="normalrow">
730        <td class="labelcell">Unstable</td>        <td class="labelcell">Unstable</td>
731        <td class="contentcell">        <td class="contentcell">
732          <a href="http://packages.debian.org/source/unstable/{$package}"><xsl:value-of          <xsl:call-template name="output-version">
733              select="document(concat('../base/', $dir, '/unstable.xml'))/source/version"/></a>            <xsl:with-param name="suite">unstable</xsl:with-param>
734            </xsl:call-template>
735        </td>        </td>
736      </tr>      </tr>
737    </xsl:if>    </xsl:if>
# Line 594  other-to-%xx, especially % to %25... For Line 741  other-to-%xx, especially % to %25... For
741      <tr class="normalrow">      <tr class="normalrow">
742        <td class="labelcell">Experimental</td>        <td class="labelcell">Experimental</td>
743        <td class="contentcell">        <td class="contentcell">
744          <a href="http://packages.debian.org/source/experimental/{$package}"><xsl:value-of          <xsl:call-template name="output-version">
745              select="document(concat('../base/', $dir, '/experimental.xml'))/source/version"/></a>            <xsl:with-param name="suite">experimental</xsl:with-param>
746            </xsl:call-template>
747        </td>        </td>
748      </tr>      </tr>
749    </xsl:if>    </xsl:if>
# Line 605  other-to-%xx, especially % to %25... For Line 753  other-to-%xx, especially % to %25... For
753      <tr class="normalrow">      <tr class="normalrow">
754        <td class="labelcell">Secure testing</td>        <td class="labelcell">Secure testing</td>
755        <td class="contentcell">        <td class="contentcell">
756          <xsl:value-of select="document(concat('../base/', $dir, '/secure-testing.xml'))/source/version"/>          <xsl:call-template name="output-version">
757              <xsl:with-param name="suite">secure-testing</xsl:with-param>
758              <xsl:with-param name="link">no</xsl:with-param>
759            </xsl:call-template>
760        </td>        </td>
761      </tr>      </tr>
762    </xsl:if>    </xsl:if>
# Line 615  other-to-%xx, especially % to %25... For Line 766  other-to-%xx, especially % to %25... For
766      <tr class="normalrow">      <tr class="normalrow">
767        <td class="labelcell">Volatile</td>        <td class="labelcell">Volatile</td>
768        <td class="contentcell">        <td class="contentcell">
769          <xsl:value-of select="document(concat('../base/', $dir, '/volatile.xml'))/source/version"/>          <xsl:call-template name="output-version">
770              <xsl:with-param name="suite">volatile</xsl:with-param>
771              <xsl:with-param name="link">no</xsl:with-param>
772            </xsl:call-template>
773        </td>        </td>
774      </tr>      </tr>
775    </xsl:if>    </xsl:if>
776  </xsl:template>  </xsl:template>
777    
778  <xsl:template name="patches">  <xsl:template name="ubuntu">
779    <!-- Patches list [FG] -->    <!-- Patches list [FG] -->
780    <xsl:if test="$other/@patches='yes'">    <xsl:if test="$other/@ubuntu='yes'">
781      <tr class="titlerow">      <tr class="titlerow">
782        <td class="titlecell" colspan="2">        <td class="titlecell" colspan="2"><a
783          Patches            title="Information about Ubuntu for Debian Developers"
784      </td></tr>            href="https://wiki.ubuntu.com/Ubuntu/ForDebianDevelopers">Ubuntu ...</a>
785          </td>
786        </tr>
787      <tr>      <tr>
788        <td class="contentcell" colspan="2" style="text-align: left">        <td class="contentcell" colspan="2" style="text-align: left">
789          <ul>          <ul>
           <xsl:for-each select="$other/patches/item">  
790              <li>              <li>
791                <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>
792              </li>              </li>
793            </xsl:for-each>            <xsl:if test="$other/ubuntu/patch">
           <xsl:if test="$other/bugs/@patch!='0'">  
794              <li>              <li>
795                <xsl:element name="a">                      <a href="{$other/ubuntu/patch/@url}">Patch for version <xsl:value-of select="$other/ubuntu/patch/@version"/></a>
796                  <xsl:attribute name="href">              </li>
797                    <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>            </xsl:if>
798                    <xsl:call-template name="escape-name">            <xsl:if test="$other/ubuntu/bugs">
799                      <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>              <li>
800                    </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>  
801              </li>              </li>
802            </xsl:if>            </xsl:if>
803          </ul>          </ul>
# Line 692  other-to-%xx, especially % to %25... For Line 842  other-to-%xx, especially % to %25... For
842              <a href="http://buildd.debian.org/pkg.cgi?pkg={$escaped-package}"              <a href="http://buildd.debian.org/pkg.cgi?pkg={$escaped-package}"
843                title="buildd.debian.org build logs">logs</a>                title="buildd.debian.org build logs">logs</a>
844              <xsl:text>, </xsl:text>              <xsl:text>, </xsl:text>
845              <a href="http://people.debian.org/~igloo/status.php?packages={$escaped-package}"              <!-- <a href="http://people.debian.org/~igloo/status.php?packages={$escaped-package}"
846                title="igloo build logs on people.debian.org">more</a>                title="igloo's build logs on people.debian.org">more</a> -->
847                <a href="http://buildd.debian.org/~jeroen/status/package.php?p={$escaped-package}"
848                  title="jeroen's build logs on buildd.debian.org">more</a>
849              <xsl:text>, </xsl:text>              <xsl:text>, </xsl:text>
850              <a href="http://experimental.debian.net/build.php?pkg={$escaped-package}"              <a href="http://experimental.debian.net/build.php?pkg={$escaped-package}"
851                title="experimental.debian.net build logs">exp</a>                title="experimental.debian.net build logs">exp</a>
# Line 748  other-to-%xx, especially % to %25... For Line 900  other-to-%xx, especially % to %25... For
900              </xsl:if>              </xsl:if>
901            </li>            </li>
902          </xsl:if>          </xsl:if>
903          <!-- convert maintainer/name to follow lintian.debian.org convention -->          <xsl:if test="$other/@lintian='yes'">
904          <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ~/()&#34; ', &quot;'&quot;)"/>            <xsl:variable name="lintian_url"><xsl:call-template name="mk_lintian_url" /></xsl:variable>
905          <xsl:variable name="_email" select="translate(maintainer/email, $pattern, '_____________________')"/>            <li>
906          <li><a href="http://lintian.debian.org/reports/maintainer/{$_email}.html#{$package}">Lintian report</a></li>              <a href="{$lintian_url}">Lintian report</a>
907                <xsl:if test="$lin_errs + $lin_warns > 0">
908                  <xsl:text> </xsl:text>
909                  <small><span title="(errors, warnings)">(<xsl:value-of select="$lin_errs" />,
910                      <xsl:value-of select="$lin_warns" />)</span></small>
911                </xsl:if>
912              </li>
913            </xsl:if>
914          <li>          <li>
915            <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>
916          </li>          </li>
# Line 767  other-to-%xx, especially % to %25... For Line 926  other-to-%xx, especially % to %25... For
926    
927  <xsl:template name="package-files">  <xsl:template name="package-files">
928    <tr class="titlerow">    <tr class="titlerow">
929      <td class="titlecell" colspan="2">      <td class="titlecell" colspan="2">Source package</td>
930        Source package    </tr>
   </td></tr>  
931    <tr class="titlerow">    <tr class="titlerow">
932      <td class="labelcell">      <td class="labelcell">
933        <xsl:element name="a">        <xsl:element name="a">
# Line 823  other-to-%xx, especially % to %25... For Line 981  other-to-%xx, especially % to %25... For
981    
982  <xsl:template name="todo-list">  <xsl:template name="todo-list">
983    <xsl:variable name="todo">    <xsl:variable name="todo">
984      <xsl:if test="@nmu">      <xsl:call-template name="issue-nmu" />
985        <li>Incorporate and acknowledge the changes from the non maintainer upload.</li>      <xsl:call-template name="issue-lintian" />
986      </xsl:if>      <xsl:call-template name="issue-mentors-pending" />
987      <xsl:if test="not(uploaders)and(priority='standard' or priority='required' or priority='important')">      <xsl:call-template name="issue-comaintenance" />
988        <li>The package is of priority standard or higher, you should really find some co-maintainers.</li>      <xsl:call-template name="issue-outdate-stdver" />
989      </xsl:if>      <xsl:call-template name="issue-new-upstream" />
990      <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>  
991      <xsl:if test="$hasother">      <xsl:if test="$hasother">
992        <xsl:for-each select="$other/todo/item">        <xsl:for-each select="$other/todo/item">
993          <xsl:call-template name="outputitem"/>          <xsl:call-template name="outputitem" />
994        </xsl:for-each>        </xsl:for-each>
       <xsl:if test="$other[dehs/@newer]">  
         <li>A new upstream version is available:  
           <a href="http://dehs.alioth.debian.org/maintainer.php?name={$escaped-package}"><xsl:value-of select="$other/dehs/@newer"/></a>,  
           you should consider packaging it.</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">patches fixing  
           <xsl:value-of select="$other/bugs/@patch"/> bug<xsl:if test="$other/bugs/@patch!='1'">s</xsl:if>  
           </a>, consider including or untagging  
           <xsl:if test="$other/bugs/@patch!='1'">them</xsl:if>  
           <xsl:if test="$other/bugs/@patch='1'">it</xsl:if>.  
         </li>  
       </xsl:if>  
995      </xsl:if>      </xsl:if>
996    </xsl:variable>    </xsl:variable>
997    <xsl:if test="count($todo)>0 and string($todo)!=''">    <xsl:if test="count($todo)>0 and string($todo)!=''">
998      <tr class="titlerow">      <tr class="titlerow">
999        <td class="titlecell" id="todo">        <td class="titlecell" id="todo">Todo</td>
1000          Todo      </tr>
     </td></tr>  
1001      <tr class="normalrow">      <tr class="normalrow">
1002        <td class="contentcell2">        <td class="contentcell2"><ul><xsl:copy-of select="$todo"/></ul></td>
         <ul>  
           <xsl:copy-of select="$todo"/>  
         </ul>  
       </td>  
1003      </tr>      </tr>
1004    </xsl:if>    </xsl:if>
1005  </xsl:template>  </xsl:template>
1006    
1007  <xsl:template name="problems">  <xsl:template name="problems">
1008    <xsl:variable name="problems">    <xsl:variable name="problems">
1009      <xsl:if test="$hasexcuse and document(concat('../base/', $dir, '/excuse.xml'))/excuse/@problematic">      <xsl:call-template name="issue-testing-excuses" />
1010        <li>The package has not yet entered <a      <xsl:call-template name="issue-piuparts" />
1011            href="http://ftp-master.debian.org/testing/update_excuses.html.gz#{$package}">testing</a>      <xsl:call-template name="issue-ancient-stdver" />
1012          even though the <xsl:value-of select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/@limit"/>-day      <xsl:call-template name="issue-item-dead-package" />
1013          delay is over.      <xsl:call-template name="issue-item-override-disparity" />
1014          <a href="http://release.debian.org/migration/testing.pl?package={$escaped-package}">Check why</a>.</li>      <xsl:call-template name="issue-item-help-bugs" />
1015      </xsl:if>      <xsl:call-template name="issue-item-wnpp" />
1016      <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">      <!-- <xsl:call-template name="issue-item-watch-failure" /> -->
1017        <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>  
1018      <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>  
   
       <!-- 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>  
       -->  
       <xsl:if test="$other[dehs/@error]">  
         <li>The package has a <kbd>debian/watch</kbd> file, but the last  
           attempt to use it for checking for newer upstream versions failed  
           with  
           <a href="http://dehs.alioth.debian.org/maintainer.php?name={$escaped-package}">an  
             error</a>.</li>  
       </xsl:if>  
   
       <!-- Misc problems reported -->  
1019        <xsl:for-each select="$other/problems/item">        <xsl:for-each select="$other/problems/item">
1020          <xsl:call-template name="outputitem"/>          <xsl:call-template name="outputitem"/>
1021        </xsl:for-each>        </xsl:for-each>
# Line 1041  other-to-%xx, especially % to %25... For Line 1023  other-to-%xx, especially % to %25... For
1023    </xsl:variable>    </xsl:variable>
1024    <xsl:if test="count($problems)>0 and string($problems)!=''">    <xsl:if test="count($problems)>0 and string($problems)!=''">
1025      <tr class="titlerow">      <tr class="titlerow">
1026        <td class="titlecell" id="problems">        <td class="titlecell" id="problems">Problems</td>
1027          Problems      </tr>
     </td></tr>  
1028      <tr class="normalrow">      <tr class="normalrow">
1029        <td class="contentcell2">        <td class="contentcell2"><ul><xsl:copy-of select="$problems"/></ul></td>
         <ul><xsl:copy-of select="$problems"/></ul>  
       </td>  
1030      </tr>      </tr>
1031    </xsl:if>    </xsl:if>
1032  </xsl:template>  </xsl:template>
1033    
1034  <xsl:template name="testing-status">  <xsl:template name="testing-status">
1035    <xsl:if test="$hasexcuse">    <xsl:if test="$hasexcuse or $other/@transitions='yes'">
1036      <tr class="titlerow">      <tr class="titlerow">
1037        <td class="titlecell">        <td class="titlecell">
1038          Testing status          Testing status
1039      </td></tr>      </td></tr>
1040      </xsl:if>
1041      <xsl:if test="$other/@transitions='yes'">
1042        <xsl:variable name="translist">
1043          <xsl:for-each select="$other/transitions/transition">
1044            <xsl:value-of select="@name" />
1045            <xsl:if test="position() != last()">
1046              <xsl:text> </xsl:text>
1047            </xsl:if>
1048          </xsl:for-each>
1049        </xsl:variable>
1050        <xsl:variable name="transno" select="count($other/transitions/transition)" />
1051      <tr class="normalrow">      <tr class="normalrow">
1052        <td class="contentcell2" style="text-align: left">        <td class="contentcell2" style="text-align: left">
1053          <ul>          <ul>
1054            <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">            <!-- XXX unappropriate <ul>, just to make the text looks like other
1055              <xsl:call-template name="outputitem"/>              boxes, should be fixed on the CSS side (getting rid of <ul>) -->
1056            </xsl:for-each>                <li>This package is part of <em><xsl:value-of select="$transno" />
1057          </ul>                    ongoing testing transition<xsl:if test="$transno != '1'">s</xsl:if>
1058        </td>                  </em> (namely: <tt><xsl:value-of select="$translist" /></tt>). For
1059      </tr>                  more information see the
1060    </xsl:if>                  <a href="http://ftp-master.debian.org/transitions.yaml">transition
1061  </xsl:template>                    status file</a>.<br />
1062                    <em>Uploads to unstable will be rejected</em> while transitions are
1063  <xsl:template name="static-info">                  ongoing; you might want to upload to experimental in the
1064    <xsl:call-template name="output-static">                  meantime, or contact <tt><a href="mailto:debian-release@lists.debian.org">debian-release</a></tt>
1065      <xsl:with-param name="static" select="$static" />                  if an upload is really necessary.
1066    </xsl:call-template>                </li>
1067  </xsl:template>              </ul>
1068              </td>
1069            </tr>
1070          </xsl:if>
1071          <xsl:if test="$hasexcuse">
1072            <tr class="normalrow">
1073              <td class="contentcell2" style="text-align: left">
1074                <a title="reasons why the package is not moving to testing"
1075                  href="http://qa.debian.org/excuses.php?package={$package}">Excuses</a>:
1076                <ul class="testing-excuses">
1077                  <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
1078                    <xsl:call-template name="outputitem"/>
1079                  </xsl:for-each>
1080                </ul>
1081              </td>
1082            </tr>
1083          </xsl:if>
1084        </xsl:template>
1085    
1086  <xsl:template name="latest-news">      <xsl:template name="static-info">
1087    <xsl:call-template name="output-news">        <xsl:call-template name="output-static">
1088      <xsl:with-param name="news" select="$news" />          <xsl:with-param name="static" select="$static" />
1089    </xsl:call-template>        </xsl:call-template>
1090  </xsl:template>      </xsl:template>
1091    
1092  <xsl:variable name="static">      <xsl:template name="latest-news">
1093    <xsl:if test="$hasnews">        <xsl:call-template name="output-news">
1094      <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">          <xsl:with-param name="news" select="$news" />
1095        <xsl:call-template name="outputitem"/>        </xsl:call-template>
1096      </xsl:for-each>      </xsl:template>
   </xsl:if>  
 </xsl:variable>  
1097    
1098  <xsl:variable name="news">      <xsl:variable name="static">
1099    <xsl:if test="$hasnews">        <xsl:if test="$hasnews">
1100      <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">
1101        <xsl:call-template name="outputitem"/>            <xsl:call-template name="outputitem"/>
1102      </xsl:for-each>          </xsl:for-each>
1103    </xsl:if>        </xsl:if>
1104  </xsl:variable>      </xsl:variable>
1105    
1106  <!-- All the work is done in a single template -->      <xsl:variable name="news">
1107  <xsl:template match="source">        <xsl:if test="$hasnews">
1108            <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">
1109              <xsl:call-template name="outputitem"/>
1110            </xsl:for-each>
1111          </xsl:if>
1112        </xsl:variable>
1113    
1114    <!-- Start of html -->      <!-- All the work is done in a single template -->
1115    <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>  
1116    
1117    <div id="body">        <!-- Start of html -->
1118    <xsl:choose>        <html>
1119    <xsl:when test="$removed='yes'">          <head>
1120    <!-- REMOVED PACKAGE -->            <meta name="ROBOTS" content="NOFOLLOW"/>
1121    <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"/>
1122    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"/>
1123    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"/>
1124    The old news are kept for historic purpose only.</p>            <link type="text/css" title="Compact rendering" rel="alternate stylesheet" href="../common/compact.css"/>
1125              <script type="text/javascript" src="../common/pts.js"></script>
1126    <table class="righttable">            <xsl:if test="count($news)>0 and string($news)!=''">
1127      <xsl:call-template name="static-info" />              <link rel="alternate" type="application/rss+xml" title="RSS"
1128      <xsl:call-template name="latest-news" />                href="{$package}/news.rss20.xml" />
1129    </table>            </xsl:if>
1130              <title>Overview of <xsl:value-of select="$package"/> source package</title>
1131    <!-- END REMOVED PACKAGE -->          </head>
1132    </xsl:when>          <body onload="javascript:onLoad();">
1133    <xsl:otherwise>  
1134    <!-- NON REMOVED PACKAGE -->            <div id="quickforms" style="float: right;">
1135                <form method="get" action="/common/index.html">
1136    <table class="containertable">                <p><span title="Jump to package">Go:</span>
1137    <tr class="containerrow" valign="top">                  <input type="text" name="src" value=""/></p>
1138    <td class="containercell">              </form>
1139    <!-- LEFT SIDE -->              <form id="csspref-form" method="get" action="/common/set-csspref.php">
1140    <table class="lefttable">                <p>Switch style: <select name="csspref" onchange="javascript:onChangeStyle();">
1141      <xsl:call-template name="general-information" />                    <option value="revamp.css">Default</option>
1142      <xsl:call-template name="available-versions" />                    <option value="compact.css">Compact</option>
1143    </table>                    <option value="pts.css">Legacy</option>
1144    <table class="lefttable">                </select></p>
1145      <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>  
1146    
1147    <!-- END NON REMOVED PACKAGE -->            </div>
1148    </xsl:otherwise>            <h1>Overview of
1149    </xsl:choose>              <xsl:element name="a">
1150                  <xsl:attribute name="href">
1151                    <xsl:text>http://packages.debian.org/src:</xsl:text>
1152                    <xsl:value-of select="$package"/>
1153                  </xsl:attribute>
1154                  <xsl:value-of select="$package"/>
1155                </xsl:element>
1156                source package</h1>
1157    
1158    <hr/>            <div id="body">
1159    <div class="footer">              <xsl:choose>
1160      <p>                <xsl:when test="$removed='yes'">
1161        <a href="http://www.debian.org">Debian</a> Package Tracking System -                  <!-- REMOVED PACKAGE -->
1162        Copyright 2002-2008 Raphaël Hertzog and others.<br/>                  <p>This package is not part of any Debian distribution. Thus you won't
1163        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
1164          ><tt>qa.debian.org</tt> pseudopackage</a> in the <a                    appeared on mirrors yet, or it's an old package that eventually got removed.
1165          href="http://bugs.debian.org">Debian <acronym title="Bug Tracking                    The old news are kept for historic purpose only.</p>
1166            System">BTS</acronym></a>.<br/>  
1167        Last modified : <xsl:value-of select="$date"/>.                  <table class="righttable">
1168      </p>                    <xsl:call-template name="static-info" />
1169    </div>                    <xsl:call-template name="latest-news" />
1170    </div>                  </table>
1171    </body>  
1172    </html>                  <!-- END REMOVED PACKAGE -->
1173  </xsl:template>                </xsl:when>
1174                  <xsl:otherwise>
1175                    <!-- NON REMOVED PACKAGE -->
1176    
1177                    <table class="containertable">
1178                      <tr class="containerrow" valign="top">
1179                        <td class="containercell">
1180                          <!-- LEFT SIDE -->
1181                          <table class="lefttable">
1182                            <xsl:call-template name="general-information" />
1183                            <xsl:call-template name="available-versions" />
1184                          </table>
1185                          <table class="lefttable">
1186                            <xsl:call-template name="package-files" />
1187                            <xsl:call-template name="binary-packages" />
1188                          </table>
1189                          <!-- END LEFT SIDE -->
1190                          </td><td class="containercell">
1191                          <!-- RIGHT SIDE -->
1192                          <table class="righttable">
1193                            <xsl:call-template name="todo-list" />
1194                            <xsl:call-template name="problems" />
1195                          </table>
1196                          <table class="righttable">
1197                            <xsl:call-template name="testing-status" />
1198                            <xsl:call-template name="static-info" />
1199                            <xsl:call-template name="latest-news" />
1200                          </table>
1201                          <!-- END RIGHT SIDE -->
1202                          </td><td class="containercell">
1203                          <table class="lefttable">
1204                            <xsl:call-template name="bugs-count" />
1205                            <xsl:call-template name="pts-subscription" />
1206                          </table>
1207                          <table class="lefttable">
1208                            <xsl:call-template name="other-links" />
1209                          </table>
1210                          <table class="lefttable" id="ubuntubox">
1211                            <xsl:call-template name="ubuntu" />
1212                          </table>
1213                      </td></tr>
1214                    </table>
1215    
1216                    <!-- END NON REMOVED PACKAGE -->
1217                  </xsl:otherwise>
1218                </xsl:choose>
1219    
1220                <hr/>
1221                <div class="footer">
1222                  <table width="100%">
1223                    <tr>
1224                      <td>
1225                        <p>
1226                          <em><a href="http://www.debian.org">Debian</a> Package
1227                            Tracking System</em> - Copyright 2002-2008 Raphaël
1228                          Hertzog and others.<br/> Report problems to the
1229                          <a href="http://bugs.debian.org/qa.debian.org"><tt>qa.debian.org</tt>
1230                            pseudopackage</a> in the <a href="http://bugs.debian.org">Debian
1231                            <acronym title="Bug Tracking System">BTS</acronym></a>.<br/>
1232                          Last modified: <xsl:value-of select="$date"/>.
1233                        </p>
1234                      </td>
1235                      <td>
1236                        <a href="http://validator.w3.org/check?uri=referer"><img
1237                            src="http://www.w3.org/Icons/valid-xhtml10-blue"
1238                            alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>
1239                      </td>
1240                    </tr>
1241                  </table>
1242                </div>
1243              </div>
1244            </body>
1245          </html>
1246        </xsl:template>
1247    
1248  </xsl:stylesheet>  </xsl:stylesheet>

Legend:
Removed from v.1831  
changed lines
  Added in v.2058

  ViewVC Help
Powered by ViewVC 1.1.5