/[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 551 by hertzog, Tue Apr 8 22:07:58 2003 UTC revision 1561 by hertzog, Sun Jul 8 09:00:44 2007 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.7.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    <xsl:template name="add-vcs-info">
95      <xsl:if test="repository">
96        <tr>
97          <td class="labelcell">
98            <xsl:text>Version Control</xsl:text>
99          </td>
100          <td class="contentcell">
101            <xsl:if test="repository/vcs[@kind='browser']">
102              <a href="{repository/vcs[@kind='browser']/@url}">
103                <xsl:text>browser</xsl:text>
104              </a>
105              <br />
106            </xsl:if>
107            <xsl:if test="repository/vcs[@kind!='browser']">
108              <xsl:text>raw: </xsl:text>
109              <xsl:for-each select="repository/vcs[@kind!='browser']">
110                <xsl:sort select="@kind" />
111                <a href="{@url}">
112                  <xsl:value-of select="@kind" />
113                </a>
114                <xsl:if test="position()!=last()">
115                  <xsl:text>, </xsl:text>
116                </xsl:if>
117              </xsl:for-each>
118            </xsl:if>
119          </td>
120        </tr>
121      </xsl:if>
122    </xsl:template>
123    
124  <!-- All the work is done in a single template -->  <!-- All the work is done in a single template -->
125  <xsl:template match="source">  <xsl:template match="source">
126    
127    <!-- Start of html -->    <!-- Start of html -->
128      <xsl:text disable-output-escaping="yes">
129      &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;
130      </xsl:text>
131    <html>    <html>
132    <head>    <head>
133    <meta name="ROBOTS" content="NOFOLLOW"/>    <meta name="ROBOTS" content="NOFOLLOW"/>
134    <link title="Default" rel="stylesheet" href="../common/pts.css"/>    <link type="text/css" title="Default" rel="stylesheet" href="../common/pts.css"/>
135    <link title="Standard link rendering" rel="alternate stylesheet" href="../common/pts2.css"/>    <link type="text/css" title="Standard link rendering" rel="alternate stylesheet" href="../common/pts2.css"/>
136    <title>Overview of <xsl:value-of select="$package"/> source package</title>    <title>Overview of <xsl:value-of select="$package"/> source package</title>
137    </head>    </head>
138    <body>    <body>
139    
140    <form method="get" action="/common/index.html" style="float: right;">    <form method="get" action="/common/index.html" style="float: right;">
141    Jump to package : <br/>    <!-- this link should make lynx/links happy [FG] -->
142    <input type="text" name="src" value=""/>    <p>Jump to package (<a href="/">home page</a>): <br/>
143      <input type="text" name="src" value=""/></p>
144    </form>    </form>
145    <h1>Overview of <xsl:value-of select="$package"/> source package</h1>    <h1>Overview of
146      <xsl:element name="a">
147        <xsl:attribute name="href">
148          <xsl:text>http://packages.debian.org/src:</xsl:text>
149           <xsl:value-of select="$package"/>
150        </xsl:attribute>
151       <xsl:value-of select="$package"/>
152      </xsl:element>
153      source package</h1>
154    
155      <xsl:choose>
156      <xsl:when test="$removed='yes'">
157      <!-- REMOVED PACKAGE -->
158      <p>This package is no longer part of any Debian distribution. Thus you won't
159      find much information here. The old news is kept for historic purpose only.</p>
160    
161      <table class="righttable">
162      <xsl:variable name="static">
163        <xsl:if test="$hasnews">
164          <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">
165            <xsl:call-template name="outputitem"/>
166          </xsl:for-each>
167        </xsl:if>
168      </xsl:variable>
169      <xsl:if test="count($static)>0 and string($static)!=''">
170        <tr class="titlerow">
171        <td class="titlecell">
172        Static Information
173        </td></tr>
174        <tr class="normalrow">
175        <td class="contentcell2">
176        <ul><xsl:copy-of select="$static"/></ul>
177        </td>
178        </tr>
179      </xsl:if>
180    
181      <xsl:variable name="news">
182        <xsl:if test="$hasnews">
183          <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">
184            <xsl:call-template name="outputitem"/>
185          </xsl:for-each>
186        </xsl:if>
187      </xsl:variable>
188      <xsl:if test="count($news)>0 and string($news)!=''">
189        <tr class="titlerow">
190        <td class="titlecell">
191        Latest News
192        </td></tr>
193        <tr class="normalrow">
194        <td class="contentcell2">
195        <ul><xsl:copy-of select="$news"/></ul>
196        </td>
197        </tr>
198      </xsl:if>
199      </table>
200    
201      <!-- END REMOVED PACKAGE -->
202      </xsl:when>
203      <xsl:otherwise>
204      <!-- NON REMOVED PACKAGE -->
205    
206    <table class="containertable">    <table class="containertable">
207    <tr class="containerrow" valign="top">    <tr class="containerrow" valign="top">
208    <td class="containercell">    <td class="containercell">
# Line 108  Line 213 
213    General Information    General Information
214    </td></tr>    </td></tr>
215    <tr class="normalrow">    <tr class="normalrow">
216    <td class="labelcell">Last version</td>    <td class="labelcell">Latest version</td>
217    <td class="contentcell"><xsl:value-of select="version"/></td>    <td class="contentcell"><xsl:value-of select="version"/></td>
218    </tr>    </tr>
219    <xsl:if test="@release!='unstable'">    <xsl:if test="@release!='unstable'">
# Line 119  Line 224 
224    </xsl:if>    </xsl:if>
225    <tr class="normalrow">    <tr class="normalrow">
226    <td class="labelcell">Maintainer</td>    <td class="labelcell">Maintainer</td>
227    <td class="contentcell"><a class="email" href="http://qa.debian.org/developer.php?login={maintainer/email}">    <td class="contentcell">
228    <xsl:value-of select="maintainer/name"/></a> [<a class="email" href="mailto:{maintainer/email}">mail</a>]</td>    <xsl:element name="a">
229        <xsl:attribute name="href">
230          <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
231          <xsl:call-template name="escape-name">
232            <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>
233          </xsl:call-template>
234        </xsl:attribute>
235        <xsl:value-of select="maintainer/name"/>
236      </xsl:element>
237      [<a class="email" href="mailto:{maintainer/email}">mail</a>]
238      </td>
239    </tr>    </tr>
240    <tr class="normalrow">    <tr class="normalrow">
241    <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>
242    <td class="contentcell">    <td class="contentcell">
243    <xsl:if test="uploaders">    <xsl:if test="uploaders">
244      <xsl:for-each select="uploaders/item">      <xsl:for-each select="uploaders/item">
245        <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">
246            <xsl:attribute name="href">
247              <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
248              <xsl:call-template name="escape-name">
249                <xsl:with-param name="text"><xsl:value-of select="email"/></xsl:with-param>
250              </xsl:call-template>
251            </xsl:attribute>
252            <xsl:value-of select="name"/>
253          </xsl:element>
254          [<a class="email" href="mailto:{email}">mail</a>]<br/>
255      </xsl:for-each>      </xsl:for-each>
256    </xsl:if>    </xsl:if>
257    <xsl:if test="not(uploaders)">    <xsl:if test="not(uploaders)">
# Line 138  Line 262 
262    <td class="labelcell">Standards-Version</td>    <td class="labelcell">Standards-Version</td>
263    <td class="contentcell"><xsl:value-of select="standards-version"/></td>    <td class="contentcell"><xsl:value-of select="standards-version"/></td>
264    </tr>    </tr>
265      <tr class="normalrow">
266      <td class="labelcell">Priority &amp; Section</td>
267      <td class="contentcell"><xsl:value-of select="priority"/> - <xsl:value-of select="section"/></td>
268      </tr>
269      <xsl:call-template name='add-vcs-info' />
270    <xsl:if test="architecture!='any' and architecture!='all'">    <xsl:if test="architecture!='any' and architecture!='all'">
271    <tr class="normalrow">    <tr class="normalrow">
272    <td class="labelcell">Architecture</td>    <td class="labelcell">Architecture</td>
# Line 152  Line 281 
281    <tr class="normalrow">    <tr class="normalrow">
282    <td class="labelcell">All bugs</td>    <td class="labelcell">All bugs</td>
283    <td class="contentcell">    <td class="contentcell">
284    <a href="http://bugs.debian.org/src:{$package}"><xsl:if test="$hasother">    <xsl:element name="a">
285      <xsl:value-of select="$other/bugs/@all"/>      <xsl:attribute name="href">
286    </xsl:if></a>        <xsl:text>http://bugs.debian.org/src:</xsl:text>
287          <xsl:call-template name="escape-name">
288            <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
289          </xsl:call-template>
290        </xsl:attribute>
291        <xsl:if test="$hasother">
292          <xsl:value-of select="$other/bugs/@all"/>
293        </xsl:if>
294      </xsl:element>
295    </td>    </td>
296    </tr>    </tr>
297    <tr class="normalrow">    <tr class="normalrow">
# Line 239  Line 376 
376    <tr class="normalrow">    <tr class="normalrow">
377    <td class="contentcell" colspan="2">    <td class="contentcell" colspan="2">
378    <form method="post" action="/cgi-bin/pts.cgi">    <form method="post" action="/cgi-bin/pts.cgi">
379        <p>
380      <input type="hidden" name="package" value="{$package}"/>      <input type="hidden" name="package" value="{$package}"/>
381      <select name="what">      <select name="what">
382        <option value="subscribe">Subscribe</option>        <option value="subscribe">Subscribe</option>
# Line 247  Line 385 
385      </select>      </select>
386      <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=''}}"/>
387      <input type="submit" name="submit" value="Send"/>      <input type="submit" name="submit" value="Send"/>
388        </p>
389    </form>    </form>
390    </td>    </td>
391    </tr>    </tr>
# Line 257  Line 396 
396    </td></tr>    </td></tr>
397    <tr class="normalrow">    <tr class="normalrow">
398    <td class="normalcell" colspan="2" style="text-align: left">    <td class="normalcell" colspan="2" style="text-align: left">
399      <ul>
400    <xsl:for-each select="binary/item">    <xsl:for-each select="binary/item">
401      <xsl:sort select="text()"/>      <xsl:sort select="text()"/>
402      <xsl:variable name="pkg" select="text()"/>      <xsl:variable name="pkg" select="text()"/>
# Line 315  Line 455 
455      </span>      </span>
456      </li>      </li>
457    </xsl:for-each>    </xsl:for-each>
458    </td></tr>    </ul></td></tr>
459    
460    <tr class="titlerow">    <tr class="titlerow">
461    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
462    Other available versions    Available versions
463    </td></tr>    </td></tr>
464    <xsl:if test="$hasexperimental">  
465      <!-- oldstable -->
466      <xsl:if test="$hasoldstable">
467    <tr class="normalrow">    <tr class="normalrow">
468    <td class="labelcell">Experimental</td>    <td class="labelcell"><a href="http://www.debian.org/releases/sarge/">Oldstable</a></td>
469    <td class="contentcell">    <td class="contentcell">
470    <xsl:value-of select="document(concat('../base/', $dir, '/experimental.xml'))/source/version"/>    <xsl:value-of select="document(concat('../base/', $dir, '/oldstable.xml'))/source/version"/>
471      </td>
472      </tr>
473      </xsl:if>
474      <xsl:if test="$hasoldstable-security">
475      <tr class="normalrow">
476      <td class="labelcell"><small>Oldstable Security Updates</small></td>
477      <td class="contentcell">
478      <xsl:value-of select="document(concat('../base/', $dir, '/oldstable-security.xml'))/source/version"/>
479      </td>
480      </tr>
481      </xsl:if>
482    
483      <!-- stable -->
484      <xsl:if test="$hasstable">
485      <tr class="normalrow">
486      <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>
487      <td class="contentcell">
488      <xsl:value-of select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/>
489    </td>    </td>
490    </tr>    </tr>
491    </xsl:if>    </xsl:if>
492    <xsl:if test="$hasstable-security">    <xsl:if test="$hasstable-security">
493    <tr class="normalrow">    <tr class="normalrow">
494    <td class="labelcell">Security Updates (stable)</td>    <td class="labelcell"><small>Stable Security Updates</small></td>
495    <td class="contentcell">    <td class="contentcell">
496    <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"/>
497    </td>    </td>
498    </tr>    </tr>
499    </xsl:if>    </xsl:if>
500    <xsl:if test="$hastesting-security">    <xsl:if test="$hass-p-u">
501    <tr class="normalrow">    <tr class="normalrow">
502    <td class="labelcell">Security Updates (testing)</td>    <td class="labelcell"><small>Stable Proposed Updates</small></td>
503    <td class="contentcell">    <td class="contentcell">
504    <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"/>
505    </td>    </td>
506    </tr>    </tr>
507    </xsl:if>    </xsl:if>
508    
509      <!-- testing -->
510    <xsl:if test="$hastesting">    <xsl:if test="$hastesting">
511    <tr class="normalrow">    <tr class="normalrow">
512    <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 515 
515    </td>    </td>
516    </tr>    </tr>
517    </xsl:if>    </xsl:if>
518      <xsl:if test="$hastesting-security">
519      <tr class="normalrow">
520      <td class="labelcell"><small>Testing Security Updates</small></td>
521      <td class="contentcell">
522      <xsl:value-of select="document(concat('../base/', $dir, '/testing-security.xml'))/source/version"/>
523      </td>
524      </tr>
525      </xsl:if>
526    <xsl:if test="$hast-p-u">    <xsl:if test="$hast-p-u">
527    <tr class="normalrow">    <tr class="normalrow">
528    <td class="labelcell">Testing Proposed Updates</td>    <td class="labelcell"><small>Testing Proposed Updates</small></td>
529    <td class="contentcell">    <td class="contentcell">
530    <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"/>
531    </td>    </td>
532    </tr>    </tr>
533    </xsl:if>    </xsl:if>
534    <xsl:if test="$hasstable">  
535      <!-- unstable -->
536      <xsl:if test="$hasunstable">
537    <tr class="normalrow">    <tr class="normalrow">
538    <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>    <td class="labelcell">Unstable</td>
539    <td class="contentcell">    <td class="contentcell">
540    <xsl:value-of select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/>    <xsl:value-of select="document(concat('../base/', $dir, '/unstable.xml'))/source/version"/>
541    </td>    </td>
542    </tr>    </tr>
543    </xsl:if>    </xsl:if>
544    <xsl:if test="$hass-p-u">  
545      <!-- experimental -->
546      <xsl:if test="$hasexperimental">
547    <tr class="normalrow">    <tr class="normalrow">
548    <td class="labelcell">Stable Proposed Updates</td>    <td class="labelcell">Experimental</td>
549    <td class="contentcell">    <td class="contentcell">
550    <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"/>
551    </td>    </td>
552    </tr>    </tr>
553    </xsl:if>    </xsl:if>
554    
555      <!-- secure-testing -->
556      <xsl:if test="$hassecure-testing">
557      <tr class="normalrow">
558      <td class="labelcell">Secure testing</td>
559      <td class="contentcell">
560      <xsl:value-of select="document(concat('../base/', $dir, '/secure-testing.xml'))/source/version"/>
561      </td>
562      </tr>
563      </xsl:if>
564    
565      <!-- volatile -->
566      <xsl:if test="$hasvolatile">
567      <tr class="normalrow">
568      <td class="labelcell">Volatile</td>
569      <td class="contentcell">
570      <xsl:value-of select="document(concat('../base/', $dir, '/volatile.xml'))/source/version"/>
571      </td>
572      </tr>
573      </xsl:if>
574    
575      <!-- Patches list [FG] -->
576      <xsl:if test="$other/@patches='yes'">
577        <tr class="titlerow">
578        <td class="titlecell" colspan="2">
579        Patches
580        </td></tr>
581        <tr>
582        <td class="contentcell" colspan="2" style="text-align: left">
583        <ul>
584        <xsl:for-each select="$other/patches/item">
585          <li>
586            <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>
587          </li>
588        </xsl:for-each>
589        <xsl:if test="$other/bugs/@patch!='0'">
590          <li>
591            <xsl:element name="a">
592              <xsl:attribute name="href">
593                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
594                <xsl:call-template name="escape-name">
595                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
596                </xsl:call-template>
597                <xsl:text>&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done</xsl:text>
598              </xsl:attribute>
599              Patches from BTS (<xsl:value-of select="$other/bugs/@patch"/>)
600            </xsl:element>
601          </li>
602        </xsl:if>
603        </ul>
604        </td>
605        </tr>
606      </xsl:if>
607    
608    
609    <tr class="titlerow">    <tr class="titlerow">
610    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
611    Other links    Other links
612    </td></tr>    </td></tr>
613    <tr>    <tr>
614    <td class="contentcell" colspan="2" style="text-align: left">    <td class="contentcell" colspan="2" style="text-align: left">
615      <ul>
616      <li>
617        <xsl:element name="a">
618          <xsl:attribute name="href">
619            <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
620            <xsl:value-of select="directory"/>
621            <xsl:text>/current/changelog</xsl:text>
622          </xsl:attribute>
623          <xsl:text>Changelog</xsl:text>
624        </xsl:element>
625        /
626        <xsl:element name="a">
627          <xsl:attribute name="href">
628            <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
629            <xsl:value-of select="directory"/>
630            <xsl:text>/current/copyright</xsl:text>
631          </xsl:attribute>
632          <xsl:text>Copyright</xsl:text>
633        </xsl:element>
634      </li>
635    <xsl:if test="architecture!='all'">    <xsl:if test="architecture!='all'">
636      <li><a href="http://buildd.debian.org/build.php?pkg={$package}">Buildd logs</a></li>      <li>
637          <xsl:element name="a">
638            <xsl:attribute name="href">
639              <xsl:text>http://buildd.debian.org/pkg.cgi?pkg=</xsl:text>
640              <xsl:call-template name="escape-name">
641                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
642              </xsl:call-template>
643            </xsl:attribute>
644            <xsl:text>Buildd logs</xsl:text>
645          </xsl:element>
646          <xsl:text> (</xsl:text>
647          <xsl:element name="a">
648            <xsl:attribute name="href">
649              <xsl:text>http://experimental.debian.net/build.php?pkg=</xsl:text>
650              <xsl:call-template name="escape-name">
651                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
652              </xsl:call-template>
653            </xsl:attribute>
654            <xsl:text>more</xsl:text>
655          </xsl:element>
656          <xsl:text>)</xsl:text>
657        </li>
658    </xsl:if>    </xsl:if>
659      <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
660        <li>
661          <xsl:element name="a">
662            <xsl:attribute name="href">
663              <xsl:text>http://ddtp.debian.org/stats/pdesc/report.cgi?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:text>&amp;lang=all&amp;type=src-drvbin&amp;subword=0</xsl:text>
668            </xsl:attribute>
669            Description's translations (DDTP)
670          </xsl:element>
671        </li>
672    <xsl:if test="$other/@debconf='yes'">    <xsl:if test="$other/@debconf='yes'">
673      <li><a href="http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&amp;package={$package}">Debconf templates's translations (DDTP)</a></li>      <li>
674          <xsl:element name="a">
675            <xsl:attribute name="href">
676              <xsl:text>http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&amp;package=</xsl:text>
677              <xsl:call-template name="escape-name">
678                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
679              </xsl:call-template>
680            </xsl:attribute>
681            Debconf templates's translations (DDTP)
682          </xsl:element>
683        </li>
684    </xsl:if>    </xsl:if>
685      -->
686    <xsl:if test="$hasunstable and $other/debcheck/@unstable='yes'">    <xsl:if test="$hasunstable and $other/debcheck/@unstable='yes'">
687      <li><a href="http://qa.debian.org/debcheck.php?dist=unstable&amp;package={$package}">Debcheck on unstable</a></li>      <li>
688          <xsl:element name="a">
689            <xsl:attribute name="href">
690              <xsl:text>http://qa.debian.org/debcheck.php?dist=unstable&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 unstable</xsl:text>
696          </xsl:element>
697        </li>
698    </xsl:if>    </xsl:if>
699    <xsl:if test="$hastesting and $other/debcheck/@testing='yes'">    <xsl:if test="$hastesting and $other/debcheck/@testing='yes'">
700      <li><a href="http://qa.debian.org/debcheck.php?dist=testing&amp;package={$package}">Debcheck on testing</a></li>      <li>
701          <xsl:element name="a">
702            <xsl:attribute name="href">
703              <xsl:text>http://qa.debian.org/debcheck.php?dist=testing&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 testing</xsl:text>
709          </xsl:element>
710        </li>
711    </xsl:if>    </xsl:if>
712    <xsl:if test="$hasstable and $other/debcheck/@stable='yes'">    <xsl:if test="$hasstable and $other/debcheck/@stable='yes'">
713      <li><a href="http://qa.debian.org/debcheck.php?dist=stable&amp;package={$package}">Debcheck on stable</a></li>      <li>
714          <xsl:element name="a">
715            <xsl:attribute name="href">
716              <xsl:text>http://qa.debian.org/debcheck.php?dist=stable&amp;package=</xsl:text>
717              <xsl:call-template name="escape-name">
718                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
719              </xsl:call-template>
720            </xsl:attribute>
721            <xsl:text>Debcheck on stable</xsl:text>
722          </xsl:element>
723        </li>
724    </xsl:if>    </xsl:if>
725      <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->
726                                  <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-~/()&#34; ', &quot;'&quot;)"/>
727      <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '_____________________')"/>
728        <li><a href="http://lintian.debian.org/reports/m{$_name}.html#{$package}">Lintian report</a></li>
729      <li>
730        <xsl:element name="a">
731          <xsl:attribute name="href">
732            <xsl:text>http://qa.debian.org/developer.php?popcon=</xsl:text>
733            <xsl:call-template name="escape-name">
734              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
735            </xsl:call-template>
736          </xsl:attribute>
737          <xsl:text>Popcon stats</xsl:text>
738        </xsl:element>
739      </li>
740      </ul>
741    </td>    </td>
742    </tr>    </tr>
743    
# Line 420  Line 758 
758    </td></tr>    </td></tr>
759    <tr class="normalrow">    <tr class="normalrow">
760    <td class="normalcell" colspan="2" style="text-align: left">    <td class="normalcell" colspan="2" style="text-align: left">
761      <ul>
762    <xsl:for-each select="files/item">    <xsl:for-each select="files/item">
763      <li>      <li>
764      <xsl:element name="a">      <xsl:element name="a">
# Line 439  Line 778 
778      </xsl:element>      </xsl:element>
779      </li>      </li>
780    </xsl:for-each>    </xsl:for-each>
781    </td></tr>    </ul></td></tr>
782    
783    </table>    </table>
784    <!-- END LEFT SIDE -->    <!-- END LEFT SIDE -->
# Line 457  Line 796 
796        <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>
797      </xsl:if>      </xsl:if>
798      <xsl:if test="not(starts-with(standards-version, $lastsv))">      <xsl:if test="not(starts-with(standards-version, $lastsv))">
799        <li>You should update the package to follow the last version of        <li>The package should be updated to follow the last version of
800        Debian Policy (Standards-Version        <a href="http://www.debian.org/doc/debian-policy/">Debian Policy</a> (Standards-Version
801        <xsl:value-of select="$lastsv"/> instead of        <xsl:value-of select="$lastsv"/> instead of
802        <xsl:value-of select="standards-version"/>).</li>        <xsl:value-of select="standards-version"/>).</li>
803      </xsl:if>      </xsl:if>
# Line 466  Line 805 
805        <xsl:for-each select="$other/todo/item">        <xsl:for-each select="$other/todo/item">
806          <xsl:call-template name="outputitem"/>          <xsl:call-template name="outputitem"/>
807        </xsl:for-each>        </xsl:for-each>
808          <!-- new upstream version goes in todo [FG] -->
809          <xsl:if test="$other/@watch='yes' and $other/watch/@new!='0'">
810            <li>A new upstream version was found:
811               (<xsl:value-of select="$other/watch/@new"/>). <a href="{$other/watch/@url}"><xsl:value-of select="$other/watch/@url"/></a></li>
812          </xsl:if>
813          <xsl:if test="$other/bugs/@patch!='0'">
814            <li>The Bug Tracking System contains
815            <xsl:element name="a">
816              <xsl:attribute name="href">
817                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
818                <xsl:call-template name="escape-name">
819                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
820                </xsl:call-template>
821                <xsl:text>&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done</xsl:text>
822              </xsl:attribute>
823              <xsl:value-of select="$other/bugs/@patch"/> patch<xsl:if test="$other/bugs/@patch!='1'">es</xsl:if>
824            </xsl:element>, you should include
825            <xsl:if test="$other/bugs/@patch!='1'">them</xsl:if>
826            <xsl:if test="$other/bugs/@patch='1'">it</xsl:if>.
827            </li>
828          </xsl:if>
829      </xsl:if>      </xsl:if>
830    </xsl:variable>    </xsl:variable>
831    <xsl:if test="count($todo)>0 and string($todo)!=''">    <xsl:if test="count($todo)>0 and string($todo)!=''">
# Line 474  Line 834 
834    Todo    Todo
835    </td></tr>    </td></tr>
836    <tr class="normalrow">    <tr class="normalrow">
837    <td class="contentcell2"><xsl:copy-of select="$todo"/>    <td class="contentcell2">
838      <ul>
839      <xsl:copy-of select="$todo"/>
840      </ul>
841    </td>    </td>
842    </tr>    </tr>
843    </xsl:if>    </xsl:if>
# Line 483  Line 846 
846    <xsl:variable name="problems">    <xsl:variable name="problems">
847      <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">
848        <li>The package has not yet entered <a        <li>The package has not yet entered <a
849        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>
850        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
851        delay is over.</li>        delay is over.
852          <xsl:element name="a">
853            <xsl:attribute name="href">
854              <xsl:text>http://bjorn.haxx.se/debian/testing.pl?package=</xsl:text>
855              <xsl:call-template name="escape-name">
856                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
857              </xsl:call-template>
858            </xsl:attribute>
859            Check why
860          </xsl:element>
861          .</li>
862      </xsl:if>      </xsl:if>
863      <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">      <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">
864        <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 866 
866        and your package only follows        and your package only follows
867        <xsl:value-of select="standards-version"/>...</li>        <xsl:value-of select="standards-version"/>...</li>
868      </xsl:if>      </xsl:if>
869        <xsl:if test="@release!='unstable' and @release!='experimental'">
870          <li>This package is neither part of unstable nor experimental. This
871          probably means that the package <a
872          href="http://ftp-master.debian.org/removals.txt">has been removed</a> (or
873          has been renamed). Thus the information here is of little interest ...
874          the package is going to disappear unless someone takes it over and
875          reintroduces it into unstable.</li>
876        </xsl:if>
877      <xsl:if test="$hasother">      <xsl:if test="$hasother">
878    
879          <!-- Override disparity handling. [JvW] -->
880          <xsl:if test="$other/@override='yes'">
881            <xsl:for-each select="$other/override/group">
882              <li>There were override disparities found in suite <xsl:value-of
883                  select="@suite"/>:
884                <ul>
885                  <xsl:for-each select="disparity">
886                    <li><xsl:value-of select="text()"/></li>
887                  </xsl:for-each>
888                </ul>
889              </li>
890            </xsl:for-each>
891          </xsl:if>
892    
893          <!-- Wnpp handling. [PvR] -->
894          <xsl:if test="$other/@wnpp='yes'">
895          <li>
896            <xsl:choose>
897              <xsl:when test="$other/wnpp/@type='O'">
898              <span style="font-weight: bold">This package has been orphaned</span>.
899              This means that it does not have a real maintainer at the
900              moment. Please consider adopting this package if you are interested in it.
901              </xsl:when>
902              <xsl:when test="$other/wnpp/@type='ITA'">
903              This package has been orphaned, but someone intends to maintain it.
904              </xsl:when>
905              <xsl:when test="$other/wnpp/@type='RFA'">
906              The current maintainer is looking for someone who can take over
907              maintenance of this package. If you are interested in this package,
908              please consider taking it over. Alternatively you may
909              want to be co-maintainer in order to help the actual maintainer.
910              </xsl:when>
911              <xsl:when test="$other/wnpp/@type='RFH'">
912              The current maintainer is looking for someone who can help with the
913              maintenance of this package. If you are interested in this package,
914              please consider helping out. One way you can help is offer to be a
915              co-maintainer or triage bugs in the bts.
916              </xsl:when>
917              <xsl:when test="$other/wnpp/@type='ITP'">
918              The WNPP database contains an ITP (Intent To Package) entry for
919              this package. This is probably an error, as it has already been
920              packaged.
921              </xsl:when>
922              <xsl:when test="$other/wnpp/@type='RFP'">
923              The WNPP database contains an RFP (Request For Package) entry
924              for this package.  This is probably an error, as it has already
925              been packaged.
926              </xsl:when>
927              <xsl:when test="$other/wnpp/@type='RM'">
928              <span style="font-weight: bold">This package has been requested to be
929              removed</span>.
930              This means that, when this request gets processed by an ftp-master, this
931              package will no longer be in unstable, and will automatically be removed
932              from testing too afterwards. If for some reason you want keep this
933              package in unstable, please discuss so in the bug.
934              </xsl:when>
935              <xsl:otherwise>
936              The WNPP database contains an entry for this package,
937              but it is unclear what kind of entry it is. This is probably an error.
938              </xsl:otherwise>
939            </xsl:choose>
940            <xsl:variable name="bn" select="$other/wnpp/@bugnumber"/>
941            Please see bug number <a href="http://bugs.debian.org/{$bn}">
942            #<xsl:value-of select="$bn"/></a> for more information.
943          </li>
944          </xsl:if>
945    
946        <!-- uscan output if present [FG] -->
947        <xsl:if test="$other/@watch='yes'">
948          <li>
949          <xsl:if test="$other/watch/@warning!=''">
950            uscan had problems while searching for a new upstream version: <xsl:value-of select="$other/watch/@warning"/>
951          </xsl:if>
952          </li>
953        </xsl:if>
954    
955          <!-- Misc problems reported -->
956        <xsl:for-each select="$other/problems/item">        <xsl:for-each select="$other/problems/item">
957          <xsl:call-template name="outputitem"/>          <xsl:call-template name="outputitem"/>
958        </xsl:for-each>        </xsl:for-each>
# Line 505  Line 964 
964    Problems    Problems
965    </td></tr>    </td></tr>
966    <tr class="normalrow">    <tr class="normalrow">
967    <td class="contentcell2"><xsl:copy-of select="$problems"/>    <td class="contentcell2">
968      <ul><xsl:copy-of select="$problems"/></ul>
969    </td>    </td>
970    </tr>    </tr>
971    </xsl:if>    </xsl:if>
# Line 517  Line 977 
977    </td></tr>    </td></tr>
978    <tr class="normalrow">    <tr class="normalrow">
979    <td class="contentcell2" style="text-align: left">    <td class="contentcell2" style="text-align: left">
980      <ul>
981    <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">    <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
982      <xsl:call-template name="outputitem"/>      <xsl:call-template name="outputitem"/>
983    </xsl:for-each>    </xsl:for-each>
984      </ul>
985    </td>    </td>
986    </tr>    </tr>
987    </xsl:if>    </xsl:if>
988    
989    
990    <xsl:variable name="static">    <xsl:variable name="static">
991      <xsl:if test="$hasnews">      <xsl:if test="$hasnews">
# Line 538  Line 1000 
1000      Static Information      Static Information
1001      </td></tr>      </td></tr>
1002      <tr class="normalrow">      <tr class="normalrow">
1003      <td class="contentcell2"><xsl:copy-of select="$static"/></td>      <td class="contentcell2">
1004        <ul><xsl:copy-of select="$static"/></ul>
1005        </td>
1006      </tr>      </tr>
1007    </xsl:if>    </xsl:if>
1008    
# Line 555  Line 1019 
1019      Latest News      Latest News
1020      </td></tr>      </td></tr>
1021      <tr class="normalrow">      <tr class="normalrow">
1022      <td class="contentcell2"><xsl:copy-of select="$news"/></td>      <td class="contentcell2">
1023        <ul><xsl:copy-of select="$news"/></ul>
1024        </td>
1025      </tr>      </tr>
1026    </xsl:if>    </xsl:if>
1027    
# Line 563  Line 1029 
1029    <!-- END RIGHT SIDE -->    <!-- END RIGHT SIDE -->
1030    </td></tr>    </td></tr>
1031    </table>    </table>
1032    Warning: the "Latest News" section is not yet automatically updated. I'm waiting  
1033    that master.debian.org is upgraded to woody (stable) in order to be able    <!-- END NON REMOVED PACKAGE -->
1034    to setup the required scripts. Those scripts will automatically update the    </xsl:otherwise>
1035    "Latest News" and they'll let you add your own news items. Please be patient.    </xsl:choose>
1036    
1037    <hr/>    <hr/>
1038    Debian Package Tracking System - Copyright 2002-2003 Raphaël Hertzog<br/>    <p>
1039      Debian Package Tracking System - Copyright 2002-2006 Raphaël Hertzog and
1040      others<br/>
1041      Report problems to the <a href="http://bugs.debian.org/qa.debian.org"
1042      >qa.debian.org pseudopackage</a><br/>
1043    Last modified : <xsl:value-of select="$date"/>    Last modified : <xsl:value-of select="$date"/>
1044      </p>
1045    </body>    </body>
1046    </html>    </html>
1047  </xsl:template>  </xsl:template>

Legend:
Removed from v.551  
changed lines
  Added in v.1561

  ViewVC Help
Powered by ViewVC 1.1.5