/[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 1763 by zack, Fri Nov 30 22:18:53 2007 UTC revision 1773 by zack, Sat Dec 1 17:56:06 2007 UTC
# Line 1  Line 1 
1  <?xml version="1.0" encoding="utf-8" ?>  <?xml version="1.0" encoding="utf-8" ?>
2    
3  <!--  <!--
4  # Copyright 2002-2005 Raphaël Hertzog and others  # 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 29  Line 29 
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 -->
# Line 122  other-to-%xx, especially % to %25... For Line 125  other-to-%xx, especially % to %25... For
125  </xsl:template>  </xsl:template>
126    
127  <xsl:template name="add-maintenance-info">  <xsl:template name="add-maintenance-info">
128      <xsl:param name="email" />
129    <xsl:variable name="dm">    <xsl:variable name="dm">
130      <xsl:if test="dm-upload-allowed and string(dm-upload-allowed)='yes'">      <xsl:if test="dm-upload-allowed and string(dm-upload-allowed)='yes'">
131        <xsl:text>true</xsl:text>        <xsl:text>true</xsl:text>
132      </xsl:if>      </xsl:if>
133    </xsl:variable>    </xsl:variable>
134    <xsl:variable name="lownmu">    <xsl:variable name="lownmu">
135      <xsl:if test="maintainer/low-threshold-nmu      <xsl:if test="$low-nmu-emails/email[text()=$email]">
         and string(maintainer/low-threshold-nmu)='yes'">  
136        <xsl:text>true</xsl:text>        <xsl:text>true</xsl:text>
137      </xsl:if>      </xsl:if>
138    </xsl:variable>    </xsl:variable>
# Line 168  other-to-%xx, especially % to %25... For Line 171  other-to-%xx, especially % to %25... For
171      </td></tr>      </td></tr>
172      <tr class="normalrow">      <tr class="normalrow">
173      <td class="contentcell2">      <td class="contentcell2">
174      <ul><xsl:copy-of select="$news"/></ul>      <ul id="news-list"><xsl:copy-of select="$news"/></ul>
175      </td>      </td>
176      </tr>      </tr>
177    </xsl:if>    </xsl:if>
# Line 200  other-to-%xx, especially % to %25... For Line 203  other-to-%xx, especially % to %25... For
203      <xsl:when test="substring(filename,string-length(filename)-6, 7)='diff.gz'">      <xsl:when test="substring(filename,string-length(filename)-6, 7)='diff.gz'">
204        <xsl:text>diff</xsl:text>        <xsl:text>diff</xsl:text>
205      </xsl:when>      </xsl:when>
206      <xsl:when test="substring(filename,string-length(filename)-10, 8)='orig.tar'">      <xsl:when test="substring(filename,string-length(filename)-5, 3)='tar'">
207        <xsl:text>orig</xsl:text>        <xsl:text>orig</xsl:text>
208      </xsl:when>      </xsl:when>
209      <xsl:otherwise><xsl:text></xsl:text></xsl:otherwise>      <xsl:otherwise><xsl:text></xsl:text></xsl:otherwise>
210    </xsl:choose>    </xsl:choose>
211  </xsl:template>  </xsl:template>
212    
213  <xsl:variable name="static">  <xsl:template name="maintainer-email">
214    <xsl:if test="$hasnews">    <xsl:param name="email" />
215      <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">    <a class="email" href="mailto:{$email}">
216        <xsl:call-template name="outputitem"/>      <img alt="[email]" src="../common/email.png" title="email" />
217      </xsl:for-each>    </a>
218    </xsl:if>  </xsl:template>
 </xsl:variable>  
   
 <xsl:variable name="news">  
   <xsl:if test="$hasnews">  
     <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">  
       <xsl:call-template name="outputitem"/>  
     </xsl:for-each>  
   </xsl:if>  
 </xsl:variable>  
   
 <!-- All the work is done in a single template -->  
 <xsl:template match="source">  
   
   <!-- Start of html -->  
   <xsl:text disable-output-escaping="yes">  
   &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;  
   </xsl:text>  
   <html>  
   <head>  
   <meta name="ROBOTS" content="NOFOLLOW"/>  
   <link type="text/css" title="Default" rel="stylesheet" href="../common/pts.css"/>  
   <link type="text/css" title="Standard link rendering" rel="alternate stylesheet" href="../common/pts2.css"/>  
   <link type="text/css" title="Compact rendering" rel="alternate stylesheet" href="../common/compact.css"/>  
   <xsl:if test="count($news)>0 and string($news)!=''">  
     <link rel="alternate" type="application/rss+xml" title="RSS"  
       href="{$package}/news.rss20.xml" />  
   </xsl:if>  
   <title>Overview of <xsl:value-of select="$package"/> source package</title>  
   </head>  
   <body>  
   
   <form method="get" action="/common/index.html" style="float: right;">  
   <!-- this link should make lynx/links happy [FG] -->  
   <p>Jump to package (<a href="/">home page</a>): <br/>  
   <input type="text" name="src" value=""/></p>  
   </form>  
   <h1>Overview of  
   <xsl:element name="a">  
     <xsl:attribute name="href">  
       <xsl:text>http://packages.debian.org/src:</xsl:text>  
        <xsl:value-of select="$package"/>  
     </xsl:attribute>  
    <xsl:value-of select="$package"/>  
   </xsl:element>  
   source package</h1>  
   
   <div id="body">  
   <xsl:choose>  
   <xsl:when test="$removed='yes'">  
   <!-- REMOVED PACKAGE -->  
   <p>This package is not part of any Debian distribution. Thus you won't  
   find much information here. The package is either very new and hasn't  
   appeared on mirrors yet, or it's an old package that eventually got removed.  
   The old news are kept for historic purpose only.</p>  
   
   <table class="righttable">  
     <xsl:call-template name="output-static">  
       <xsl:with-param name="static" select="$static" />  
     </xsl:call-template>  
     <xsl:call-template name="output-news">  
       <xsl:with-param name="news" select="$news" />  
     </xsl:call-template>  
   </table>  
219    
220    <!-- END REMOVED PACKAGE -->  <xsl:template name="general-information">
   </xsl:when>  
   <xsl:otherwise>  
   <!-- NON REMOVED PACKAGE -->  
   
   <table class="containertable">  
   <tr class="containerrow" valign="top">  
   <td class="containercell">  
   <!-- LEFT SIDE -->  
   <table class="lefttable">  
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">Latest 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        <xsl:element name="a">            <xsl:element name="a">
260          <xsl:attribute name="href">              <xsl:attribute name="href">
261            <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>                <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
262            <xsl:call-template name="escape-name">                <xsl:call-template name="escape-name">
263              <xsl:with-param name="text"><xsl:value-of select="email"/></xsl:with-param>                  <xsl:with-param name="text"><xsl:value-of select="email"/></xsl:with-param>
264            </xsl:call-template>                </xsl:call-template>
265          </xsl:attribute>              </xsl:attribute>
266          <xsl:value-of select="name"/>              <xsl:value-of select="name"/>
267        </xsl:element>            </xsl:element>
268        [<a class="email" href="mailto:{email}">mail</a>]<br/>            <xsl:text> </xsl:text>
269      </xsl:for-each>            <xsl:call-template name="maintainer-email">
270    </xsl:if>              <xsl:with-param name="email" select="email" />
271    <xsl:if test="not(uploaders)">            </xsl:call-template>
272      <a class="none" title="You should find some co-maintainers ..." name="fake">None</a>            <br />
273    </xsl:if>          </xsl:for-each>
274    <xsl:call-template name='add-maintenance-info' />        </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' />    <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" id="bugs_all">  
   <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" id="bugs_rc">  
   <td class="labelcell"><span class="indented">Release Critical</span></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" id="bugs_in">  
   <td class="labelcell"><span class="indented">Important and Normal</span></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" id="bugs_mw">  
   <td class="labelcell"><span class="indented">Minor and Wishlist</span></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" id="bugs_fp">  
   <td class="labelcell"><span class="indented">Fixed and Pending</span></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      <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        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      <p>        <xsl:element name="a">
309      <input type="hidden" name="package" value="{$package}"/>          <xsl:attribute name="href">
310      <select name="what">            <xsl:text>http://bugs.debian.org/src:</xsl:text>
311        <option value="subscribe">Subscribe</option>            <xsl:call-template name="escape-name">
312        <option value="unsubscribe">Unsubscribe</option>              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
313        <option value="advanced">Advanced mode</option>            </xsl:call-template>
314      </select>          </xsl:attribute>
315      <input type="text" name="email" size="15" value="your email" onFocus="if(email.value=='your email'){{email.value=''}}"/>          <xsl:if test="$hasother">
316      <input type="submit" name="submit" value="Send"/>            <xsl:value-of select="$other/bugs/@all"/>
317      </p>          </xsl:if>
318    </form>        </xsl:element>
319    </td>      </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 class="binpkg">  
     <a class="binpkg" 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 bugs</acronym></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 bugs</acronym></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 bugs</acronym></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/sarge/">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>    </xsl:if>
584    
585    <!-- secure-testing -->    <!-- secure-testing -->
586    <xsl:if test="$hassecure-testing">    <xsl:if test="$hassecure-testing">
587    <tr class="normalrow">      <tr class="normalrow">
588    <td class="labelcell">Secure testing</td>        <td class="labelcell">Secure testing</td>
589    <td class="contentcell">        <td class="contentcell">
590    <xsl:value-of select="document(concat('../base/', $dir, '/secure-testing.xml'))/source/version"/>          <xsl:value-of select="document(concat('../base/', $dir, '/secure-testing.xml'))/source/version"/>
591    </td>        </td>
592    </tr>      </tr>
593    </xsl:if>    </xsl:if>
594    
595    <!-- volatile -->    <!-- volatile -->
596    <xsl:if test="$hasvolatile">    <xsl:if test="$hasvolatile">
597    <tr class="normalrow">      <tr class="normalrow">
598    <td class="labelcell">Volatile</td>        <td class="labelcell">Volatile</td>
599    <td class="contentcell">        <td class="contentcell">
600    <xsl:value-of select="document(concat('../base/', $dir, '/volatile.xml'))/source/version"/>          <xsl:value-of select="document(concat('../base/', $dir, '/volatile.xml'))/source/version"/>
601    </td>        </td>
602    </tr>      </tr>
603    </xsl:if>    </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          <xsl:element name="a">                <xsl:element name="a">
624            <xsl:attribute name="href">                  <xsl:attribute name="href">
625              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>                    <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
626              <xsl:call-template name="escape-name">                    <xsl:call-template name="escape-name">
627                <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>
628              </xsl:call-template>                    </xsl:call-template>
629              <xsl:text>&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done</xsl:text>                    <xsl:text>&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done</xsl:text>
630            </xsl:attribute>                  </xsl:attribute>
631            Patches from BTS (<xsl:value-of select="$other/bugs/@patch"/>)                  Patches from BTS (<xsl:value-of select="$other/bugs/@patch"/>)
632          </xsl:element>                </xsl:element>
633        </li>              </li>
634      </xsl:if>            </xsl:if>
635      </ul>          </ul>
636      </td>        </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>          <li>
650      <xsl:element name="a">            <xsl:element name="a">
651        <xsl:attribute name="href">              <xsl:attribute name="href">
652          <xsl:text>http://packages.debian.org/changelogs/</xsl:text>                <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
653          <xsl:value-of select="directory"/>                <xsl:value-of select="directory"/>
654          <xsl:text>/current/changelog</xsl:text>                <xsl:text>/current/changelog</xsl:text>
655        </xsl:attribute>              </xsl:attribute>
656        <xsl:text>Changelog</xsl:text>              <xsl:text>Changelog</xsl:text>
657      </xsl:element>            </xsl:element>
658      /            /
659      <xsl:element name="a">            <xsl:element name="a">
660        <xsl:attribute name="href">              <xsl:attribute name="href">
661          <xsl:text>http://packages.debian.org/changelogs/</xsl:text>                <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
662          <xsl:value-of select="directory"/>                <xsl:value-of select="directory"/>
663          <xsl:text>/current/copyright</xsl:text>                <xsl:text>/current/copyright</xsl:text>
664        </xsl:attribute>              </xsl:attribute>
665        <xsl:text>Copyright</xsl:text>              <xsl:text>Copyright</xsl:text>
666      </xsl:element>            </xsl:element>
667    </li>          </li>
668    <xsl:if test="architecture!='all'">          <xsl:if test="architecture!='all'">
669      <li>            <li>
670        <xsl:element name="a">              <xsl:element name="a">
671          <xsl:attribute name="href">                <xsl:attribute name="href">
672            <xsl:text>http://buildd.debian.org/pkg.cgi?pkg=</xsl:text>                  <xsl:text>http://buildd.debian.org/pkg.cgi?pkg=</xsl:text>
673            <xsl:call-template name="escape-name">                  <xsl:call-template name="escape-name">
674              <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>
675            </xsl:call-template>                  </xsl:call-template>
676          </xsl:attribute>                </xsl:attribute>
677          <xsl:text>Buildd logs</xsl:text>                <xsl:text>Buildd logs</xsl:text>
678        </xsl:element>              </xsl:element>
679        <xsl:text> (</xsl:text>              <xsl:text> (</xsl:text>
680        <xsl:element name="a">              <xsl:element name="a">
681          <xsl:attribute name="href">                <xsl:attribute name="href">
682            <xsl:text>http://experimental.debian.net/build.php?pkg=</xsl:text>                  <xsl:text>http://experimental.debian.net/build.php?pkg=</xsl:text>
683            <xsl:call-template name="escape-name">                  <xsl:call-template name="escape-name">
684              <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>
685            </xsl:call-template>                  </xsl:call-template>
686          </xsl:attribute>                </xsl:attribute>
687          <xsl:text>more</xsl:text>                <xsl:text>more</xsl:text>
688        </xsl:element>              </xsl:element>
689        <xsl:text>)</xsl:text>              <xsl:text>)</xsl:text>
690      </li>            </li>
691    </xsl:if>          </xsl:if>
692    <!-- DISABLED until ddtp.debian.org is back up          <!-- DISABLED until ddtp.debian.org is back up
693      <li>          <li>
694        <xsl:element name="a">            <xsl:element name="a">
695          <xsl:attribute name="href">              <xsl:attribute name="href">
696            <xsl:text>http://ddtp.debian.org/stats/pdesc/report.cgi?package=</xsl:text>                <xsl:text>http://ddtp.debian.org/stats/pdesc/report.cgi?package=</xsl:text>
697            <xsl:call-template name="escape-name">                <xsl:call-template name="escape-name">
698              <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>
699            </xsl:call-template>                </xsl:call-template>
700            <xsl:text>&amp;lang=all&amp;type=src-drvbin&amp;subword=0</xsl:text>                <xsl:text>&amp;lang=all&amp;type=src-drvbin&amp;subword=0</xsl:text>
701          </xsl:attribute>              </xsl:attribute>
702          Description's translations (DDTP)              Description's translations (DDTP)
703        </xsl:element>            </xsl:element>
704      </li>          </li>
705    <xsl:if test="$other/@debconf='yes'">          <xsl:if test="$other/@debconf='yes'">
706      <li>            <li>
707        <xsl:element name="a">              <xsl:element name="a">
708          <xsl:attribute name="href">                <xsl:attribute name="href">
709            <xsl:text>http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&amp;package=</xsl:text>                  <xsl:text>http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&amp;package=</xsl:text>
710            <xsl:call-template name="escape-name">                  <xsl:call-template name="escape-name">
711              <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>
712            </xsl:call-template>                  </xsl:call-template>
713          </xsl:attribute>                </xsl:attribute>
714          Debconf templates's translations (DDTP)                Debconf templates's translations (DDTP)
715        </xsl:element>              </xsl:element>
716      </li>            </li>
717    </xsl:if>          </xsl:if>
718    -->          -->
719    <xsl:if test="($hasunstable and $other/debcheck/@unstable='yes')          <xsl:if test="($hasunstable and $other/debcheck/@unstable='yes')
720        or ($hastesting and $other/debcheck/@testing='yes')            or ($hastesting and $other/debcheck/@testing='yes')
721        or ($hasstable and $other/debcheck/@stable='yes')">            or ($hasstable and $other/debcheck/@stable='yes')">
722      <li>            <li>
723        Debcheck on:              Debcheck on:
724        <xsl:if test="$hasunstable">              <xsl:if test="$hasunstable">
725          <xsl:text> </xsl:text>                <xsl:text> </xsl:text>
726          <xsl:element name="a">                <xsl:element name="a">
727            <xsl:attribute name="href">                  <xsl:attribute name="href">
728              <xsl:text>http://qa.debian.org/debcheck.php?dist=unstable&amp;package=</xsl:text>                    <xsl:text>http://qa.debian.org/debcheck.php?dist=unstable&amp;package=</xsl:text>
729              <xsl:call-template name="escape-name">                    <xsl:call-template name="escape-name">
730                <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>
731              </xsl:call-template>                    </xsl:call-template>
732            </xsl:attribute>                  </xsl:attribute>
733            <xsl:text>unstable</xsl:text>                  <xsl:text>unstable</xsl:text>
734          </xsl:element>                </xsl:element>
735        </xsl:if>              </xsl:if>
736        <xsl:if test="$hastesting">              <xsl:if test="$hastesting">
737          <xsl:text> </xsl:text>                <xsl:text> </xsl:text>
738          <xsl:element name="a">                <xsl:element name="a">
739            <xsl:attribute name="href">                  <xsl:attribute name="href">
740              <xsl:text>http://qa.debian.org/debcheck.php?dist=testing&amp;package=</xsl:text>                    <xsl:text>http://qa.debian.org/debcheck.php?dist=testing&amp;package=</xsl:text>
741              <xsl:call-template name="escape-name">                    <xsl:call-template name="escape-name">
742                <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>
743              </xsl:call-template>                    </xsl:call-template>
744            </xsl:attribute>                  </xsl:attribute>
745            <xsl:text>testing</xsl:text>                  <xsl:text>testing</xsl:text>
746          </xsl:element>                </xsl:element>
747        </xsl:if>              </xsl:if>
748        <xsl:if test="$hasstable">              <xsl:if test="$hasstable">
749          <xsl:element name="a">                <xsl:text> </xsl:text>
750            <xsl:attribute name="href">                <xsl:element name="a">
751              <xsl:text>http://qa.debian.org/debcheck.php?dist=stable&amp;package=</xsl:text>                  <xsl:attribute name="href">
752              <xsl:call-template name="escape-name">                    <xsl:text>http://qa.debian.org/debcheck.php?dist=stable&amp;package=</xsl:text>
753                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>                    <xsl:call-template name="escape-name">
754              </xsl:call-template>                      <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
755            </xsl:attribute>                    </xsl:call-template>
756            <xsl:text>stable</xsl:text>                  </xsl:attribute>
757          </xsl:element>                  <xsl:text>stable</xsl:text>
758        </xsl:if>                </xsl:element>
759      </li>              </xsl:if>
760    </xsl:if>            </li>
761    <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->          </xsl:if>
762                                <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-~/()&#34; ', &quot;'&quot;)"/>          <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->
763    <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '_____________________')"/>          <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-~/()&#34; ', &quot;'&quot;)"/>
764      <li><a href="http://lintian.debian.org/reports/m{$_name}.html#{$package}">Lintian report</a></li>          <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '_____________________')"/>
765    <li>          <li><a href="http://lintian.debian.org/reports/m{$_name}.html#{$package}">Lintian report</a></li>
766      <xsl:element name="a">          <li>
767        <xsl:attribute name="href">            <xsl:element name="a">
768          <xsl:text>http://qa.debian.org/developer.php?popcon=</xsl:text>              <xsl:attribute name="href">
769          <xsl:call-template name="escape-name">                <xsl:text>http://qa.debian.org/developer.php?popcon=</xsl:text>
770            <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>                <xsl:call-template name="escape-name">
771          </xsl:call-template>                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
772        </xsl:attribute>                </xsl:call-template>
773        <xsl:text>Popcon stats</xsl:text>              </xsl:attribute>
774      </xsl:element>              <xsl:text>Popcon stats</xsl:text>
775    </li>            </xsl:element>
776    <li>          </li>
777      <xsl:element name="a">          <li>
778        <xsl:attribute name="href">            <xsl:element name="a">
779          <xsl:text>http://svnbuildstat.debian.net/packages/info/</xsl:text>              <xsl:attribute name="href">
780          <xsl:call-template name="escape-name">                <xsl:text>http://svnbuildstat.debian.net/packages/info/</xsl:text>
781            <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>                <xsl:call-template name="escape-name">
782          </xsl:call-template>                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
783        </xsl:attribute>                </xsl:call-template>
784        <xsl:text>Svnbuildstat</xsl:text>              </xsl:attribute>
785      </xsl:element>              <xsl:text>Svnbuildstat</xsl:text>
786    </li>            </xsl:element>
787    </ul>          </li>
788    </td>        </ul>
789        </td>
790    </tr>    </tr>
791    </xsl:template>
792    
793    <xsl:template name="package-files">
794    <tr class="titlerow">    <tr class="titlerow">
795    <td class="titlecell" colspan="2">      <td class="titlecell" colspan="2">
796    Package files        Package files
797    </td></tr>    </td></tr>
798    <tr class="titlerow">    <tr class="titlerow">
799    <td class="labelcell">      <td class="labelcell">
800      <xsl:element name="a">        <xsl:element name="a">
801        <xsl:attribute name="href">          <xsl:attribute name="href">
802          <xsl:call-template name="mirror"/>            <xsl:call-template name="mirror"/>
803          <xsl:text>/</xsl:text>            <xsl:text>/</xsl:text>
804          <xsl:value-of select="directory"/>            <xsl:value-of select="directory"/>
805          <xsl:text>/</xsl:text>            <xsl:text>/</xsl:text>
806        </xsl:attribute>          </xsl:attribute>
807        <xsl:text>Source files</xsl:text>          <xsl:text>Source files</xsl:text>
     </xsl:element>  
   </td>  
   <td class="contentcell" id="src_files">  
     <ul>  
     <xsl:for-each select="files/item">  
       <xsl:variable name="filetype">  
         <xsl:call-template name="categorize-srcfile" />  
       </xsl:variable>  
       <xsl:element name="li">  
         <xsl:attribute name="class">srcfile</xsl:attribute>  
         <xsl:if test="string($filetype)!=''">  
           <xsl:attribute name="id">  
             <xsl:text>srcfile_</xsl:text>  
             <xsl:value-of select="$filetype" />  
           </xsl:attribute>  
         </xsl:if>  
         <xsl:element name="a">  
           <xsl:attribute name="class">srcfile</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:value-of select="filename"/>  
           </xsl:attribute>  
           <xsl:attribute name="title">  
             <xsl:value-of select="filename" />  
             <xsl:text>: </xsl:text>  
             <xsl:value-of select="size"/>  
             <xsl:text> bytes</xsl:text>  
           </xsl:attribute>  
           <xsl:text>.</xsl:text>  
           <xsl:value-of select="$filetype"/>  
         </xsl:element>  
