/[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 1748 by zack, Thu Nov 29 20:20:54 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 127  other-to-%xx, especially % to %25... For Line 127  other-to-%xx, especially % to %25... For
127        <xsl:text>true</xsl:text>        <xsl:text>true</xsl:text>
128      </xsl:if>      </xsl:if>
129    </xsl:variable>    </xsl:variable>
130      <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($foo)!='' or ... -->    <xsl:if test="string($dm)!='' or string($lownmu)!=''">
138      <tr>      <tr>
139        <td class="labelcell">        <td class="labelcell">
140          <xsl:text>Maintenance info</xsl:text>          <xsl:text>Maintenance info</xsl:text>
# Line 141  other-to-%xx, especially % to %25... For Line 147  other-to-%xx, especially % to %25... For
147            </span>            </span>
148          </xsl:if>          </xsl:if>
149    
150          <!-- <xsl:if test="string($foo)!=''"> ... </xsl:if> -->          <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>        </td>
157      </tr>      </tr>
158    </xsl:if>    </xsl:if>
# Line 180  other-to-%xx, especially % to %25... For Line 190  other-to-%xx, especially % to %25... For
190    </xsl:if>    </xsl:if>
191  </xsl:template>  </xsl:template>
192    
193  <xsl:variable name="static">  <xsl:template name="categorize-srcfile">
194    <xsl:if test="$hasnews">    <!-- used to recognize (and tag afterwards) well-known type of source package
195      <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">      components: dsc, diff, orig -->
       <xsl:call-template name="outputitem"/>  
     </xsl:for-each>  
   </xsl:if>  
 </xsl:variable>  
   
 <xsl:variable name="news">  
   <xsl:if test="$hasnews">  
     <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">  
       <xsl:call-template name="outputitem"/>  
     </xsl:for-each>  
   </xsl:if>  
 </xsl:variable>  
   
 <!-- All the work is done in a single template -->  
 <xsl:template match="source">  
   
   <!-- Start of html -->  
   <xsl:text disable-output-escaping="yes">  
   &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;  
   </xsl:text>  
   <html>  
   <head>  
   <meta name="ROBOTS" content="NOFOLLOW"/>  
   <link type="text/css" title="Default" rel="stylesheet" href="../common/pts.css"/>  
   <link type="text/css" title="Standard link rendering" rel="alternate stylesheet" href="../common/pts2.css"/>  
   <xsl:if test="count($news)>0 and string($news)!=''">  
     <link rel="alternate" type="application/rss+xml" title="RSS"  
       href="{$package}/news.rss20.xml" />  
   </xsl:if>  
   <title>Overview of <xsl:value-of select="$package"/> source package</title>  
   </head>  
   <body>  
   
   <form method="get" action="/common/index.html" style="float: right;">  
   <!-- this link should make lynx/links happy [FG] -->  
   <p>Jump to package (<a href="/">home page</a>): <br/>  
   <input type="text" name="src" value=""/></p>  
   </form>  
   <h1>Overview of  
   <xsl:element name="a">  
     <xsl:attribute name="href">  
       <xsl:text>http://packages.debian.org/src:</xsl:text>  
        <xsl:value-of select="$package"/>  
     </xsl:attribute>  
    <xsl:value-of select="$package"/>  
   </xsl:element>  
   source package</h1>  
   
196    <xsl:choose>    <xsl:choose>
197    <xsl:when test="$removed='yes'">      <xsl:when test="substring(filename,string-length(filename)-2, 3)='dsc'">
198    <!-- REMOVED PACKAGE -->        <xsl:text>dsc</xsl:text>
199    <p>This package is not part of any Debian distribution. Thus you won't      </xsl:when>
200    find much information here. The package is either very new and hasn't      <xsl:when test="substring(filename,string-length(filename)-6, 7)='diff.gz'">
201    appeared on mirrors yet, or it's an old package that eventually got removed.        <xsl:text>diff</xsl:text>
202    The old news are kept for historic purpose only.</p>      </xsl:when>
203        <xsl:when test="substring(filename,string-length(filename)-10, 8)='orig.tar'">
204    <table class="righttable">        <xsl:text>orig</xsl:text>
205      <xsl:call-template name="output-static">      </xsl:when>
206        <xsl:with-param name="static" select="$static" />      <xsl:otherwise><xsl:text></xsl:text></xsl:otherwise>
207      </xsl:call-template>    </xsl:choose>
208      <xsl:call-template name="output-news">  </xsl:template>
       <xsl:with-param name="news" select="$news" />  
     </xsl:call-template>  
   </table>  
209    
210    <!-- END REMOVED PACKAGE -->  <xsl:template name="maintainer-email">
211    </xsl:when>    <xsl:param name="email" />
212    <xsl:otherwise>    <a class="email" href="mailto:{$email}">
213    <!-- NON REMOVED PACKAGE -->      <img alt="[email]" src="../common/email.png" title="email" />
214      </a>
215    <table class="containertable">  </xsl:template>
216    <tr class="containerrow" valign="top">  
217    <td class="containercell">  <xsl:template name="general-information">
   <!-- LEFT SIDE -->  
   <table class="lefttable">  
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:call-template name='add-maintenance-info' />        </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      <a class="titlelink" href="http://www.debian.org/doc/manuals/developers-reference/ch-resources.en.html#s-pkg-tracking-system"><acronym title="Package Tracking System">PTS</acronym></a> subscription        Bugs count
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=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>
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        or ($hastesting and $other/debcheck/@testing='yes')            or ($hastesting and $other/debcheck/@testing='yes')
716        or ($hasstable and $other/debcheck/@stable='yes')">            or ($hasstable and $other/debcheck/@stable='yes')">
717      <li>            <li>
718        Debcheck on:              Debcheck on:
719        <xsl:if test="$hasunstable">              <xsl:if test="$hasunstable">
720          <xsl:text> </xsl:text>                <xsl:text> </xsl:text>
721          <xsl:element name="a">                <xsl:element name="a">
722            <xsl:attribute name="href">                  <xsl:attribute name="href">
723              <xsl:text>http://qa.debian.org/debcheck.php?dist=unstable&amp;package=</xsl:text>                    <xsl:text>http://qa.debian.org/debcheck.php?dist=unstable&amp;package=</xsl:text>
724              <xsl:call-template name="escape-name">                    <xsl:call-template name="escape-name">
725                <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>
726              </xsl:call-template>                    </xsl:call-template>
727            </xsl:attribute>                  </xsl:attribute>
728            <xsl:text>unstable</xsl:text>                  <xsl:text>unstable</xsl:text>
729          </xsl:element>                </xsl:element>
730        </xsl:if>              </xsl:if>
731        <xsl:if test="$hastesting">              <xsl:if test="$hastesting">
732          <xsl:text> </xsl:text>                <xsl:text> </xsl:text>
733          <xsl:element name="a">                <xsl:element name="a">
734            <xsl:attribute name="href">                  <xsl:attribute name="href">
735              <xsl:text>http://qa.debian.org/debcheck.php?dist=testing&amp;package=</xsl:text>                    <xsl:text>http://qa.debian.org/debcheck.php?dist=testing&amp;package=</xsl:text>
736              <xsl:call-template name="escape-name">                    <xsl:call-template name="escape-name">
737                <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>
738              </xsl:call-template>                    </xsl:call-template>
739            </xsl:attribute>                  </xsl:attribute>
740            <xsl:text>testing</xsl:text>                  <xsl:text>testing</xsl:text>
741          </xsl:element>                </xsl:element>
742        </xsl:if>              </xsl:if>
743        <xsl:if test="$hasstable">              <xsl:if test="$hasstable">
744          <xsl:element name="a">                <xsl:text> </xsl:text>
745            <xsl:attribute name="href">                <xsl:element name="a">
746              <xsl:text>http://qa.debian.org/debcheck.php?dist=stable&amp;package=</xsl:text>                  <xsl:attribute name="href">
747              <xsl:call-template name="escape-name">                    <xsl:text>http://qa.debian.org/debcheck.php?dist=stable&amp;package=</xsl:text>
748                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>                    <xsl:call-template name="escape-name">
749              </xsl:call-template>                      <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
750            </xsl:attribute>                    </xsl:call-template>
751            <xsl:text>stable</xsl:text>                  </xsl:attribute>
752          </xsl:element>                  <xsl:text>stable</xsl:text>
753        </xsl:if>                </xsl:element>
754      </li>              </xsl:if>
755    </xsl:if>            </li>
756    <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->          </xsl:if>
757                                <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-~/()&#34; ', &quot;'&quot;)"/>          <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->
758    <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '_____________________')"/>          <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-~/()&#34; ', &quot;'&quot;)"/>
759      <li><a href="http://lintian.debian.org/reports/m{$_name}.html#{$package}">Lintian report</a></li>          <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '_____________________')"/>
760    <li>          <li><a href="http://lintian.debian.org/reports/m{$_name}.html#{$package}">Lintian report</a></li>
761      <xsl:element name="a">          <li>
762        <xsl:attribute name="href">            <xsl:element name="a">
763          <xsl:text>http://qa.debian.org/developer.php?popcon=</xsl:text>              <xsl:attribute name="href">
764          <xsl:call-template name="escape-name">                <xsl:text>http://qa.debian.org/developer.php?popcon=</xsl:text>
765            <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>                <xsl:call-template name="escape-name">
766          </xsl:call-template>                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
767        </xsl:attribute>                </xsl:call-template>
768        <xsl:text>Popcon stats</xsl:text>              </xsl:attribute>
769      </xsl:element>              <xsl:text>Popcon stats</xsl:text>
770    </li>            </xsl:element>
771    <li>          </li>
772      <xsl:element name="a">          <li>
773        <xsl:attribute name="href">            <xsl:element name="a">
774          <xsl:text>http://svnbuildstat.debian.net/packages/info/</xsl:text>              <xsl:attribute name="href">
775          <xsl:call-template name="escape-name">                <xsl:text>http://svnbuildstat.debian.net/packages/info/</xsl:text>
776            <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>                <xsl:call-template name="escape-name">
777          </xsl:call-template>                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
778        </xsl:attribute>                </xsl:call-template>
779        <xsl:text>Svnbuildstat</xsl:text>              </xsl:attribute>
780      </xsl:element>              <xsl:text>Svnbuildstat</xsl:text>
781    </li>            </xsl:element>
782    </ul>          </li>
783    </td>        </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 862  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=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>
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>
         <xsl:choose>  
           <xsl:when test="$other/wnpp/@type='O'">  
