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

Legend:
Removed from v.1738  
changed lines
  Added in v.1832

  ViewVC Help
Powered by ViewVC 1.1.5