808        </xsl:element>        </xsl:element>
809      </xsl:for-each>      </td>
810      </ul>      <td class="contentcell" id="src_files">
811    </td>        <ul>
812            <xsl:for-each select="files/item">
813              <xsl:variable name="filetype">
814                <xsl:call-template name="categorize-srcfile" />
815              </xsl:variable>
816              <xsl:element name="li">
817                <xsl:attribute name="class">srcfile</xsl:attribute>
818                <xsl:if test="string($filetype)!=''">
819                  <xsl:attribute name="id">
820                    <xsl:text>srcfile_</xsl:text>
821                    <xsl:value-of select="$filetype" />
822                  </xsl:attribute>
823                </xsl:if>
824                <xsl:element name="a">
825                  <xsl:attribute name="class">srcfile</xsl:attribute>
826                  <xsl:attribute name="href">
827                    <xsl:call-template name="mirror"/>
828                    <xsl:text>/</xsl:text>
829                    <xsl:value-of select="../../directory"/>
830                    <xsl:text>/</xsl:text>
831                    <xsl:value-of select="filename"/>
832                  </xsl:attribute>
833                  <xsl:attribute name="title">
834                    <xsl:value-of select="filename" />
835                    <xsl:text>: </xsl:text>
836                    <xsl:value-of select="size"/>
837                    <xsl:text> bytes</xsl:text>
838                  </xsl:attribute>
839                  <xsl:text>.</xsl:text>
840                  <xsl:value-of select="$filetype"/>
841                </xsl:element>
842              </xsl:element>
843            </xsl:for-each>
844          </ul>
845        </td>
846    </tr>    </tr>
847    </xsl:template>
   </table>  
   <!-- END LEFT SIDE -->  
   </td><td class="containercell">  
   <!-- RIGHT SIDE -->  
   <table class="righttable">  
   
