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

Legend:
Removed from v.1087  
changed lines
  Added in v.1786

  ViewVC Help
Powered by ViewVC 1.1.5