/[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 560 by hertzog, Tue Apr 22 21:15:41 2003 UTC revision 1303 by hertzog, Sun Mar 12 13:28:41 2006 UTC
# Line 1  Line 1 
1  <?xml version="1.0" encoding="ISO-8859-1" ?>  <?xml version="1.0" encoding="utf-8" ?>
2    
3  <!--  <!--
4  # Copyright 2002-2003 Raphaël Hertzog  # Copyright 2002-2005 Raphaël Hertzog and others
5  # This file is distributed under the terms of the General Public License  # This file is distributed under the terms of the General Public License
6  # version 2 or (at your option) any later version.  # version 2 or (at your option) any later version.
7  -->  -->
8    
9  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
10    
11  <xsl:output encoding="ISO-8859-1" method="html"/>  <xsl:output encoding="UTF-8" method="html"/>
12    
13  <xsl:param name="package"/>  <xsl:param name="package"/>
14  <xsl:param name="dir"/>  <xsl:param name="dir"/>
15  <xsl:param name="date"/>  <xsl:param name="date"/>
16    <xsl:param name="hasoldstable" select="''"/>
17  <xsl:param name="hasstable" select="''"/>  <xsl:param name="hasstable" select="''"/>
18  <xsl:param name="hastesting" select="''"/>  <xsl:param name="hastesting" select="''"/>
19  <xsl:param name="hasunstable" select="''"/>  <xsl:param name="hasunstable" select="''"/>
# Line 20  Line 21 
21  <xsl:param name="hasother" select="''"/>  <xsl:param name="hasother" select="''"/>
22  <xsl:param name="hass-p-u" select="''"/>  <xsl:param name="hass-p-u" select="''"/>
23  <xsl:param name="hast-p-u" select="''"/>  <xsl:param name="hast-p-u" select="''"/>
24    <xsl:param name="hasoldstable-security" select="''"/>
25  <xsl:param name="hasstable-security" select="''"/>  <xsl:param name="hasstable-security" select="''"/>
26  <xsl:param name="hastesting-security" select="''"/>  <xsl:param name="hastesting-security" select="''"/>
27    <xsl:param name="hassecure-testing" select="''"/>
28    <xsl:param name="hasvolatile" select="''"/>
29  <xsl:param name="hasnews" select="''"/>  <xsl:param name="hasnews" select="''"/>
30  <xsl:param name="hasexcuse" select="''"/>  <xsl:param name="hasexcuse" select="''"/>
31    
# Line 29  Line 33 
33    
34  <!-- Those variables controls the todo and problem item concerning  <!-- Those variables controls the todo and problem item concerning
35       standards-version not being up to date -->       standards-version not being up to date -->
36  <xsl:variable name="lastsv" select="'3.5.9'"/>  <xsl:variable name="lastsv" select="'3.6.2'"/>
37  <xsl:variable name="lastmajorsv" select="'3.'"/>  <xsl:variable name="lastmajorsv" select="'3.'"/>
38    
39  <!-- Named templates aka functions -->  <!-- Named templates aka functions -->
40  <xsl:template name="mirror">  <xsl:template name="mirror">
41    <xsl:choose>    <xsl:text>http://ftp.debian.org/debian</xsl:text>
     <xsl:when test="contains(source/section, 'non-US')">  
       <xsl:text>http://non-us.debian.org/debian-non-US</xsl:text>  
     </xsl:when>  
     <xsl:otherwise>  
       <xsl:text>http://http.us.debian.org/debian</xsl:text>  
     </xsl:otherwise>  
   </xsl:choose>  
42  </xsl:template>  </xsl:template>
43    
44  <xsl:template name="outputitem">  <xsl:template name="outputitem">
# Line 51  Line 48 
48          <xsl:text>[</xsl:text>          <xsl:text>[</xsl:text>
49          <xsl:value-of select="@date"/>          <xsl:value-of select="@date"/>
50          <xsl:text>] </xsl:text>          <xsl:text>] </xsl:text>
51        </xsl:if><a href="{@url}"><xsl:value-of select="text()"/></a></li>        </xsl:if><a href="{@url}">
52          <xsl:value-of select="text()"/></a><xsl:if test="@from">
53            <xsl:text> (</xsl:text>
54            <xsl:value-of select="@from"/>
55            <xsl:text>)</xsl:text></xsl:if></li>
56      </xsl:when>      </xsl:when>
57      <xsl:otherwise>      <xsl:otherwise>
58        <li><xsl:if test="@date">        <li><xsl:if test="@date">
# Line 63  Line 64 
64    </xsl:choose>    </xsl:choose>
65  </xsl:template>  </xsl:template>
66    
67  <!-- Convert + in %2b for URL escaping ... -->  <!-- Convert + in %2b for URL escaping. Should actually first also do
68    other-to-%xx, especially % to %25... Fortunately, that's rare -->
69  <xsl:template name="escape-name">  <xsl:template name="escape-name">
70    <xsl:param name="text"/>    <xsl:param name="text"/>
71    <xsl:if test="contains($text,'+')">    <xsl:if test="contains($text,'+')">
# Line 78  Line 80 
80    </xsl:if>    </xsl:if>
81  </xsl:template>  </xsl:template>
82    
83    <!-- Strip epoch -->
84    <xsl:template name="strip-epoch">
85      <xsl:param name="version"/>
86      <xsl:if test="contains($version,':')">
87        <xsl:value-of select="substring-after($version,':')"/>
88      </xsl:if>
89      <xsl:if test="not(contains($version,':'))">
90        <xsl:value-of select="$version"/>
91      </xsl:if>
92    </xsl:template>
93    
94    
95  <!-- All the work is done in a single template -->  <!-- All the work is done in a single template -->
96  <xsl:template match="source">  <xsl:template match="source">
97    
98    <!-- Start of html -->    <!-- Start of html -->
99      <xsl:text disable-output-escaping="yes">
100      &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;
101      </xsl:text>
102    <html>    <html>
103    <head>    <head>
104    <meta name="ROBOTS" content="NOFOLLOW"/>    <meta name="ROBOTS" content="NOFOLLOW"/>
# Line 93  Line 109 
109    <body>    <body>
110    
111    <form method="get" action="/common/index.html" style="float: right;">    <form method="get" action="/common/index.html" style="float: right;">
112    Jump to package : <br/>    <!-- this link should make lynx/links happy [FG] -->
113    <input type="text" name="src" value=""/>    <p>Jump to package (<a href="/">home page</a>): <br/>
114      <input type="text" name="src" value=""/></p>
115    </form>    </form>
116    <h1>Overview of <xsl:value-of select="$package"/> source package</h1>    <h1>Overview of
117      <xsl:element name="a">
118        <xsl:attribute name="href">
119          <xsl:text>http://packages.debian.org/src:</xsl:text>
120           <xsl:value-of select="$package"/>
121        </xsl:attribute>
122       <xsl:value-of select="$package"/>
123      </xsl:element>
124      source package</h1>
125    
126      <xsl:choose>
127      <xsl:when test="$removed='yes'">
128      <!-- REMOVED PACKAGE -->
129      <p>This package is no more part of any Debian distribution. Thus you won't
130      find many information here. The old news are kept for historic purpose.</p>
131    
132      <table class="righttable">
133      <xsl:variable name="static">
134        <xsl:if test="$hasnews">
135          <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">
136            <xsl:call-template name="outputitem"/>
137          </xsl:for-each>
138        </xsl:if>
139      </xsl:variable>
140      <xsl:if test="count($static)>0 and string($static)!=''">
141        <tr class="titlerow">
142        <td class="titlecell">
143        Static Information
144        </td></tr>
145        <tr class="normalrow">
146        <td class="contentcell2">
147        <ul><xsl:copy-of select="$static"/></ul>
148        </td>
149        </tr>
150      </xsl:if>
151    
152      <xsl:variable name="news">
153        <xsl:if test="$hasnews">
154          <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">
155            <xsl:call-template name="outputitem"/>
156          </xsl:for-each>
157        </xsl:if>
158      </xsl:variable>
159      <xsl:if test="count($news)>0 and string($news)!=''">
160        <tr class="titlerow">
161        <td class="titlecell">
162        Latest News
163        </td></tr>
164        <tr class="normalrow">
165        <td class="contentcell2">
166        <ul><xsl:copy-of select="$news"/></ul>
167        </td>
168        </tr>
169      </xsl:if>
170      </table>
171    
172      <!-- END REMOVED PACKAGE -->
173      </xsl:when>
174      <xsl:otherwise>
175      <!-- NON REMOVED PACKAGE -->
176    
177    <table class="containertable">    <table class="containertable">
178    <tr class="containerrow" valign="top">    <tr class="containerrow" valign="top">
179    <td class="containercell">    <td class="containercell">
# Line 119  Line 195 
195    </xsl:if>    </xsl:if>
196    <tr class="normalrow">    <tr class="normalrow">
197    <td class="labelcell">Maintainer</td>    <td class="labelcell">Maintainer</td>
198    <td class="contentcell"><a class="email" href="http://qa.debian.org/developer.php?login={maintainer/email}">    <td class="contentcell">
199    <xsl:value-of select="maintainer/name"/></a> [<a class="email" href="mailto:{maintainer/email}">mail</a>]</td>    <xsl:element name="a">
200        <xsl:attribute name="href">
201          <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
202          <xsl:call-template name="escape-name">
203            <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>
204          </xsl:call-template>
205        </xsl:attribute>
206        <xsl:value-of select="maintainer/name"/>
207      </xsl:element>
208      [<a class="email" href="mailto:{maintainer/email}">mail</a>]
209      </td>
210    </tr>    </tr>
211    <tr class="normalrow">    <tr class="normalrow">
212    <td class="labelcell"><a href="http://www.debian.org/doc/manuals/developers-reference/ch-pkgs.en.html#s-collaborative-maint">Co-Maintainers</a></td>    <td class="labelcell"><a href="http://www.debian.org/doc/manuals/developers-reference/ch-pkgs.en.html#s-collaborative-maint">Co-Maintainers</a></td>
213    <td class="contentcell">    <td class="contentcell">
214    <xsl:if test="uploaders">    <xsl:if test="uploaders">
215      <xsl:for-each select="uploaders/item">      <xsl:for-each select="uploaders/item">
216        <a class="email" href="http://qa.debian.org/developer.php?login={email}"><xsl:value-of select="name"/></a> [<a class="email" href="mailto:{email}">mail</a>]<br/>        <xsl:element name="a">
217            <xsl:attribute name="href">
218              <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
219              <xsl:call-template name="escape-name">
220                <xsl:with-param name="text"><xsl:value-of select="email"/></xsl:with-param>
221              </xsl:call-template>
222            </xsl:attribute>
223            <xsl:value-of select="name"/>
224          </xsl:element>
225          [<a class="email" href="mailto:{email}">mail</a>]<br/>
226      </xsl:for-each>      </xsl:for-each>
227    </xsl:if>    </xsl:if>
228    <xsl:if test="not(uploaders)">    <xsl:if test="not(uploaders)">
# Line 138  Line 233 
233    <td class="labelcell">Standards-Version</td>    <td class="labelcell">Standards-Version</td>
234    <td class="contentcell"><xsl:value-of select="standards-version"/></td>    <td class="contentcell"><xsl:value-of select="standards-version"/></td>
235    </tr>    </tr>
236      <tr class="normalrow">
237      <td class="labelcell">Priority &amp; Section</td>
238      <td class="contentcell"><xsl:value-of select="priority"/> - <xsl:value-of select="section"/></td>
239      </tr>
240    <xsl:if test="architecture!='any' and architecture!='all'">    <xsl:if test="architecture!='any' and architecture!='all'">
241    <tr class="normalrow">    <tr class="normalrow">
242    <td class="labelcell">Architecture</td>    <td class="labelcell">Architecture</td>
# Line 152  Line 251 
251    <tr class="normalrow">    <tr class="normalrow">
252    <td class="labelcell">All bugs</td>    <td class="labelcell">All bugs</td>
253    <td class="contentcell">    <td class="contentcell">
254    <a href="http://bugs.debian.org/src:{$package}"><xsl:if test="$hasother">    <xsl:element name="a">
255      <xsl:value-of select="$other/bugs/@all"/>      <xsl:attribute name="href">
256    </xsl:if></a>        <xsl:text>http://bugs.debian.org/src:</xsl:text>
257          <xsl:call-template name="escape-name">
258            <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
259          </xsl:call-template>
260        </xsl:attribute>
261        <xsl:if test="$hasother">
262          <xsl:value-of select="$other/bugs/@all"/>
263        </xsl:if>
264      </xsl:element>
265    </td>    </td>
266    </tr>    </tr>
267    <tr class="normalrow">    <tr class="normalrow">
# Line 239  Line 346 
346    <tr class="normalrow">    <tr class="normalrow">
347    <td class="contentcell" colspan="2">    <td class="contentcell" colspan="2">
348    <form method="post" action="/cgi-bin/pts.cgi">    <form method="post" action="/cgi-bin/pts.cgi">
349        <p>
350      <input type="hidden" name="package" value="{$package}"/>      <input type="hidden" name="package" value="{$package}"/>
351      <select name="what">      <select name="what">
352        <option value="subscribe">Subscribe</option>        <option value="subscribe">Subscribe</option>
# Line 247  Line 355 
355      </select>      </select>
356      <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" onFocus="if(email.value=='your email'){{email.value=''}}"/>
357      <input type="submit" name="submit" value="Send"/>      <input type="submit" name="submit" value="Send"/>
358        </p>
359    </form>    </form>
360    </td>    </td>
361    </tr>    </tr>
# Line 257  Line 366 
366    </td></tr>    </td></tr>
367    <tr class="normalrow">    <tr class="normalrow">
368    <td class="normalcell" colspan="2" style="text-align: left">    <td class="normalcell" colspan="2" style="text-align: left">
369      <ul>
370    <xsl:for-each select="binary/item">    <xsl:for-each select="binary/item">
371      <xsl:sort select="text()"/>      <xsl:sort select="text()"/>
372      <xsl:variable name="pkg" select="text()"/>      <xsl:variable name="pkg" select="text()"/>
# Line 315  Line 425 
425      </span>      </span>
426      </li>      </li>
427    </xsl:for-each>    </xsl:for-each>
428    </td></tr>    </ul></td></tr>
429    
430    <tr class="titlerow">    <tr class="titlerow">
431    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
432    Other available versions    Available versions
433    </td></tr>    </td></tr>
434    <xsl:if test="$hasexperimental">  
435      <!-- oldstable -->
436      <xsl:if test="$hasoldstable">
437    <tr class="normalrow">    <tr class="normalrow">
438    <td class="labelcell">Experimental</td>    <td class="labelcell"><a href="http://www.debian.org/releases/woody/">Oldstable</a></td>
439    <td class="contentcell">    <td class="contentcell">
440    <xsl:value-of select="document(concat('../base/', $dir, '/experimental.xml'))/source/version"/>    <xsl:value-of select="document(concat('../base/', $dir, '/oldstable.xml'))/source/version"/>
441      </td>
442      </tr>
443      </xsl:if>
444      <xsl:if test="$hasoldstable-security">
445      <tr class="normalrow">
446      <td class="labelcell"><small>Oldstable Security Updates</small></td>
447      <td class="contentcell">
448      <xsl:value-of select="document(concat('../base/', $dir, '/oldstable-security.xml'))/source/version"/>
449      </td>
450      </tr>
451      </xsl:if>
452    
453      <!-- stable -->
454      <xsl:if test="$hasstable">
455      <tr class="normalrow">
456      <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>
457      <td class="contentcell">
458      <xsl:value-of select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/>
459    </td>    </td>
460    </tr>    </tr>
461    </xsl:if>    </xsl:if>
462    <xsl:if test="$hasstable-security">    <xsl:if test="$hasstable-security">
463    <tr class="normalrow">    <tr class="normalrow">
464    <td class="labelcell">Security Updates (stable)</td>    <td class="labelcell"><small>Stable Security Updates</small></td>
465    <td class="contentcell">    <td class="contentcell">
466    <xsl:value-of select="document(concat('../base/', $dir, '/stable-security.xml'))/source/version"/>    <xsl:value-of select="document(concat('../base/', $dir, '/stable-security.xml'))/source/version"/>
467    </td>    </td>
468    </tr>    </tr>
469    </xsl:if>    </xsl:if>
470    <xsl:if test="$hastesting-security">    <xsl:if test="$hass-p-u">
471    <tr class="normalrow">    <tr class="normalrow">
472    <td class="labelcell">Security Updates (testing)</td>    <td class="labelcell"><small>Stable Proposed Updates</small></td>
473    <td class="contentcell">    <td class="contentcell">
474    <xsl:value-of select="document(concat('../base/', $dir, '/testing-security.xml'))/source/version"/>    <xsl:value-of select="document(concat('../base/', $dir, '/s-p-u.xml'))/source/version"/>
475    </td>    </td>
476    </tr>    </tr>
477    </xsl:if>    </xsl:if>
478    
479      <!-- testing -->
480    <xsl:if test="$hastesting">    <xsl:if test="$hastesting">
481    <tr class="normalrow">    <tr class="normalrow">
482    <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>
# Line 353  Line 485 
485    </td>    </td>
486    </tr>    </tr>
487    </xsl:if>    </xsl:if>
488      <xsl:if test="$hastesting-security">
489      <tr class="normalrow">
490      <td class="labelcell"><small>Testing Security Updates</small></td>
491      <td class="contentcell">
492      <xsl:value-of select="document(concat('../base/', $dir, '/testing-security.xml'))/source/version"/>
493      </td>
494      </tr>
495      </xsl:if>
496    <xsl:if test="$hast-p-u">    <xsl:if test="$hast-p-u">
497    <tr class="normalrow">    <tr class="normalrow">
498    <td class="labelcell">Testing Proposed Updates</td>    <td class="labelcell"><small>Testing Proposed Updates</small></td>
499    <td class="contentcell">    <td class="contentcell">
500    <xsl:value-of select="document(concat('../base/', $dir, '/t-p-u.xml'))/source/version"/>    <xsl:value-of select="document(concat('../base/', $dir, '/t-p-u.xml'))/source/version"/>
501    </td>    </td>
502    </tr>    </tr>
503    </xsl:if>    </xsl:if>
504    <xsl:if test="$hasstable">  
505      <!-- unstable -->
506      <xsl:if test="$hasunstable">
507    <tr class="normalrow">    <tr class="normalrow">
508    <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>    <td class="labelcell">Unstable</td>
509    <td class="contentcell">    <td class="contentcell">
510    <xsl:value-of select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/>    <xsl:value-of select="document(concat('../base/', $dir, '/unstable.xml'))/source/version"/>
511    </td>    </td>
512    </tr>    </tr>
513    </xsl:if>    </xsl:if>
514    <xsl:if test="$hass-p-u">  
515      <!-- experimental -->
516      <xsl:if test="$hasexperimental">
517    <tr class="normalrow">    <tr class="normalrow">
518    <td class="labelcell">Stable Proposed Updates</td>    <td class="labelcell">Experimental</td>
519    <td class="contentcell">    <td class="contentcell">
520    <xsl:value-of select="document(concat('../base/', $dir, '/s-p-u.xml'))/source/version"/>    <xsl:value-of select="document(concat('../base/', $dir, '/experimental.xml'))/source/version"/>
521    </td>    </td>
522    </tr>    </tr>
523    </xsl:if>    </xsl:if>
524    
525      <!-- secure-testing -->
526      <xsl:if test="$hassecure-testing">
527      <tr class="normalrow">
528      <td class="labelcell">Secure testing</td>
529      <td class="contentcell">
530      <xsl:value-of select="document(concat('../base/', $dir, '/secure-testing.xml'))/source/version"/>
531      </td>
532      </tr>
533      </xsl:if>
534    
535      <!-- volatile -->
536      <xsl:if test="$hasvolatile">
537      <tr class="normalrow">
538      <td class="labelcell">Volatile</td>
539      <td class="contentcell">
540      <xsl:value-of select="document(concat('../base/', $dir, '/volatile.xml'))/source/version"/>
541      </td>
542      </tr>
543      </xsl:if>
544    
545      <!-- Patches list [FG] -->
546      <xsl:if test="$other/@patches='yes'">
547        <tr class="titlerow">
548        <td class="titlecell" colspan="2">
549        Patches
550        </td></tr>
551        <tr>
552        <td class="contentcell" colspan="2" style="text-align: left">
553        <ul>
554        <xsl:for-each select="$other/patches/item">
555          <li>
556            <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>
557          </li>
558        </xsl:for-each>
559        <xsl:if test="$other/bugs/@patch!='0'">
560          <li>
561            <xsl:element name="a">
562              <xsl:attribute name="href">
563                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
564                <xsl:call-template name="escape-name">
565                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
566                </xsl:call-template>
567                <xsl:text>&amp;include=patch&amp;exclude=pending</xsl:text>
568              </xsl:attribute>
569              Patches from BTS (<xsl:value-of select="$other/bugs/@patch"/>)
570            </xsl:element>
571          </li>
572        </xsl:if>
573        </ul>
574        </td>
575        </tr>
576      </xsl:if>
577    
578    
579    <tr class="titlerow">    <tr class="titlerow">
580    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
581    Other links    Other links
582    </td></tr>    </td></tr>
583    <tr>    <tr>
584    <td class="contentcell" colspan="2" style="text-align: left">    <td class="contentcell" colspan="2" style="text-align: left">
585      <ul>
586      <li>
587        <xsl:element name="a">
588          <xsl:attribute name="href">
589            <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
590            <xsl:value-of select="directory"/>
591            <xsl:text>/</xsl:text>
592            <xsl:call-template name="escape-name">
593              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
594            </xsl:call-template>
595            <xsl:text>_</xsl:text>
596            <xsl:call-template name="escape-name">
597              <xsl:with-param name="text">
598                <xsl:call-template name="strip-epoch">
599                  <xsl:with-param name="version">
600                    <xsl:value-of select="version"/>
601                  </xsl:with-param>
602                </xsl:call-template>
603              </xsl:with-param>
604            </xsl:call-template>
605            <xsl:text>/changelog</xsl:text>
606          </xsl:attribute>
607          <xsl:text>Changelog</xsl:text>
608        </xsl:element>
609        /
610        <xsl:element name="a">
611          <xsl:attribute name="href">
612            <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
613            <xsl:value-of select="directory"/>
614            <xsl:text>/</xsl:text>
615            <xsl:call-template name="escape-name">
616              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
617            </xsl:call-template>
618            <xsl:text>_</xsl:text>
619            <xsl:call-template name="escape-name">
620              <xsl:with-param name="text">
621                <xsl:call-template name="strip-epoch">
622                  <xsl:with-param name="version">
623                    <xsl:value-of select="version"/>
624                  </xsl:with-param>
625                </xsl:call-template>
626              </xsl:with-param>
627            </xsl:call-template>
628            <xsl:text>/copyright</xsl:text>
629          </xsl:attribute>
630          <xsl:text>Copyright</xsl:text>
631        </xsl:element>
632      </li>
633    <xsl:if test="architecture!='all'">    <xsl:if test="architecture!='all'">
634      <li><a href="http://buildd.debian.org/build.php?pkg={$package}">Buildd logs</a></li>      <li>
635          <xsl:element name="a">
636            <xsl:attribute name="href">
637              <xsl:text>http://buildd.debian.org/build.php?pkg=</xsl:text>
638              <xsl:call-template name="escape-name">
639                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
640              </xsl:call-template>
641            </xsl:attribute>
642            <xsl:text>Buildd logs</xsl:text>
643          </xsl:element>
644        </li>
645    </xsl:if>    </xsl:if>
646      <li><a href="http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=pdesc&amp;package={$package}">Description's translations (DDTP)</a></li>    <!-- DISABLED until ddtp.debian.org is back up
647        <li>
648          <xsl:element name="a">
649            <xsl:attribute name="href">
650              <xsl:text>http://ddtp.debian.org/stats/pdesc/report.cgi?package=</xsl:text>
651              <xsl:call-template name="escape-name">
652                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
653              </xsl:call-template>
654              <xsl:text>&amp;lang=all&amp;type=src-drvbin&amp;subword=0</xsl:text>
655            </xsl:attribute>
656            Description's translations (DDTP)
657          </xsl:element>
658        </li>
659    <xsl:if test="$other/@debconf='yes'">    <xsl:if test="$other/@debconf='yes'">
660      <li><a href="http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&amp;package={$package}">Debconf templates's translations (DDTP)</a></li>      <li>
661          <xsl:element name="a">
662            <xsl:attribute name="href">
663              <xsl:text>http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&amp;package=</xsl:text>
664              <xsl:call-template name="escape-name">
665                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
666              </xsl:call-template>
667            </xsl:attribute>
668            Debconf templates's translations (DDTP)
669          </xsl:element>
670        </li>
671    </xsl:if>    </xsl:if>
672      -->
673    <xsl:if test="$hasunstable and $other/debcheck/@unstable='yes'">    <xsl:if test="$hasunstable and $other/debcheck/@unstable='yes'">
674      <li><a href="http://qa.debian.org/debcheck.php?dist=unstable&amp;package={$package}">Debcheck on unstable</a></li>      <li>
675          <xsl:element name="a">
676            <xsl:attribute name="href">
677              <xsl:text>http://qa.debian.org/debcheck.php?dist=unstable&amp;package=</xsl:text>
678              <xsl:call-template name="escape-name">
679                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
680              </xsl:call-template>
681            </xsl:attribute>
682            <xsl:text>Debcheck on unstable</xsl:text>
683          </xsl:element>
684        </li>
685    </xsl:if>    </xsl:if>
686    <xsl:if test="$hastesting and $other/debcheck/@testing='yes'">    <xsl:if test="$hastesting and $other/debcheck/@testing='yes'">
687      <li><a href="http://qa.debian.org/debcheck.php?dist=testing&amp;package={$package}">Debcheck on testing</a></li>      <li>
688          <xsl:element name="a">
689            <xsl:attribute name="href">
690              <xsl:text>http://qa.debian.org/debcheck.php?dist=testing&amp;package=</xsl:text>
691              <xsl:call-template name="escape-name">
692                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
693              </xsl:call-template>
694            </xsl:attribute>
695            <xsl:text>Debcheck on testing</xsl:text>
696          </xsl:element>
697        </li>
698    </xsl:if>    </xsl:if>
699    <xsl:if test="$hasstable and $other/debcheck/@stable='yes'">    <xsl:if test="$hasstable and $other/debcheck/@stable='yes'">
700      <li><a href="http://qa.debian.org/debcheck.php?dist=stable&amp;package={$package}">Debcheck on stable</a></li>      <li>
701          <xsl:element name="a">
702            <xsl:attribute name="href">
703              <xsl:text>http://qa.debian.org/debcheck.php?dist=stable&amp;package=</xsl:text>
704              <xsl:call-template name="escape-name">
705                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
706              </xsl:call-template>
707            </xsl:attribute>
708            <xsl:text>Debcheck on stable</xsl:text>
709          </xsl:element>
710        </li>
711    </xsl:if>    </xsl:if>
712      <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->
713                                  <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-~/()&#34; ', &quot;'&quot;)"/>
714      <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '_____________________')"/>
715        <li><a href="http://lintian.debian.org/reports/m{$_name}.html#{$package}">Lintian report</a></li>
716      <li>
717        <xsl:element name="a">
718          <xsl:attribute name="href">
719            <xsl:text>http://qa.debian.org/developer.php?popcon=</xsl:text>
720            <xsl:call-template name="escape-name">
721              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
722            </xsl:call-template>
723          </xsl:attribute>
724          <xsl:text>Popcon stats</xsl:text>
725        </xsl:element>
726      </li>
727      </ul>
728    </td>    </td>
729    </tr>    </tr>
730    
# Line 420  Line 745 
745    </td></tr>    </td></tr>
746    <tr class="normalrow">    <tr class="normalrow">
747    <td class="normalcell" colspan="2" style="text-align: left">    <td class="normalcell" colspan="2" style="text-align: left">
748      <ul>
749    <xsl:for-each select="files/item">    <xsl:for-each select="files/item">
750      <li>      <li>
751      <xsl:element name="a">      <xsl:element name="a">
# Line 439  Line 765 
765      </xsl:element>      </xsl:element>
766      </li>      </li>
767    </xsl:for-each>    </xsl:for-each>
768    </td></tr>    </ul></td></tr>
769    
770    </table>    </table>
771    <!-- END LEFT SIDE -->    <!-- END LEFT SIDE -->
# Line 457  Line 783 
783        <li>The package is of priority standard or higher, you should really find some co-maintainers.</li>        <li>The package is of priority standard or higher, you should really find some co-maintainers.</li>
784      </xsl:if>      </xsl:if>
785      <xsl:if test="not(starts-with(standards-version, $lastsv))">      <xsl:if test="not(starts-with(standards-version, $lastsv))">
786        <li>You should update the package to follow the last version of        <li>The package should be updated to follow the last version of
787        <a href="http://www.debian.org/doc/debian-policy/">Debian Policy</a> (Standards-Version        <a href="http://www.debian.org/doc/debian-policy/">Debian Policy</a> (Standards-Version
788        <xsl:value-of select="$lastsv"/> instead of        <xsl:value-of select="$lastsv"/> instead of
789        <xsl:value-of select="standards-version"/>).</li>        <xsl:value-of select="standards-version"/>).</li>
# Line 466  Line 792 
792        <xsl:for-each select="$other/todo/item">        <xsl:for-each select="$other/todo/item">
793          <xsl:call-template name="outputitem"/>          <xsl:call-template name="outputitem"/>
794        </xsl:for-each>        </xsl:for-each>
795          <!-- new upstream version goes in todo [FG] -->
796          <xsl:if test="$other/@watch='yes' and $other/watch/@new!='0'">
797            <li>A new upstream version was found:
798               (<xsl:value-of select="$other/watch/@new"/>). <a href="{$other/watch/@url}"><xsl:value-of select="$other/watch/@url"/></a></li>
799          </xsl:if>
800          <xsl:if test="$other/bugs/@patch!='0'">
801            <li>The Bug Tracking System contains
802            <xsl:element name="a">
803              <xsl:attribute name="href">
804                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
805                <xsl:call-template name="escape-name">
806                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
807                </xsl:call-template>
808                <xsl:text>&amp;include=patch&amp;exclude=pending</xsl:text>
809              </xsl:attribute>
810              <xsl:value-of select="$other/bugs/@patch"/> patch<xsl:if test="$other/bugs/@patch!='1'">es</xsl:if>
811            </xsl:element>, you should include
812            <xsl:if test="$other/bugs/@patch!='1'">them</xsl:if>
813            <xsl:if test="$other/bugs/@patch='1'">it</xsl:if>.
814            </li>
815          </xsl:if>
816      </xsl:if>      </xsl:if>
817    </xsl:variable>    </xsl:variable>
818    <xsl:if test="count($todo)>0 and string($todo)!=''">    <xsl:if test="count($todo)>0 and string($todo)!=''">
# Line 474  Line 821 
821    Todo    Todo
822    </td></tr>    </td></tr>
823    <tr class="normalrow">    <tr class="normalrow">
824    <td class="contentcell2"><xsl:copy-of select="$todo"/>    <td class="contentcell2">
825      <ul>
826      <xsl:copy-of select="$todo"/>
827      </ul>
828    </td>    </td>
829    </tr>    </tr>
830    </xsl:if>    </xsl:if>
# Line 483  Line 833 
833    <xsl:variable name="problems">    <xsl:variable name="problems">
834      <xsl:if test="$hasexcuse and document(concat('../base/', $dir, '/excuse.xml'))/excuse/@problematic">      <xsl:if test="$hasexcuse and document(concat('../base/', $dir, '/excuse.xml'))/excuse/@problematic">
835        <li>The package has not yet entered <a        <li>The package has not yet entered <a
836        href="http://ftp-master.debian.org/testing/update_excuses.html#{$package}">testing</a>        href="http://ftp-master.debian.org/testing/update_excuses.html.gz#{$package}">testing</a>
837        even though the <xsl:value-of select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/@limit"/>-day        even though the <xsl:value-of select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/@limit"/>-day
838        delay is over.</li>        delay is over.
839          <xsl:element name="a">
840            <xsl:attribute name="href">
841              <xsl:text>http://bjorn.haxx.se/debian/testing.pl?package=</xsl:text>
842              <xsl:call-template name="escape-name">
843                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
844              </xsl:call-template>
845            </xsl:attribute>
846            Check why
847          </xsl:element>
848          .</li>
849      </xsl:if>      </xsl:if>
850      <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">      <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">
851        <li>The package is severly out of date with respect to the Debian        <li>The package is severly out of date with respect to the Debian
# Line 493  Line 853 
853        and your package only follows        and your package only follows
854        <xsl:value-of select="standards-version"/>...</li>        <xsl:value-of select="standards-version"/>...</li>
855      </xsl:if>      </xsl:if>
856        <xsl:if test="@release!='unstable' and @release!='experimental'">
857          <li>This package is neither part of unstable nor experimental. This
858          probably means that the package <a
859          href="http://ftp-master.debian.org/removals.txt">has been removed</a> (or
860          has been renamed). Thus the information here is of little interest ...
861          the package is going to disappear unless someone takes it over and
862          reintroduces it into unstable.</li>
863        </xsl:if>
864      <xsl:if test="$hasother">      <xsl:if test="$hasother">
865    
866          <!-- Override disparity handling. [JvW] -->
867          <xsl:if test="$other/@override='yes'">
868            <xsl:for-each select="$other/override/group">
869              <li>There were override disparities found in suite <xsl:value-of
870                  select="@suite"/>:
871                <ul>
872                  <xsl:for-each select="disparity">
873                    <li><xsl:value-of select="text()"/></li>
874                  </xsl:for-each>
875                </ul>
876              </li>
877            </xsl:for-each>
878          </xsl:if>
879    
880        <!-- Wnpp handling. [PvR] -->        <!-- Wnpp handling. [PvR] -->
881        <xsl:if test="$other/@wnpp='yes'">        <xsl:if test="$other/@wnpp='yes'">
882        <li>        <li>
# Line 502  Line 884 
884            <xsl:when test="$other/wnpp/@type='O'">            <xsl:when test="$other/wnpp/@type='O'">
885            <span style="font-weight: bold">This package has been orphaned</span>.            <span style="font-weight: bold">This package has been orphaned</span>.
886            This means that it does not have a real maintainer at the            This means that it does not have a real maintainer at the
887            moment. Please consider adopting this package if you have some            moment. Please consider adopting this package if you are interested in it.
           interests in it.  