848    
849    <!-- Todo list -->  <xsl:template name="todo-list">
850    <xsl:variable name="todo">    <xsl:variable name="todo">
851      <xsl:if test="@nmu">      <xsl:if test="@nmu">
852        <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 906  other-to-%xx, especially % to %25... For Line 856  other-to-%xx, especially % to %25... For
856      </xsl:if>      </xsl:if>
857      <xsl:if test="not(starts-with(standards-version, $lastsv))">      <xsl:if test="not(starts-with(standards-version, $lastsv))">
858        <li>The package should be updated to follow the last version of        <li>The package should be updated to follow the last version of
859        <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
860        <xsl:value-of select="$lastsv"/> instead of          <xsl:value-of select="$lastsv"/> instead of
861        <xsl:value-of select="standards-version"/>).</li>          <xsl:value-of select="standards-version"/>).</li>
862      </xsl:if>      </xsl:if>
863      <xsl:if test="$hasother">      <xsl:if test="$hasother">
864        <xsl:for-each select="$other/todo/item">        <xsl:for-each select="$other/todo/item">
865          <xsl:call-template name="outputitem"/>          <xsl:call-template name="outputitem"/>
866        </xsl:for-each>        </xsl:for-each>
867        <!-- new upstream version goes in todo [FG] -->        <!-- new upstream version goes in todo [FG] -->
868        <xsl:if test="$other/@watch='yes' and $other/watch/@new!='0'">        <xsl:if test="$other/@watch='yes' and $other/watch/@new!='0'">
869          <li>A new upstream version was found:          <li>A new upstream version was found:
870             (<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>
871        </xsl:if>        </xsl:if>
872        <xsl:if test="$other/bugs/@patch!='0'">        <xsl:if test="$other/bugs/@patch!='0'">
873          <li>The Bug Tracking System contains          <li>The Bug Tracking System contains
874          <xsl:element name="a">            <xsl:element name="a">
875            <xsl:attribute name="href">              <xsl:attribute name="href">
876              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
877              <xsl:call-template name="escape-name">                <xsl:call-template name="escape-name">
878                <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>
879              </xsl:call-template>                </xsl:call-template>
880              <xsl:text>&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done</xsl:text>                <xsl:text>&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done</xsl:text>
881            </xsl:attribute>              </xsl:attribute>
882            <xsl:value-of select="$other/bugs/@patch"/> patch<xsl:if test="$other/bugs/@patch!='1'">es</xsl:if>              <xsl:value-of select="$other/bugs/@patch"/> patch<xsl:if test="$other/bugs/@patch!='1'">es</xsl:if>
883          </xsl:element>, you should include            </xsl:element>, you should include
884          <xsl:if test="$other/bugs/@patch!='1'">them</xsl:if>            <xsl:if test="$other/bugs/@patch!='1'">them</xsl:if>
885          <xsl:if test="$other/bugs/@patch='1'">it</xsl:if>.            <xsl:if test="$other/bugs/@patch='1'">it</xsl:if>.
886          </li>          </li>
887        </xsl:if>        </xsl:if>
888      </xsl:if>      </xsl:if>
889    </xsl:variable>    </xsl:variable>
890    <xsl:if test="count($todo)>0 and string($todo)!=''">    <xsl:if test="count($todo)>0 and string($todo)!=''">
891    <tr class="titlerow">      <tr class="titlerow">
892    <td class="titlecell" id="todo">        <td class="titlecell" id="todo">
893    Todo          Todo
894    </td></tr>      </td></tr>
895    <tr class="normalrow">      <tr class="normalrow">
896    <td class="contentcell2">        <td class="contentcell2">
897    <ul>          <ul>
898    <xsl:copy-of select="$todo"/>            <xsl:copy-of select="$todo"/>
899    </ul>          </ul>
900    </td>        </td>
901    </tr>      </tr>
902    </xsl:if>    </xsl:if>
903    </xsl:template>
904    <!-- List of problems -->  
905    <xsl:template name="problems">
906    <xsl:variable name="problems">    <xsl:variable name="problems">
907      <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">
908        <li>The package has not yet entered <a        <li>The package has not yet entered <a
909        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>
910        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
911        delay is over.          delay is over.
912        <xsl:element name="a">          <xsl:element name="a">
913          <xsl:attribute name="href">            <xsl:attribute name="href">
914            <xsl:text>http://bjorn.haxx.se/debian/testing.pl?package=</xsl:text>              <xsl:text>http://bjorn.haxx.se/debian/testing.pl?package=</xsl:text>
915            <xsl:call-template name="escape-name">              <xsl:call-template name="escape-name">
916              <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>
917            </xsl:call-template>              </xsl:call-template>
918          </xsl:attribute>            </xsl:attribute>
919          Check why            Check why
920        </xsl:element>          </xsl:element>
921        .</li>          .</li>
922      </xsl:if>      </xsl:if>
923      <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">      <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">
924        <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
925        Policy. Latest version is <xsl:value-of select="$lastsv"/>          Policy. Latest version is <xsl:value-of select="$lastsv"/>
926        and your package only follows          and your package only follows
927        <xsl:value-of select="standards-version"/>...</li>          <xsl:value-of select="standards-version"/>...</li>
928      </xsl:if>      </xsl:if>
929      <xsl:if test="@release!='unstable' and @release!='experimental'">      <xsl:if test="@release!='unstable' and @release!='experimental'">
930        <li>This package is neither part of unstable nor experimental. This        <li>This package is neither part of unstable nor experimental. This
931        probably means that the package <a          probably means that the package <a
932        href="http://ftp-master.debian.org/removals.txt">has been removed</a> (or            href="http://ftp-master.debian.org/removals.txt">has been removed</a> (or
933        has been renamed). Thus the information here is of little interest ...          has been renamed). Thus the information here is of little interest ...
934        the package is going to disappear unless someone takes it over and          the package is going to disappear unless someone takes it over and
935        reintroduces it into unstable.</li>          reintroduces it into unstable.</li>
936      </xsl:if>      </xsl:if>
937      <xsl:if test="$hasother">      <xsl:if test="$hasother">
938    
939        <!-- Override disparity handling. [JvW] -->        <!-- Override disparity handling. [JvW] -->
940        <xsl:if test="$other/@override='yes'">        <xsl:if test="$other/@override='yes'">
941          <xsl:for-each select="$other/override/group">          <xsl:for-each select="$other/override/group">
942            <li>There were override disparities found in suite <xsl:value-of            <li>There were override disparities found in suite <xsl:value-of
943                select="@suite"/>:                select="@suite"/>:
944              <ul>              <ul>
945                <xsl:for-each select="disparity">                <xsl:for-each select="disparity">
946                  <li><xsl:value-of select="text()"/></li>                  <li><xsl:value-of select="text()"/></li>
947                </xsl:for-each>                </xsl:for-each>
948              </ul>              </ul>
949            </li>            </li>
950          </xsl:for-each>          </xsl:for-each>
951        </xsl:if>        </xsl:if>
952    
953        <!-- Wnpp handling. [PvR] -->        <!-- Wnpp handling. [PvR] -->
954        <xsl:if test="$other/@wnpp='yes'">        <xsl:if test="$other/@wnpp='yes'">
955        <li>          <li>
         <xsl:choose>  
           <xsl:when test="$other/wnpp/@type='O'">  
           <xsl:choose>  
           <xsl:when test="@release!='unstable' and @release!='experimental'">  
           The WNPP database contains an O (Orphaned) entry for  
           this package. This is probably an error, as it is neither part of  
           unstable nor experimental.  
           </xsl:when>  
           <xsl:otherwise>  
           <span style="font-weight: bold">This package has been orphaned</span>.  
           This means that it does not have a real maintainer at the  
           moment. Please consider adopting this package if you are interested in it.  
           </xsl:otherwise>  
           </xsl:choose>  
           </xsl:when>  
           <xsl:when test="$other/wnpp/@type='ITA'">  
           <xsl:choose>  
           <xsl:when test="@release!='unstable' and @release!='experimental'">  
           The WNPP database contains an ITA (Intent To Adopt) entry for  
           this package. This is probably an error, as it is neither part of  
           unstable nor experimental.  
           </xsl:when>  
           <xsl:otherwise>  
           This package has been orphaned, but someone intends to maintain it.  
           </xsl:otherwise>  
           </xsl:choose>  
           </xsl:when>  
           <xsl:when test="$other/wnpp/@type='RFA'">  
           <xsl:choose>  
           <xsl:when test="@release!='unstable' and @release!='experimental'">  
           The WNPP database contains an RFA (Request For Adoption) entry for  
           this package. This is probably an error, as it is neither part of  
           unstable nor experimental.  
           </xsl:when>  
           <xsl:otherwise>  
           The current maintainer is looking for someone who can take over  
           maintenance of this package. If you are interested in this package,  
           please consider taking it over. Alternatively you may  
           want to be co-maintainer in order to help the actual maintainer.  
           </xsl:otherwise>  
           </xsl:choose>  
           </xsl:when>  
           <xsl:when test="$other/wnpp/@type='RFH'">  
           <xsl:choose>  
           <xsl:when test="@release!='unstable' and @release!='experimental'">  
           The WNPP database contains an RFH (Request For Help) entry for  
           this package. This is probably an error, as it is neither part of  
           unstable nor experimental.  
           </xsl:when>  
           <xsl:otherwise>  
           The current maintainer is looking for someone who can help with the  
           maintenance of this package. If you are interested in this package,  
           please consider helping out. One way you can help is offer to be a  
           co-maintainer or triage bugs in the bts.  
           </xsl:otherwise>  
           </xsl:choose>  
           </xsl:when>  
           <xsl:when test="$other/wnpp/@type='ITP'">  
           <xsl:choose>  
           <xsl:when test="@release!='unstable' and @release!='experimental'">  
           The WNPP database contains an ITP (Intent To Package). This probably  
           means that somebody is going to reintroduce this package into unstable.  
           </xsl:when>  
           <xsl:otherwise>  
           The WNPP database contains an ITP (Intent To Package) entry for  
           this package. This is probably an error, as it has already been  
           packaged.  
           </xsl:otherwise>  
           </xsl:choose>  
           </xsl:when>  
           <xsl:when test="$other/wnpp/@type='RFP'">  
956            <xsl:choose>            <xsl:choose>
957            <xsl:when test="@release!='unstable' and @release!='experimental'">              <xsl:when test="$other/wnpp/@type='O'">
958            The WNPP database contains an RFP (Request For Package). This probably                <xsl:choose>
959            means that somebody would like to see this package reintroduced into                  <xsl:when test="@release!='unstable' and @release!='experimental'">
960            unstable by a volunteer.                    The WNPP database contains an O (Orphaned) entry for
961            </xsl:when>                    this package. This is probably an error, as it is neither part of
962            <xsl:otherwise>                    unstable nor experimental.
963            The WNPP database contains an RFP (Request For Package) entry                  </xsl:when>
964            for this package.  This is probably an error, as it has already                  <xsl:otherwise>
965            been packaged.                    <span style="font-weight: bold">This package has been orphaned</span>.
966            </xsl:otherwise>                    This means that it does not have a real maintainer at the
967                      moment. Please consider adopting this package if you are interested in it.
968                    </xsl:otherwise>
969                  </xsl:choose>
970                </xsl:when>
971                <xsl:when test="$other/wnpp/@type='ITA'">
972                  <xsl:choose>
973                    <xsl:when test="@release!='unstable' and @release!='experimental'">
974                      The WNPP database contains an ITA (Intent To Adopt) entry for
975                      this package. This is probably an error, as it is neither part of
976                      unstable nor experimental.
977                    </xsl:when>
978                    <xsl:otherwise>
979                      This package has been orphaned, but someone intends to maintain it.
980                    </xsl:otherwise>
981                  </xsl:choose>
982                </xsl:when>
983                <xsl:when test="$other/wnpp/@type='RFA'">
984                  <xsl:choose>
985                    <xsl:when test="@release!='unstable' and @release!='experimental'">
986                      The WNPP database contains an RFA (Request For Adoption) entry for
987                      this package. This is probably an error, as it is neither part of
988                      unstable nor experimental.
989                    </xsl:when>
990                    <xsl:otherwise>
991                      The current maintainer is looking for someone who can take over
992                      maintenance of this package. If you are interested in this package,
993                      please consider taking it over. Alternatively you may
994                      want to be co-maintainer in order to help the actual maintainer.
995                    </xsl:otherwise>
996                  </xsl:choose>
997                </xsl:when>
998                <xsl:when test="$other/wnpp/@type='RFH'">
999                  <xsl:choose>
1000                    <xsl:when test="@release!='unstable' and @release!='experimental'">
1001                      The WNPP database contains an RFH (Request For Help) entry for
1002                      this package. This is probably an error, as it is neither part of
1003                      unstable nor experimental.
1004                    </xsl:when>
1005                    <xsl:otherwise>
1006                      The current maintainer is looking for someone who can help with the
1007                      maintenance of this package. If you are interested in this package,
1008                      please consider helping out. One way you can help is offer to be a
1009                      co-maintainer or triage bugs in the bts.
1010                    </xsl:otherwise>
1011                  </xsl:choose>
1012                </xsl:when>
1013                <xsl:when test="$other/wnpp/@type='ITP'">
1014                  <xsl:choose>
1015                    <xsl:when test="@release!='unstable' and @release!='experimental'">
1016                      The WNPP database contains an ITP (Intent To Package). This probably
1017                      means that somebody is going to reintroduce this package into unstable.
1018                    </xsl:when>
1019                    <xsl:otherwise>
1020                      The WNPP database contains an ITP (Intent To Package) entry for
1021                      this package. This is probably an error, as it has already been
1022                      packaged.
1023                    </xsl:otherwise>
1024                  </xsl:choose>
1025                </xsl:when>
1026                <xsl:when test="$other/wnpp/@type='RFP'">
1027                  <xsl:choose>
1028                    <xsl:when test="@release!='unstable' and @release!='experimental'">
1029                      The WNPP database contains an RFP (Request For Package). This probably
1030                      means that somebody would like to see this package reintroduced into
1031                      unstable by a volunteer.
1032                    </xsl:when>
1033                    <xsl:otherwise>
1034                      The WNPP database contains an RFP (Request For Package) entry
1035                      for this package.  This is probably an error, as it has already
1036                      been packaged.
1037                    </xsl:otherwise>
1038                  </xsl:choose>
1039                </xsl:when>
1040                <xsl:when test="$other/wnpp/@type='RM'">
1041                  <span style="font-weight: bold">This package has been requested to be
1042                    removed</span>.
1043                  This means that, when this request gets processed by an ftp-master, this
1044                  package will no longer be in unstable, and will automatically be removed
1045                  from testing too afterwards. If for some reason you want keep this
1046                  package in unstable, please discuss so in the bug.
1047                </xsl:when>
1048                <xsl:otherwise>
1049                  The WNPP database contains an entry for this package,
1050                  but it is unclear what kind of entry it is. This is probably an error.
1051                </xsl:otherwise>
1052            </xsl:choose>            </xsl:choose>
1053            </xsl:when>            <xsl:variable name="bn" select="$other/wnpp/@bugnumber"/>
1054            <xsl:when test="$other/wnpp/@type='RM'">            Please see bug number <a href="http://bugs.debian.org/{$bn}">
1055            <span style="font-weight: bold">This package has been requested to be              #<xsl:value-of select="$bn"/></a> for more information.
1056            removed</span>.          </li>
           This means that, when this request gets processed by an ftp-master, this  
           package will no longer be in unstable, and will automatically be removed  
           from testing too afterwards. If for some reason you want keep this  
           package in unstable, please discuss so in the bug.  
           </xsl:when>  
           <xsl:otherwise>  
           The WNPP database contains an entry for this package,  
           but it is unclear what kind of entry it is. This is probably an error.  
           </xsl:otherwise>  
         </xsl:choose>  
         <xsl:variable name="bn" select="$other/wnpp/@bugnumber"/>  
         Please see bug number <a href="http://bugs.debian.org/{$bn}">  
         #<xsl:value-of select="$bn"/></a> for more information.  
       </li>  
1057        </xsl:if>        </xsl:if>
1058    
1059      <!-- uscan output if present [FG] -->        <!-- uscan output if present [FG] -->
1060      <xsl:if test="$other/@watch='yes'">        <xsl:if test="$other/@watch='yes'">
1061        <li>          <li>
1062        <xsl:if test="$other/watch/@warning!=''">            <xsl:if test="$other/watch/@warning!=''">
1063          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"/>
1064              </xsl:if>
1065            </li>
1066        </xsl:if>        </xsl:if>
       </li>  
     </xsl:if>  
1067    
1068        <!-- Misc problems reported -->        <!-- Misc problems reported -->
1069        <xsl:for-each select="$other/problems/item">        <xsl:for-each select="$other/problems/item">
1070          <xsl:call-template name="outputitem"/>          <xsl:call-template name="outputitem"/>
1071        </xsl:for-each>        </xsl:for-each>
1072      </xsl:if>      </xsl:if>
1073    </xsl:variable>    </xsl:variable>
1074    <xsl:if test="count($problems)>0 and string($problems)!=''">    <xsl:if test="count($problems)>0 and string($problems)!=''">
1075    <tr class="titlerow">      <tr class="titlerow">
1076    <td class="titlecell" id="problems">        <td class="titlecell" id="problems">
1077    Problems          Problems
1078    </td></tr>      </td></tr>
1079    <tr class="normalrow">      <tr class="normalrow">
1080    <td class="contentcell2">        <td class="contentcell2">
1081    <ul><xsl:copy-of select="$problems"/></ul>          <ul><xsl:copy-of select="$problems"/></ul>
1082    </td>        </td>
1083    </tr>      </tr>
1084    </xsl:if>    </xsl:if>
1085    </xsl:template>
1086    
1087    <xsl:template name="testing-status">
1088    <xsl:if test="$hasexcuse">    <xsl:if test="$hasexcuse">
1089    <tr class="titlerow">      <tr class="titlerow">
1090    <td class="titlecell">        <td class="titlecell">
1091    Testing Status          Testing Status
1092    </td></tr>      </td></tr>
1093    <tr class="normalrow">      <tr class="normalrow">
1094    <td class="contentcell2" style="text-align: left">        <td class="contentcell2" style="text-align: left">
1095    <ul>          <ul>
1096    <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">            <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
1097      <xsl:call-template name="outputitem"/>              <xsl:call-template name="outputitem"/>
1098    </xsl:for-each>            </xsl:for-each>
1099    </ul>          </ul>
1100    </td>        </td>
1101    </tr>      </tr>
1102    </xsl:if>    </xsl:if>
1103    </xsl:template>
1104    
1105    <xsl:template name="static-info">
1106    <xsl:call-template name="output-static">    <xsl:call-template name="output-static">
1107      <xsl:with-param name="static" select="$static" />      <xsl:with-param name="static" select="$static" />
1108    </xsl:call-template>    </xsl:call-template>
1109    </xsl:template>
1110    
1111    <xsl:template name="latest-news">
1112    <xsl:call-template name="output-news">    <xsl:call-template name="output-news">
1113      <xsl:with-param name="news" select="$news" />      <xsl:with-param name="news" select="$news" />
1114    </xsl:call-template>    </xsl:call-template>
1115    </xsl:template>
1116    
1117    <xsl:variable name="static">
1118      <xsl:if test="$hasnews">
1119        <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">
1120          <xsl:call-template name="outputitem"/>
1121        </xsl:for-each>
1122      </xsl:if>
1123    </xsl:variable>
1124    
1125    <xsl:variable name="news">
1126      <xsl:if test="$hasnews">
1127        <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">
1128          <xsl:call-template name="outputitem"/>
1129        </xsl:for-each>
1130      </xsl:if>
1131    </xsl:variable>
1132    
1133    <!-- All the work is done in a single template -->
1134    <xsl:template match="source">
1135    
1136      <!-- Start of html -->
1137      <xsl:text disable-output-escaping="yes">
1138      &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;
1139      </xsl:text>
1140      <html>
1141      <head>
1142      <meta name="ROBOTS" content="NOFOLLOW"/>
1143      <link type="text/css" title="Default" rel="stylesheet" href="../common/pts.css"/>
1144      <link type="text/css" title="Standard link rendering" rel="alternate stylesheet" href="../common/pts2.css"/>
1145      <link type="text/css" title="Compact rendering" rel="alternate stylesheet" href="../common/compact.css"/>
1146      <xsl:if test="count($news)>0 and string($news)!=''">
1147        <link rel="alternate" type="application/rss+xml" title="RSS"
1148          href="{$package}/news.rss20.xml" />
1149      </xsl:if>
1150      <title>Overview of <xsl:value-of select="$package"/> source package</title>
1151      </head>
1152      <body>
1153    
1154      <form method="get" action="/common/index.html" style="float: right;">
1155      <!-- this link should make lynx/links happy [FG] -->
1156      <p>Jump to package (<a href="/">home page</a>): <br/>
1157      <input type="text" name="src" value=""/></p>
1158      </form>
1159      <h1>Overview of
1160      <xsl:element name="a">
1161        <xsl:attribute name="href">
1162          <xsl:text>http://packages.debian.org/src:</xsl:text>
1163           <xsl:value-of select="$package"/>
1164        </xsl:attribute>
1165       <xsl:value-of select="$package"/>
1166      </xsl:element>
1167      source package</h1>
1168    
1169      <div id="body">
1170      <xsl:choose>
1171      <xsl:when test="$removed='yes'">
1172      <!-- REMOVED PACKAGE -->
1173      <p>This package is not part of any Debian distribution. Thus you won't
1174      find much information here. The package is either very new and hasn't
1175      appeared on mirrors yet, or it's an old package that eventually got removed.
1176      The old news are kept for historic purpose only.</p>
1177    
1178      <table class="righttable">
1179        <xsl:call-template name="static-info" />
1180        <xsl:call-template name="latest-news" />
1181      </table>
1182    
1183      <!-- END REMOVED PACKAGE -->
1184      </xsl:when>
1185      <xsl:otherwise>
1186      <!-- NON REMOVED PACKAGE -->
1187    
1188      <table class="containertable">
1189      <tr class="containerrow" valign="top">
1190      <td class="containercell">
1191      <!-- LEFT SIDE -->
1192      <table class="lefttable">
1193        <xsl:call-template name="general-information" />
1194        <xsl:call-template name="bugs-count" />
1195        <xsl:call-template name="pts-subscription" />
1196        <xsl:call-template name="binary-packages" />
1197        <xsl:call-template name="available-versions" />
1198        <xsl:call-template name="patches" />
1199        <xsl:call-template name="other-links" />
1200        <xsl:call-template name="package-files" />
1201      </table>
1202      <!-- END LEFT SIDE -->
1203      </td><td class="containercell">
1204      <!-- RIGHT SIDE -->
1205      <table class="righttable">
1206        <xsl:call-template name="todo-list" />
1207        <xsl:call-template name="problems" />
1208        <xsl:call-template name="testing-status" />
1209        <xsl:call-template name="static-info" />
1210        <xsl:call-template name="latest-news" />
1211    </table>    </table>
1212    <!-- END RIGHT SIDE -->    <!-- END RIGHT SIDE -->
1213    </td></tr>    </td></tr>
# Line 1165  other-to-%xx, especially % to %25... For Line 1218  other-to-%xx, especially % to %25... For
1218    </xsl:choose>    </xsl:choose>
1219    
1220    <hr/>    <hr/>
1221    <p>    <div class="footer">
1222    Debian Package Tracking System - Copyright 2002-2006 Raphaël Hertzog and      <p>
1223    others<br/>        Debian Package Tracking System - Copyright 2002-2007 Raphaël Hertzog and
1224    Report problems to the <a href="http://bugs.debian.org/qa.debian.org"        others<br/>
1225    >qa.debian.org pseudopackage</a><br/>        Report problems to the <a href="http://bugs.debian.org/qa.debian.org"
1226    Last modified : <xsl:value-of select="$date"/>          >qa.debian.org pseudopackage</a><br/>
1227    </p>        Last modified : <xsl:value-of select="$date"/>
1228        </p>
1229      </div>
1230    </div>    </div>
1231    </body>    </body>
1232    </html>    </html>

Legend:
Removed from v.1763  
changed lines
  Added in v.1773

  ViewVC Help
Powered by ViewVC 1.1.5