951            <xsl:choose>            <xsl:choose>
952            <xsl:when test="@release!='unstable' and @release!='experimental'">              <xsl:when test="$other/wnpp/@type='O'">
953            The WNPP database contains an O (Orphaned) entry for                <xsl:choose>
954            this package. This is probably an error, as it is neither part of                  <xsl:when test="@release!='unstable' and @release!='experimental'">
955            unstable nor experimental.                    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:otherwise>                    unstable nor experimental.
958            <span style="font-weight: bold">This package has been orphaned</span>.                  </xsl:when>
959            This means that it does not have a real maintainer at the                  <xsl:otherwise>
960            moment. Please consider adopting this package if you are interested in it.                    <span style="font-weight: bold">This package has been orphaned</span>.
961            </xsl:otherwise>                    This means that it does not have a real maintainer at the
962                      moment. Please consider adopting this package if you are interested in it.
963                    </xsl:otherwise>
964                  </xsl:choose>
965                </xsl:when>
966                <xsl:when test="$other/wnpp/@type='ITA'">
967                  <xsl:choose>
968                    <xsl:when test="@release!='unstable' and @release!='experimental'">
969                      The WNPP database contains an ITA (Intent To Adopt) entry for
970                      this package. This is probably an error, as it is neither part of
971                      unstable nor experimental.
972                    </xsl:when>
973                    <xsl:otherwise>
974                      This package has been orphaned, but someone intends to maintain it.
975                    </xsl:otherwise>
976                  </xsl:choose>
977                </xsl:when>
978                <xsl:when test="$other/wnpp/@type='RFA'">
979                  <xsl:choose>
980                    <xsl:when test="@release!='unstable' and @release!='experimental'">
981                      The WNPP database contains an RFA (Request For Adoption) entry for
982                      this package. This is probably an error, as it is neither part of
983                      unstable nor experimental.
984                    </xsl:when>
985                    <xsl:otherwise>
986                      The current maintainer is looking for someone who can take over
987                      maintenance of this package. If you are interested in this package,
988                      please consider taking it over. Alternatively you may
989                      want to be co-maintainer in order to help the actual maintainer.
990                    </xsl:otherwise>
991                  </xsl:choose>
992                </xsl:when>
993                <xsl:when test="$other/wnpp/@type='RFH'">
994                  <xsl:choose>
995                    <xsl:when test="@release!='unstable' and @release!='experimental'">
996                      The WNPP database contains an RFH (Request For Help) entry for
997                      this package. This is probably an error, as it is neither part of
998                      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>            </xsl:choose>
1048            </xsl:when>            <xsl:variable name="bn" select="$other/wnpp/@bugnumber"/>
1049            <xsl:when test="$other/wnpp/@type='ITA'">            Please see bug number <a href="http://bugs.debian.org/{$bn}">
1050            <xsl:choose>              #<xsl:value-of select="$bn"/></a> for more information.
1051            <xsl:when test="@release!='unstable' and @release!='experimental'">          </li>
           The WNPP database contains an ITA (Intent To Adopt) entry for  
           this package. This is probably an error, as it is neither part of  
           unstable nor experimental.  
           </xsl:when>  
           <xsl:otherwise>  
           This package has been orphaned, but someone intends to maintain it.  
           </xsl:otherwise>  
           </xsl:choose>  
           </xsl:when>  
           <xsl:when test="$other/wnpp/@type='RFA'">  
           <xsl:choose>  
           <xsl:when test="@release!='unstable' and @release!='experimental'">  
           The WNPP database contains an RFA (Request For Adoption) entry for  
           this package. This is probably an error, as it is neither part of  
           unstable nor experimental.  
           </xsl:when>  
           <xsl:otherwise>  
           The current maintainer is looking for someone who can take over  
           maintenance of this package. If you are interested in this package,  
           please consider taking it over. Alternatively you may  
           want to be co-maintainer in order to help the actual maintainer.  
           </xsl:otherwise>  
           </xsl:choose>  
           </xsl:when>  
           <xsl:when test="$other/wnpp/@type='RFH'">  
           <xsl:choose>  
           <xsl:when test="@release!='unstable' and @release!='experimental'">  
           The WNPP database contains an RFH (Request For Help) entry for  
           this package. This is probably an error, as it is neither part of  
           unstable nor experimental.  
           </xsl:when>  
           <xsl:otherwise>  
           The current maintainer is looking for someone who can help with the  
           maintenance of this package. If you are interested in this package,  
           please consider helping out. One way you can help is offer to be a  
           co-maintainer or triage bugs in the bts.  
           </xsl:otherwise>  
           </xsl:choose>  
           </xsl:when>  
           <xsl:when test="$other/wnpp/@type='ITP'">  
           <xsl:choose>  
           <xsl:when test="@release!='unstable' and @release!='experimental'">  
           The WNPP database contains an ITP (Intent To Package). This probably  
           means that somebody is going to reintroduce this package into unstable.  
           </xsl:when>  
           <xsl:otherwise>  
           The WNPP database contains an ITP (Intent To Package) entry for  
           this package. This is probably an error, as it has already been  
           packaged.  
           </xsl:otherwise>  
           </xsl:choose>  
           </xsl:when>  
           <xsl:when test="$other/wnpp/@type='RFP'">  
           <xsl:choose>  
           <xsl:when test="@release!='unstable' and @release!='experimental'">  
           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>  
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">
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($problems)>0 and string($problems)!=''">    <xsl:if test="count($problems)>0 and string($problems)!=''">
1070    <tr class="titlerow">      <tr class="titlerow">
1071    <td class="titlecell" style="background-color: red">        <td class="titlecell" id="problems">
1072    Problems          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="$problems"/></ul>          <ul><xsl:copy-of select="$problems"/></ul>
1077    </td>        </td>
1078    </tr>      </tr>
1079    </xsl:if>    </xsl:if>
1080    </xsl:template>
1081    
1082    <xsl:template name="testing-status">
1083    <xsl:if test="$hasexcuse">    <xsl:if test="$hasexcuse">
1084    <tr class="titlerow">      <tr class="titlerow">
1085    <td class="titlecell">        <td class="titlecell">
1086    Testing Status          Testing Status
1087    </td></tr>      </td></tr>
1088    <tr class="normalrow">      <tr class="normalrow">
1089    <td class="contentcell2" style="text-align: left">        <td class="contentcell2" style="text-align: left">
1090    <ul>          <ul>
1091    <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">            <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
1092      <xsl:call-template name="outputitem"/>              <xsl:call-template name="outputitem"/>
1093    </xsl:for-each>            </xsl:for-each>
1094    </ul>          </ul>
1095    </td>        </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">    <xsl:call-template name="output-static">
1102      <xsl:with-param name="static" select="$static" />      <xsl:with-param name="static" select="$static" />
1103    </xsl:call-template>    </xsl:call-template>
1104    </xsl:template>
1105    
1106    <xsl:template name="latest-news">
1107    <xsl:call-template name="output-news">    <xsl:call-template name="output-news">
1108      <xsl:with-param name="news" select="$news" />      <xsl:with-param name="news" select="$news" />
1109    </xsl:call-template>    </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 1121  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.1748  
changed lines
  Added in v.1769

  ViewVC Help
Powered by ViewVC 1.1.5