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

Legend:
Removed from v.1558  
changed lines
  Added in v.1769

  ViewVC Help
Powered by ViewVC 1.1.5