888            </xsl:when>            </xsl:when>
889            <xsl:when test="$other/wnpp/@type='ITA'">            <xsl:when test="$other/wnpp/@type='ITA'">
890            This package has been orphaned, but someone is intending to            This package has been orphaned, but someone intends to maintain it.
           resume its maintenance.  
891            </xsl:when>            </xsl:when>
892            <xsl:when test="$other/wnpp/@type='RFA'">            <xsl:when test="$other/wnpp/@type='RFA'">
893            The current maintainer is looking for someone who can take over            The current maintainer is looking for someone who can take over
894            maintenance of this package. If you have some interests in this package,            maintenance of this package. If you are interested in this package,
895            please consider taking it over. Alternatively you may            please consider taking it over. Alternatively you may
896            want to be co-maintainer in order to help the actual maintainer.            want to be co-maintainer in order to help the actual maintainer.
897            </xsl:when>            </xsl:when>
898              <xsl:when test="$other/wnpp/@type='RFH'">
899              The current maintainer is looking for someone who can help with the
900              maintenance of this package. If you are interested in this package,
901              please consider helping out. One way you can help is offer to be a
902              co-maintainer or triage bugs in the bts.
903              </xsl:when>
904            <xsl:when test="$other/wnpp/@type='ITP'">            <xsl:when test="$other/wnpp/@type='ITP'">
905            The WNPP database contains an ITP (Intent To Package) entry for            The WNPP database contains an ITP (Intent To Package) entry for
906            this package. This is probably an error, as it has already been            this package. This is probably an error, as it has already been
# Line 525  Line 911 
911            for this package.  This is probably an error, as it has already            for this package.  This is probably an error, as it has already
912            been packaged.            been packaged.
913            </xsl:when>            </xsl:when>
914              <xsl:when test="$other/wnpp/@type='RM'">
915              <span style="font-weight: bold">This package has been requested to be
916              removed</span>.
917              This means that, when this request gets processed by an ftp-master, this
918              package will no longer be in unstable, and will automatically be removed
919              from testing too afterwards. If for some reason you want keep this
920              package in unstable, please discuss so in the bug.
921              </xsl:when>
922            <xsl:otherwise>            <xsl:otherwise>
923            The WNPP database contains an entry for this package,            The WNPP database contains an entry for this package,
924            but it is unclear what kind of entry it is. This is probably an error.            but it is unclear what kind of entry it is. This is probably an error.
# Line 535  Line 929 
929          #<xsl:value-of select="$bn"/></a> for more information.          #<xsl:value-of select="$bn"/></a> for more information.
930        </li>        </li>
931        </xsl:if>        </xsl:if>
932    
933        <!-- uscan output if present [FG] -->
934        <xsl:if test="$other/@watch='yes'">
935          <li>
936          <xsl:if test="$other/watch/@warning!=''">
937            uscan had problems while searching for a new upstream version: <xsl:value-of select="$other/watch/@warning"/>
938          </xsl:if>
939          </li>
940        </xsl:if>
941    
942        <!-- Misc problems reported -->        <!-- Misc problems reported -->
943        <xsl:for-each select="$other/problems/item">        <xsl:for-each select="$other/problems/item">
# Line 548  Line 951 
951    Problems    Problems
952    </td></tr>    </td></tr>
953    <tr class="normalrow">    <tr class="normalrow">
954    <td class="contentcell2"><xsl:copy-of select="$problems"/>    <td class="contentcell2">
955      <ul><xsl:copy-of select="$problems"/></ul>
956    </td>    </td>
957    </tr>    </tr>
958    </xsl:if>    </xsl:if>
# Line 560  Line 964 
964    </td></tr>    </td></tr>
965    <tr class="normalrow">    <tr class="normalrow">
966    <td class="contentcell2" style="text-align: left">    <td class="contentcell2" style="text-align: left">
967      <ul>
968    <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">    <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
969      <xsl:call-template name="outputitem"/>      <xsl:call-template name="outputitem"/>
970    </xsl:for-each>    </xsl:for-each>
971      </ul>
972    </td>    </td>
973    </tr>    </tr>
974    </xsl:if>    </xsl:if>
# Line 581  Line 987 
987      Static Information      Static Information
988      </td></tr>      </td></tr>
989      <tr class="normalrow">      <tr class="normalrow">
990      <td class="contentcell2"><xsl:copy-of select="$static"/></td>      <td class="contentcell2">
991        <ul><xsl:copy-of select="$static"/></ul>
992        </td>
993      </tr>      </tr>
994    </xsl:if>    </xsl:if>
995    
# Line 598  Line 1006 
1006      Latest News      Latest News
1007      </td></tr>      </td></tr>
1008      <tr class="normalrow">      <tr class="normalrow">
1009      <td class="contentcell2"><xsl:copy-of select="$news"/></td>      <td class="contentcell2">
1010        <ul><xsl:copy-of select="$news"/></ul>
1011        </td>
1012      </tr>      </tr>
1013    </xsl:if>    </xsl:if>
1014    
# Line 606  Line 1016 
1016    <!-- END RIGHT SIDE -->    <!-- END RIGHT SIDE -->
1017    </td></tr>    </td></tr>
1018    </table>    </table>
1019    Warning: the "Latest News" section is not yet automatically updated. I'm waiting  
1020    that master.debian.org is upgraded to woody (stable) in order to be able    <!-- END NON REMOVED PACKAGE -->
1021    to setup the required scripts. Those scripts will automatically update the    </xsl:otherwise>
1022    "Latest News" and they'll let you add your own news items. Please be patient.    </xsl:choose>
1023    
1024    <hr/>    <hr/>
1025    Debian Package Tracking System - Copyright 2002-2003 Raphaël Hertzog<br/>    <p>
1026      Debian Package Tracking System - Copyright 2002-2005 Raphaël Hertzog and
1027      others<br/>
1028      Report problems to the <a href="http://bugs.debian.org/qa.debian.org"
1029      >qa.debian.org pseudopackage</a><br/>
1030    Last modified : <xsl:value-of select="$date"/>    Last modified : <xsl:value-of select="$date"/>
1031      </p>
1032    </body>    </body>
1033    </html>    </html>
1034  </xsl:template>  </xsl:template>

Legend:
Removed from v.560  
changed lines
  Added in v.1303

  ViewVC Help
Powered by ViewVC 1.1.5