/[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 1769 by zack, Sat Dec 1 09:44:27 2007 UTC revision 2248 by zack, Sat Jul 25 08:56:12 2009 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-2007 Raphaël Hertzog and others  # Copyright © 2002-2008 Raphaël Hertzog and others
5    # Copyright © 2007-2009 Stefano Zacchiroli
6  # This file is distributed under the terms of the General Public License  # This file is distributed under the terms of the General Public License
7  # version 2 or (at your option) any later version.  # version 2 or (at your option) any later version.
8  -->  -->
9    
10  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">  <xsl:stylesheet
11      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
12      xmlns="http://www.w3.org/1999/xhtml"
13      version="1.0">
14    
15    <xsl:output
16      method="xml"
17      encoding="UTF-8"
18      omit-xml-declaration="yes"
19      doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
20      doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
21      indent="yes" />
22    
23  <xsl:output encoding="UTF-8" method="html"/>  <xsl:include href="pts-issues.xsl" />
24    
25  <xsl:param name="package"/>  <xsl:param name="package"/>
26  <xsl:param name="dir"/>  <xsl:param name="dir"/>
# Line 18  Line 30 
30  <xsl:param name="hastesting" select="''"/>  <xsl:param name="hastesting" select="''"/>
31  <xsl:param name="hasunstable" select="''"/>  <xsl:param name="hasunstable" select="''"/>
32  <xsl:param name="hasexperimental" select="''"/>  <xsl:param name="hasexperimental" select="''"/>
33    <xsl:param name="hasmentors" select="''"/>
34  <xsl:param name="hasother" select="''"/>  <xsl:param name="hasother" select="''"/>
35  <xsl:param name="hass-p-u" select="''"/>  <xsl:param name="hasstable-proposed-updates" select="''"/>
36  <xsl:param name="hast-p-u" select="''"/>  <xsl:param name="hastesting-proposed-updates" select="''"/>
37  <xsl:param name="hasoldstable-security" select="''"/>  <xsl:param name="hassecurity-oldstable" select="''"/>
38  <xsl:param name="hasstable-security" select="''"/>  <xsl:param name="hassecurity-stable" select="''"/>
39  <xsl:param name="hastesting-security" select="''"/>  <xsl:param name="hassecurity-testing" select="''"/>
 <xsl:param name="hassecure-testing" select="''"/>  
40  <xsl:param name="hasvolatile" select="''"/>  <xsl:param name="hasvolatile" select="''"/>
41  <xsl:param name="hasnews" select="''"/>  <xsl:param name="hasnews" select="''"/>
42  <xsl:param name="hasexcuse" select="''"/>  <xsl:param name="hasexcuse" select="''"/>
43    
44  <xsl:variable name="other" select="document(concat('../base/', $dir, '/other.xml'))/other"/>  <xsl:variable name="other"
45      select="document(concat('../base/', $dir, '/other.xml'))/other"/>
46    <xsl:variable name="low-nmu-emails"
47      select="document('../base/low_threshold_nmu.emails.xml')/emails"/>
48    
49  <!-- Those variables controls the todo and problem item concerning  <!-- Those variables controls the todo and problem item concerning
50       standards-version not being up to date -->       standards-version not being up to date -->
51  <xsl:variable name="lastsv" select="'3.7.2'"/>  <xsl:variable name="lastsv" select="'3.8.2'"/>
52  <xsl:variable name="lastmajorsv" select="'3.'"/>  <xsl:variable name="lastmajorsv" select="'3.'"/>
53    
54    <!-- lintian summary -->
55    <xsl:variable name="lin_errs" select="$other/lintian/@errors" />
56    <xsl:variable name="lin_warns" select="$other/lintian/@warnings" />
57    
58  <!-- Named templates aka functions -->  <!-- Named templates aka functions -->
59    
60    <xsl:template name="mk_lintian_url">
61      <!-- convert maintainer/name to follow lintian.debian.org convention -->
62      <xsl:variable name="lintian_pattern" select="concat('àáèéëêòöøîìùñ~/()&#34; ', &quot;'&quot;)"/>
63      <xsl:variable name="lintian_email" select="translate(maintainer/email, $lintian_pattern, '_____________________')"/>
64    
65      <xsl:text>http://lintian.debian.org/reports/maintainer/</xsl:text>
66      <xsl:value-of select="$lintian_email" />
67      <xsl:text>.html#</xsl:text>
68      <xsl:value-of select="$package" />
69    </xsl:template>
70    
71  <xsl:template name="mirror">  <xsl:template name="mirror">
72    <xsl:text>http://ftp.debian.org/debian</xsl:text>    <xsl:text>http://ftp.debian.org/debian</xsl:text>
73  </xsl:template>  </xsl:template>
# Line 54  Line 85 
85          <xsl:value-of select="@from"/>          <xsl:value-of select="@from"/>
86          <xsl:text>)</xsl:text></xsl:if></li>          <xsl:text>)</xsl:text></xsl:if></li>
87      </xsl:when>      </xsl:when>
88        <xsl:when test="@type='raw'">
89          <li>
90            <xsl:copy-of select="node()" />
91          </li>
92        </xsl:when>
93      <xsl:otherwise>      <xsl:otherwise>
94        <li><xsl:if test="@date">        <li><xsl:if test="@date">
95          <xsl:text>[</xsl:text>          <xsl:text>[</xsl:text>
# Line 80  other-to-%xx, especially % to %25... For Line 116  other-to-%xx, especially % to %25... For
116    </xsl:if>    </xsl:if>
117  </xsl:template>  </xsl:template>
118    
119    <xsl:variable name="escaped-package">
120      <xsl:call-template name="escape-name">
121        <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
122      </xsl:call-template>
123    </xsl:variable>
124    
125  <!-- Strip epoch -->  <!-- Strip epoch -->
126  <xsl:template name="strip-epoch">  <xsl:template name="strip-epoch">
127    <xsl:param name="version"/>    <xsl:param name="version"/>
# Line 93  other-to-%xx, especially % to %25... For Line 135  other-to-%xx, especially % to %25... For
135    
136  <xsl:template name="add-vcs-info">  <xsl:template name="add-vcs-info">
137    <xsl:if test="repository">    <xsl:if test="repository">
138      <tr>      <dt title="Version Control System">VCS</dt>
139        <td class="labelcell">      <dd>
140          <xsl:text>Version Control</xsl:text>        <xsl:if test="repository/vcs[@kind!='browser']">
141        </td>          <xsl:for-each select="repository/vcs[@kind!='browser']">
142        <td class="contentcell">            <xsl:sort select="@kind" />
143          <xsl:if test="repository/vcs[@kind='browser']">            <a title="raw {@kind} repository" href="{@url}">
144            <a href="{repository/vcs[@kind='browser']/@url}">              <xsl:value-of select="@kind" />
             <xsl:text>browser</xsl:text>  
145            </a>            </a>
146            <br />            <xsl:if test="position()!=last()"><xsl:text>, </xsl:text></xsl:if>
147          </xsl:if>          </xsl:for-each>
148          <xsl:if test="repository/vcs[@kind!='browser']">        </xsl:if>
149            <xsl:text>raw: </xsl:text>        <xsl:if test="repository/vcs[@kind='browser']">
150            <xsl:for-each select="repository/vcs[@kind!='browser']">          <xsl:text> (</xsl:text>
151              <xsl:sort select="@kind" />          <a title="browse the repository"
152              <a href="{@url}">             href="{repository/vcs[@kind='browser']/@url}">browse</a>
153                <xsl:value-of select="@kind" />            <xsl:text>)</xsl:text>
154              </a>        </xsl:if>
155              <xsl:if test="position()!=last()">      </dd>
               <xsl:text>, </xsl:text>  
             </xsl:if>  
           </xsl:for-each>  
         </xsl:if>  
       </td>  
     </tr>  
156    </xsl:if>    </xsl:if>
157  </xsl:template>  </xsl:template>
158    
159  <xsl:template name="add-maintenance-info">  <xsl:template name="add-maintenance-info">
160      <xsl:param name="email" />
161    <xsl:variable name="dm">    <xsl:variable name="dm">
162      <xsl:if test="dm-upload-allowed and string(dm-upload-allowed)='yes'">      <xsl:if test="dm-upload-allowed and string(dm-upload-allowed)='yes'">
163        <xsl:text>true</xsl:text>        <xsl:text>true</xsl:text>
164      </xsl:if>      </xsl:if>
165    </xsl:variable>    </xsl:variable>
166    <xsl:variable name="lownmu">    <xsl:variable name="lownmu">
167      <xsl:if test="maintainer/low-threshold-nmu      <xsl:if test="$low-nmu-emails/email[text()=$email]">
         and string(maintainer/low-threshold-nmu)='yes'">  
168        <xsl:text>true</xsl:text>        <xsl:text>true</xsl:text>
169      </xsl:if>      </xsl:if>
170    </xsl:variable>    </xsl:variable>
171    
172    <xsl:if test="string($dm)!='' or string($lownmu)!=''">    <xsl:if test="string($dm)!='' or string($lownmu)!=''">
173      <tr>      <div class="maint-markers">
174        <td class="labelcell">      <xsl:if test="string($dm)!=''">
175          <xsl:text>Maintenance info</xsl:text>        <span class="dm-tag">
176        </td>          <a href="http://www.debian.org/vote/2007/vote_003">
177        <td class="contentcell">            <acronym title="Debian Maintainer Upload Allowed: this package can be uploaded by Debian Maintainers">DMUA</acronym>
178            </a>
179          <xsl:if test="string($dm)!=''">        </span>
180            <span class="dm-tag">      </xsl:if>
181              <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>      <xsl:if test="string($lownmu)!=''">
182            </span>        <xsl:if test="string($dm)!=''">
183          </xsl:if>          <xsl:text>, </xsl:text>
184          </xsl:if>
185          <xsl:if test="string($lownmu)!=''">        <span class="lownmu-tag">
186            <span class="lownmu-tag">          <a href="http://wiki.debian.org/LowThresholdNmu">
187              <a href="http://wiki.debian.org/LowThresholdNmu"><acronym            <acronym title="maintainer agrees with Low Threshold NMU">LowNMU</acronym>
188                  title="maintainer agrees with Low Threshold NMU, see wiki page for details">LowNMU</acronym></a>          </a>
189            </span>        </span>
190          </xsl:if>      </xsl:if>
191        </td>      </div>
     </tr>  
192    </xsl:if>    </xsl:if>
193  </xsl:template>  </xsl:template>
194    
# Line 162  other-to-%xx, especially % to %25... For Line 196  other-to-%xx, especially % to %25... For
196    <xsl:param name="news" />    <xsl:param name="news" />
197    
198    <xsl:if test="count($news)>0 and string($news)!=''">    <xsl:if test="count($news)>0 and string($news)!=''">
199      <tr class="titlerow">      <div class="block news">
200      <td class="titlecell">        <a name="news" />
201        Latest News <a class="feedlink" href="{$package}/news.rss20.xml">RSS</a>        <h2>news <a class="feedlink" href="{$package}/news.rss20.xml">RSS</a></h2>
202      </td></tr>        <ul id="news-list">
203      <tr class="normalrow">          <xsl:copy-of select="$news" />
204      <td class="contentcell2">        </ul>
205      <ul><xsl:copy-of select="$news"/></ul>      </div>
     </td>  
     </tr>  
206    </xsl:if>    </xsl:if>
207  </xsl:template>  </xsl:template>
208    
# Line 178  other-to-%xx, especially % to %25... For Line 210  other-to-%xx, especially % to %25... For
210    <xsl:param name="static" />    <xsl:param name="static" />
211    
212    <xsl:if test="count($static)>0 and string($static)!=''">    <xsl:if test="count($static)>0 and string($static)!=''">
213      <tr class="titlerow">      <div class="block static">
214      <td class="titlecell">        <a name="static" />
215      Static Information        <h2>static info</h2>
216      </td></tr>        <ul>
217      <tr class="normalrow">          <xsl:copy-of select="$static" />
218      <td class="contentcell2">        </ul>
219      <ul><xsl:copy-of select="$static"/></ul>      </div>
     </td>  
     </tr>  
220    </xsl:if>    </xsl:if>
221  </xsl:template>  </xsl:template>
222    
 <xsl:template name="categorize-srcfile">  
   <!-- used to recognize (and tag afterwards) well-known type of source package  
     components: dsc, diff, orig -->  
   <xsl:choose>  
     <xsl:when test="substring(filename,string-length(filename)-2, 3)='dsc'">  
       <xsl:text>dsc</xsl:text>  
     </xsl:when>  
     <xsl:when test="substring(filename,string-length(filename)-6, 7)='diff.gz'">  
       <xsl:text>diff</xsl:text>  
     </xsl:when>  
     <xsl:when test="substring(filename,string-length(filename)-10, 8)='orig.tar'">  
       <xsl:text>orig</xsl:text>  
     </xsl:when>  
     <xsl:otherwise><xsl:text></xsl:text></xsl:otherwise>  
   </xsl:choose>  
 </xsl:template>  
   
223  <xsl:template name="maintainer-email">  <xsl:template name="maintainer-email">
224    <xsl:param name="email" />    <xsl:param name="email" />
225    <a class="email" href="mailto:{$email}">    <a class="email" href="mailto:{$email}">
# Line 215  other-to-%xx, especially % to %25... For Line 228  other-to-%xx, especially % to %25... For
228  </xsl:template>  </xsl:template>
229    
230  <xsl:template name="general-information">  <xsl:template name="general-information">
231    <tr class="titlerow">    <div class="block info">
232      <td class="titlecell" colspan="2">      <a name="general" />
233        General information      <h2>general</h2>
234      </td>      <dl>
235    </tr>        <dt>source</dt>
236    <tr class="normalrow">        <dd>
237      <td class="labelcell">Latest version</td>          <a href="http://packages.debian.org/src:{$package}">
238      <td class="contentcell"><xsl:value-of select="version"/></td>            <xsl:value-of select="$package" />
239    </tr>          </a>
240    <xsl:if test="@release!='unstable'">          (<span id="priority" title="priority">
241      <tr class="normalrow">            <small><xsl:value-of select="priority"/></small>
242        <td class="labelcell">Distribution</td>          </span>,
243        <td class="contentcell"><xsl:value-of select="@release"/></td>          <span id="section" title="section">
244      </tr>            <small><xsl:value-of select="section"/></small>
245    </xsl:if>          </span>)
246    <tr class="normalrow">        </dd>
247      <td class="labelcell">Maintainer</td>  
248      <td class="contentcell">        <dt>version</dt>
249        <xsl:element name="a">        <dd>
250          <xsl:attribute name="href">          <span id="latest_version"><xsl:value-of select="version"/></span>
251            <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>        </dd>
252            <xsl:call-template name="escape-name">  
253              <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>        <xsl:if test="@release!='unstable'">
254            </xsl:call-template>          <dt>distro</dt>
255          </xsl:attribute>          <dd><xsl:value-of select="@release"/></dd>
         <xsl:value-of select="maintainer/name"/>  
       </xsl:element>  
       <xsl:text> </xsl:text>  
       <xsl:call-template name="maintainer-email">  
         <xsl:with-param name="email" select="maintainer/email" />  
       </xsl:call-template>  
     </td>  
   </tr>  
   <tr class="normalrow">  
     <td class="labelcell"><a href="http://www.debian.org/doc/manuals/developers-reference/ch-pkgs.en.html#s-collaborative-maint">Co-Maintainers</a></td>  
     <td class="contentcell">  
       <xsl:if test="uploaders">  
         <xsl:for-each select="uploaders/item">  
           <xsl:element name="a">  
             <xsl:attribute name="href">  
               <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>  
               <xsl:call-template name="escape-name">  
                 <xsl:with-param name="text"><xsl:value-of select="email"/></xsl:with-param>  
               </xsl:call-template>  
             </xsl:attribute>  
             <xsl:value-of select="name"/>  
           </xsl:element>  
           <xsl:text> </xsl:text>  
           <xsl:call-template name="maintainer-email">  
             <xsl:with-param name="email" select="email" />  
           </xsl:call-template>  
           <br />  
         </xsl:for-each>  
       </xsl:if>  
       <xsl:if test="not(uploaders)">  
         <a class="none" title="You should find some co-maintainers ..." name="fake">None</a>  
256        </xsl:if>        </xsl:if>
       <xsl:call-template name='add-maintenance-info' />  
   </td></tr>  
   <tr class="normalrow">  
     <td class="labelcell">Standards-Version</td>  
     <td class="contentcell"><xsl:value-of select="standards-version"/></td>  
   </tr>  
   <tr class="normalrow">  
     <td class="labelcell">Priority &amp; Section</td>  
     <td class="contentcell"><xsl:value-of select="priority"/> - <xsl:value-of select="section"/></td>  
   </tr>  
   <xsl:call-template name='add-vcs-info' />  
   <xsl:if test="architecture!='any' and architecture!='all'">  
     <tr class="normalrow">  
       <td class="labelcell">Architecture</td>  
       <td class="contentcell"><xsl:value-of select="architecture"/></td>  
     </tr>  
   </xsl:if>  
 </xsl:template>  
   
 <xsl:template name="bugs-count">  
   <tr class="titlerow">  
     <td class="titlecell" colspan="2">  
       Bugs count  
     </td>  
   </tr>  
   <tr class="normalrow" id="bugs_all">  
     <td class="labelcell">All bugs</td>  
     <td class="contentcell">  
       <xsl:element name="a">  
         <xsl:attribute name="href">  
           <xsl:text>http://bugs.debian.org/src:</xsl:text>  
           <xsl:call-template name="escape-name">  
             <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
           </xsl:call-template>  
         </xsl:attribute>  
         <xsl:if test="$hasother">  
           <xsl:value-of select="$other/bugs/@all"/>  
         </xsl:if>  
       </xsl:element>  
     </td>  
   </tr>  
   <tr class="normalrow" id="bugs_rc">  
     <td class="labelcell"><span class="indented"><acronym title="Release Critical">RC</acronym> bugs</span></td>  
     <td class="contentcell">  
       <xsl:element name="a">  
         <xsl:attribute name="href">  
           <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>  
           <xsl:call-template name="escape-name">  
             <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
           </xsl:call-template>  
           <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=critical&amp;sev-inc=grave&amp;sev-inc=serious</xsl:text>  
         </xsl:attribute>  
         <xsl:if test="$hasother">  
           <xsl:value-of select="$other/bugs/@rc"/>  
         </xsl:if>  
       </xsl:element>  
     </td>  
   </tr>  
   <tr class="normalrow" id="bugs_in">  
     <td class="labelcell"><span class="indented"><acronym title="Important and Normal">I&amp;N bugs</acronym></span></td>  
     <td class="contentcell">  
       <xsl:element name="a">  
         <xsl:attribute name="href">  
           <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>  
           <xsl:call-template name="escape-name">  
             <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
           </xsl:call-template>  
           <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=important&amp;sev-inc=normal</xsl:text>  
         </xsl:attribute>  
         <xsl:if test="$hasother">  
           <xsl:value-of select="$other/bugs/@normal"/>  
         </xsl:if>  
       </xsl:element>  
     </td>  
   </tr>  
   <tr class="normalrow" id="bugs_mw">  
     <td class="labelcell"><span class="indented"><acronym title="Minor and Wishlist">M&amp;W bugs</acronym></span></td>  
     <td class="contentcell">  
       <xsl:element name="a">  
         <xsl:attribute name="href">  
           <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>  
           <xsl:call-template name="escape-name">  
             <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
           </xsl:call-template>  
           <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=minor&amp;sev-inc=wishlist</xsl:text>  
         </xsl:attribute>  
         <xsl:if test="$hasother">  
           <xsl:value-of select="$other/bugs/@wishlist"/>  
         </xsl:if>  
       </xsl:element>  
     </td>  
   </tr>  
   <tr class="normalrow" id="bugs_fp">  
     <td class="labelcell"><span class="indented"><acronym title="Fixed and Pending">F&amp;P bugs</acronym></span></td>  
     <td class="contentcell">  
       <xsl:element name="a">  
         <xsl:attribute name="href">  
           <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>  
           <xsl:call-template name="escape-name">  
             <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
           </xsl:call-template>  
           <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>  
         </xsl:attribute>  
         <xsl:if test="$hasother">  
           <xsl:value-of select="$other/bugs/@fixed"/>  
         </xsl:if>  
       </xsl:element>  
     </td>  
   </tr>  
 </xsl:template>  
   
 <xsl:template name="pts-subscription">  
   <tr class="titlerow">  
     <td class="titlecell" colspan="2">  
       <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  
   </td></tr>  
   <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>  
   </tr>  
   <tr class="normalrow">  
     <td class="contentcell" colspan="2">  
       <form method="post" action="/cgi-bin/pts.cgi">  
         <p>  
           <input type="hidden" name="package" value="{$package}"/>  
           <select name="what">  
             <option value="subscribe">Subscribe</option>  
             <option value="unsubscribe">Unsubscribe</option>  
             <option value="advanced">Advanced mode</option>  
           </select>  
           <input type="text" name="email" size="15" value="your email" onFocus="if(email.value=='your email'){{email.value=''}}"/>  
           <input type="submit" name="submit" value="Send"/>  
         </p>  
       </form>  
     </td>  
   </tr>  
 </xsl:template>  
   
 <xsl:template name="binary-packages">  
   <tr class="titlerow">  
     <td class="titlecell" colspan="2">  
       Binary package(s)  
   </td></tr>  
   <tr class="normalrow">  
     <td class="normalcell" colspan="2" style="text-align: left">  
       <ul>  
         <xsl:for-each select="binary/item">  
           <xsl:sort select="text()"/>  
           <xsl:variable name="pkg" select="text()"/>  
           <li class="binpkg">  
             <a class="binpkg" href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>  
             <span style="font-size: 70%">  
               (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:  
   
               <xsl:element name="a">  
                 <xsl:attribute name="title">critical, grave and serious</xsl:attribute>  
                 <xsl:attribute name="href">  
                   <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>  
                   <xsl:call-template name="escape-name">  
                     <xsl:with-param name="text"><xsl:value-of select="text()"/></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:value-of select="$other/bugs/item[@name=$pkg]/@rc"/>  
               </xsl:element>,  
   
               <xsl:element name="a">  
                 <xsl:attribute name="title">important and normal</xsl:attribute>  
                 <xsl:attribute name="href">  
                   <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>  
                   <xsl:call-template name="escape-name">  
                     <xsl:with-param name="text"><xsl:value-of select="text()"/></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:value-of select="$other/bugs/item[@name=$pkg]/@normal"/>  
               </xsl:element>,  
   
               <xsl:element name="a">  
                 <xsl:attribute name="title">wishlist and minor</xsl:attribute>  
                 <xsl:attribute name="href">  
                   <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>  
                   <xsl:call-template name="escape-name">  
                     <xsl:with-param name="text"><xsl:value-of select="text()"/></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:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/>  
               </xsl:element>,  
257    
258          <dt title="Maintainer and Uploaders">maint</dt>
259          <dd class="maintainer">
260            <xsl:element name="a">
261              <xsl:attribute name="href">
262                <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
263                <xsl:call-template name="escape-name">
264                  <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>
265                </xsl:call-template>
266              </xsl:attribute>
267              <span class="name" title="maintainer">
268                <xsl:value-of select="maintainer/name"/>
269              </span>
270            </xsl:element>
271            <xsl:if test="uploaders">
272              <xsl:for-each select="uploaders/item">
273                <xsl:text>, </xsl:text>
274                <span class="uploader">
275                  <small>
276                <xsl:element name="a">                <xsl:element name="a">
                 <xsl:attribute name="title">pending and fixed</xsl:attribute>  
277                  <xsl:attribute name="href">                  <xsl:attribute name="href">
278                    <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>                    <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
279                    <xsl:call-template name="escape-name">                    <xsl:call-template name="escape-name">
280                      <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>                      <xsl:with-param name="text">
281                          <xsl:value-of select="email"/>
282                        </xsl:with-param>
283                    </xsl:call-template>                    </xsl:call-template>
                   <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>  
284                  </xsl:attribute>                  </xsl:attribute>
285                  <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>                  <span class="name" title="uploader">
286                </xsl:element>)                    <xsl:value-of select="name"/>
287                    </span>
288                  </xsl:element>
289                  <xsl:text> (u)</xsl:text>
290                  </small>
291              </span>              </span>
292            </li>            </xsl:for-each>
293          </xsl:for-each>          </xsl:if>
294    </ul></td></tr>          <xsl:call-template name='add-maintenance-info'>
295  </xsl:template>            <xsl:with-param name="email" select="maintainer/email" />
296            </xsl:call-template>
297  <xsl:template name="available-versions">        </dd>
298    <tr class="titlerow">  
299      <td class="titlecell" colspan="2">        <xsl:if test="architecture!='any' and architecture!='all'">
300        Available versions          <dt>arch</dt>
301    </td></tr>          <dd><xsl:value-of select="architecture"/></dd>
302          </xsl:if>
   <!-- oldstable -->  
   <xsl:if test="$hasoldstable">  
     <tr class="normalrow">  
       <td class="labelcell"><a href="http://www.debian.org/releases/sarge/">Oldstable</a></td>  
       <td class="contentcell">  
         <xsl:value-of select="document(concat('../base/', $dir, '/oldstable.xml'))/source/version"/>  
       </td>  
     </tr>  
   </xsl:if>  
   <xsl:if test="$hasoldstable-security">  
     <tr class="normalrow">  
       <td class="labelcell"><small>Oldstable Security Updates</small></td>  
       <td class="contentcell">  
         <xsl:value-of select="document(concat('../base/', $dir, '/oldstable-security.xml'))/source/version"/>  
       </td>  
     </tr>  
   </xsl:if>  
   
   <!-- stable -->  
   <xsl:if test="$hasstable">  
     <tr class="normalrow">  
       <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>  
       <td class="contentcell">  
         <xsl:value-of select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/>  
       </td>  
     </tr>  
   </xsl:if>  
   <xsl:if test="$hasstable-security">  
     <tr class="normalrow">  
       <td class="labelcell"><small>Stable Security Updates</small></td>  
       <td class="contentcell">  
         <xsl:value-of select="document(concat('../base/', $dir, '/stable-security.xml'))/source/version"/>  
       </td>  
     </tr>  
   </xsl:if>  
   <xsl:if test="$hass-p-u">  
     <tr class="normalrow">  
       <td class="labelcell"><small>Stable Proposed Updates</small></td>  
       <td class="contentcell">  
         <xsl:value-of select="document(concat('../base/', $dir, '/s-p-u.xml'))/source/version"/>  
       </td>  
     </tr>  
   </xsl:if>  
   
   <!-- testing -->  
   <xsl:if test="$hastesting">  
     <tr class="normalrow">  
       <td class="labelcell"><a href="http://www.debian.org/releases/testing/">Testing</a></td>  
       <td class="contentcell">  
         <xsl:value-of select="document(concat('../base/', $dir, '/testing.xml'))/source/version"/>  
       </td>  
     </tr>  
   </xsl:if>  
   <xsl:if test="$hastesting-security">  
     <tr class="normalrow">  
       <td class="labelcell"><small>Testing Security Updates</small></td>  
       <td class="contentcell">  
         <xsl:value-of select="document(concat('../base/', $dir, '/testing-security.xml'))/source/version"/>  
       </td>  
     </tr>  
   </xsl:if>  
   <xsl:if test="$hast-p-u">  
     <tr class="normalrow">  
       <td class="labelcell"><small>Testing Proposed Updates</small></td>  
       <td class="contentcell">  
         <xsl:value-of select="document(concat('../base/', $dir, '/t-p-u.xml'))/source/version"/>  
       </td>  
     </tr>  
   </xsl:if>  
   
   <!-- unstable -->  
   <xsl:if test="$hasunstable">  
     <tr class="normalrow">  
       <td class="labelcell">Unstable</td>  
       <td class="contentcell">  
         <xsl:value-of select="document(concat('../base/', $dir, '/unstable.xml'))/source/version"/>  
       </td>  
     </tr>  
   </xsl:if>  
   
   <!-- experimental -->  
   <xsl:if test="$hasexperimental">  
     <tr class="normalrow">  
       <td class="labelcell">Experimental</td>  
       <td class="contentcell">  
         <xsl:value-of select="document(concat('../base/', $dir, '/experimental.xml'))/source/version"/>  
       </td>  
     </tr>  
   </xsl:if>  
303    
304    <!-- secure-testing -->        <dt title="Standards-Version">std-ver</dt>
305    <xsl:if test="$hassecure-testing">        <dd>
306      <tr class="normalrow">          <span id="standards_version">
307        <td class="labelcell">Secure testing</td>            <xsl:value-of select="standards-version"/>
308        <td class="contentcell">          </span>
309          <xsl:value-of select="document(concat('../base/', $dir, '/secure-testing.xml'))/source/version"/>        </dd>
       </td>  
     </tr>  
   </xsl:if>  
310    
311    <!-- volatile -->        <xsl:call-template name='add-vcs-info' />
312    <xsl:if test="$hasvolatile">      </dl>
313      <tr class="normalrow">    </div>
       <td class="labelcell">Volatile</td>  
       <td class="contentcell">  
         <xsl:value-of select="document(concat('../base/', $dir, '/volatile.xml'))/source/version"/>  
       </td>  
     </tr>  
   </xsl:if>  
314  </xsl:template>  </xsl:template>
315    
316  <xsl:template name="patches">  <xsl:template name="bugs-count">
317    <!-- Patches list [FG] -->    <div class="block bugs">
318    <xsl:if test="$other/@patches='yes'">      <a name="bugs" />
319      <tr class="titlerow">      <h2>bugs count</h2>
320        <td class="titlecell" colspan="2">      <dl>
321          Patches        <dt id="bugs_all">
322      </td></tr>          all
323      <tr>          <xsl:element name="a">
324        <td class="contentcell" colspan="2" style="text-align: left">            <xsl:attribute name="href">
325          <ul>              <xsl:text>http://people.debian.org/~glandium/bts/</xsl:text>
326            <xsl:for-each select="$other/patches/item">              <xsl:value-of select="substring($package, 1, 1)"/>
327              <li>              <xsl:text>/</xsl:text>
328                <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>              <xsl:value-of select="$escaped-package" />
329              </li>              <xsl:text>.png</xsl:text>
330            </xsl:for-each>            </xsl:attribute>
331            <xsl:if test="$other/bugs/@patch!='0'">            <xsl:attribute name="title">bug history graph</xsl:attribute>
332              <li>            <img alt="bug history graph" src="../common/bug-graph.png" />
333                <xsl:element name="a">          </xsl:element>
334                  <xsl:attribute name="href">        </dt>
335                    <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>        <dd>
336                    <xsl:call-template name="escape-name">          <xsl:element name="a">
337                      <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>            <xsl:attribute name="href">
338                    </xsl:call-template>              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=no&amp;src=</xsl:text>
339                    <xsl:text>&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done</xsl:text>              <xsl:value-of select="$escaped-package" />
340                  </xsl:attribute>            </xsl:attribute>
341                  Patches from BTS (<xsl:value-of select="$other/bugs/@patch"/>)            <xsl:if test="$hasother">
342                </xsl:element>              <span class="bugcount" title="all">
343              </li>                <xsl:value-of select="$other/bugs/@all"/>
344                </span>
345            </xsl:if>            </xsl:if>
346          </ul>          </xsl:element>
347        </td>          <xsl:if test="$hasother and $other/bugs/@all_m">
348      </tr>            (<xsl:element name="a">
   </xsl:if>  
 </xsl:template>  
   
 <xsl:template name="other-links">  
   <tr class="titlerow">  
     <td class="titlecell" colspan="2">  
       Other links  
   </td></tr>  
   <tr>  
     <td class="contentcell" colspan="2" style="text-align: left">  
       <ul>  
         <li>  
           <xsl:element name="a">  
349              <xsl:attribute name="href">              <xsl:attribute name="href">
350                <xsl:text>http://packages.debian.org/changelogs/</xsl:text>                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=yes&amp;src=</xsl:text>
351                <xsl:value-of select="directory"/>                <xsl:value-of select="$escaped-package" />
               <xsl:text>/current/changelog</xsl:text>  
352              </xsl:attribute>              </xsl:attribute>
353              <xsl:text>Changelog</xsl:text>              <xsl:value-of select="$other/bugs/@all_m"/>
354            </xsl:element>            </xsl:element>)
355            /          </xsl:if>
356          </dd>
357          <dt id="bugs_rc" title="Release Critical">
358            <span class="indented">RC</span>
359          </dt>
360          <dd>
361            <xsl:element name="a">
362              <xsl:attribute name="href">
363                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
364                <xsl:value-of select="$escaped-package" />
365                <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&amp;repeatmerged=no</xsl:text>
366              </xsl:attribute>
367              <xsl:if test="$hasother">
368                <span class="bugcount" title="rc">
369                  <xsl:value-of select="$other/bugs/@rc"/>
370                </span>
371              </xsl:if>
372            </xsl:element>
373            <xsl:if test="$hasother and $other/bugs/@rc_m">
374              (<xsl:element name="a">
375                <xsl:attribute name="href">
376                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
377                  <xsl:value-of select="$escaped-package" />
378                  <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&amp;repeatmerged=yes</xsl:text>
379                </xsl:attribute>
380                <xsl:value-of select="$other/bugs/@rc_m"/>
381              </xsl:element>)
382            </xsl:if>
383          </dd>
384          <dt id="bugs_in" title="Important and Normal">
385            <span class="indented">I&amp;N</span>
386          </dt>
387          <dd>
388            <xsl:element name="a">
389              <xsl:attribute name="href">
390                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
391                <xsl:value-of select="$escaped-package" />
392                <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&amp;repeatmerged=no</xsl:text>
393              </xsl:attribute>
394              <xsl:if test="$hasother">
395                <span class="bugcount" title="in">
396                  <xsl:value-of select="$other/bugs/@normal"/>
397                </span>
398              </xsl:if>
399            </xsl:element>
400            <xsl:if test="$hasother and $other/bugs/@normal_m">
401              (<xsl:element name="a">
402                <xsl:attribute name="href">
403                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
404                  <xsl:value-of select="$escaped-package" />
405                  <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&amp;repeatmerged=yes</xsl:text>
406                </xsl:attribute>
407                <xsl:value-of select="$other/bugs/@normal_m"/>
408              </xsl:element>)
409            </xsl:if>
410          </dd>
411          <dt id="bugs_mw" title="Minor and Wishlist">
412            <span class="indented">M&amp;W</span>
413          </dt>
414          <dd>
415            <xsl:element name="a">
416              <xsl:attribute name="href">
417                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
418                <xsl:value-of select="$escaped-package" />
419                <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&amp;repeatmerged=no</xsl:text>
420              </xsl:attribute>
421              <xsl:if test="$hasother">
422                <span class="bugcount" title="mw">
423                  <xsl:value-of select="$other/bugs/@wishlist"/>
424                </span>
425              </xsl:if>
426            </xsl:element>
427            <xsl:if test="$hasother and $other/bugs/@wishlist_m">
428              (<xsl:element name="a">
429                <xsl:attribute name="href">
430                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
431                  <xsl:value-of select="$escaped-package" />
432                  <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&amp;repeatmerged=yes</xsl:text>
433                </xsl:attribute>
434                <xsl:value-of select="$other/bugs/@wishlist_m"/>
435              </xsl:element>)
436            </xsl:if>
437          </dd>
438          <dt id="bugs_fp" title="Fixed and Pending">
439            <span class="indented">F&amp;P</span>
440          </dt>
441          <dd>
442            <xsl:element name="a">
443              <xsl:attribute name="href">
444                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
445                <xsl:value-of select="$escaped-package" />
446                <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=no</xsl:text>
447              </xsl:attribute>
448              <xsl:if test="$hasother">
449                <span class="bugcount" title="fp">
450                  <xsl:value-of select="$other/bugs/@fixed"/>
451                </span>
452              </xsl:if>
453            </xsl:element>
454            <xsl:if test="$hasother and $other/bugs/@fixed_m">
455              (<xsl:element name="a">
456                <xsl:attribute name="href">
457                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
458                  <xsl:value-of select="$escaped-package" />
459                  <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=yes</xsl:text>
460                </xsl:attribute>
461                <xsl:value-of select="$other/bugs/@fixed_m"/>
462              </xsl:element>)
463            </xsl:if>
464          </dd>
465          <xsl:if test="$other/bugs/@gift &gt; 0">
466            <dt id="bugs_gift">
467              <span class="indented">
468                <a href="http://wiki.debian.org/qa.debian.org/GiftTag">gift</a>
469              </span>
470            </dt>
471            <dd>
472            <xsl:element name="a">            <xsl:element name="a">
473              <xsl:attribute name="href">              <xsl:attribute name="href">
474                <xsl:text>http://packages.debian.org/changelogs/</xsl:text>                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
475                <xsl:value-of select="directory"/>                <xsl:value-of select="$escaped-package" />
476                <xsl:text>/current/copyright</xsl:text>              <xsl:text>&amp;users=debian-qa@lists.debian.org;tag=gift</xsl:text>
477              </xsl:attribute>              </xsl:attribute>
478              <xsl:text>Copyright</xsl:text>              <span class="bugcount" title="gift">
479                  <xsl:value-of select="$other/bugs/@gift" />
480                </span>
481            </xsl:element>            </xsl:element>
482          </li>          </dd>
483          <xsl:if test="architecture!='all'">        </xsl:if>
484            <li>      </dl>
485      </div>
486    </xsl:template>
487    
488    <xsl:template name="pts-subscription">
489      <!-- <acronym title="Package Tracking System">PTS</acronym> subscription -->
490      <!-- <tr class="normalrow"> -->
491      <!--   <td class="labelcell">Subscribers count</td> -->
492      <!--   <td class="contentcell"><xsl:if test="$hasother"> -->
493      <!--  <xsl:value-of select="$other/pts/@count"/> -->
494      <!--   </xsl:if></td> -->
495      <!-- </tr> -->
496      <form method="post" action="/cgi-bin/pts.cgi">
497        <p>
498          <input type="hidden" name="package" value="{$package}"/>
499          subscribe to this package<br />
500          <input type="text" name="email" size="10" value="email"
501                 onfocus="if(email.value=='your email'){{email.value=''}}"/>
502          <select name="what">
503            <option value="subscribe">sub</option>
504            <option value="unsubscribe">unsub</option>
505            <option value="advanced">opts</option>
506          </select>
507          <input type="submit" name="submit" value="go"/>
508        </p>
509      </form>
510    </xsl:template>
511    
512    <xsl:template name="binary-packages">
513      <div class="block binaries">
514        <a name="binaries" />
515        <h2>binaries</h2>
516        <ul>
517          <xsl:for-each select="binary/item">
518            <xsl:sort select="text()"/>
519            <xsl:variable name="pkg" select="text()"/>
520            <xsl:variable name="tooltip"
521                          select="concat($pkg, ': ',
522                                  $other/descriptions/shortdesc[@package=$pkg])" />
523            <li class="binpkg">
524              <a class="binpkg" title="{$tooltip}"
525                 href="http://packages.debian.org/{text()}">
526                <span class="binpkg"><xsl:value-of select="text()"/></span>
527              </a>
528              <span style="font-size: 70%">
529                (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:
530              <xsl:element name="a">              <xsl:element name="a">
531                  <xsl:attribute name="title">critical, grave and serious</xsl:attribute>
532                <xsl:attribute name="href">                <xsl:attribute name="href">
533                  <xsl:text>http://buildd.debian.org/pkg.cgi?pkg=</xsl:text>                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
534                  <xsl:call-template name="escape-name">                  <xsl:call-template name="escape-name">
535                    <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>                    <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
536                  </xsl:call-template>                  </xsl:call-template>
537                    <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>
538                </xsl:attribute>                </xsl:attribute>
539                <xsl:text>Buildd logs</xsl:text>                <xsl:value-of select="$other/bugs/item[@name=$pkg]/@rc"/>
540              </xsl:element>              </xsl:element>,
             <xsl:text> (</xsl:text>  
541              <xsl:element name="a">              <xsl:element name="a">
542                  <xsl:attribute name="title">important and normal</xsl:attribute>
543                <xsl:attribute name="href">                <xsl:attribute name="href">
544                  <xsl:text>http://experimental.debian.net/build.php?pkg=</xsl:text>                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
545                  <xsl:call-template name="escape-name">                  <xsl:call-template name="escape-name">
546                    <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>                    <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
547                  </xsl:call-template>                  </xsl:call-template>
548                    <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>
549                </xsl:attribute>                </xsl:attribute>
550                <xsl:text>more</xsl:text>                <xsl:value-of select="$other/bugs/item[@name=$pkg]/@normal"/>
551              </xsl:element>              </xsl:element>,
             <xsl:text>)</xsl:text>  
           </li>  
         </xsl:if>  
         <!-- DISABLED until ddtp.debian.org is back up  
         <li>  
           <xsl:element name="a">  
             <xsl:attribute name="href">  
               <xsl:text>http://ddtp.debian.org/stats/pdesc/report.cgi?package=</xsl:text>  
               <xsl:call-template name="escape-name">  
                 <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
               </xsl:call-template>  
               <xsl:text>&amp;lang=all&amp;type=src-drvbin&amp;subword=0</xsl:text>  
             </xsl:attribute>  
             Description's translations (DDTP)  
           </xsl:element>  
         </li>  
         <xsl:if test="$other/@debconf='yes'">  
           <li>  
552              <xsl:element name="a">              <xsl:element name="a">
553                  <xsl:attribute name="title">wishlist and minor</xsl:attribute>
554                <xsl:attribute name="href">                <xsl:attribute name="href">
555                  <xsl:text>http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&amp;package=</xsl:text>                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
556                  <xsl:call-template name="escape-name">                  <xsl:call-template name="escape-name">
557                    <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>                    <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
558                  </xsl:call-template>                  </xsl:call-template>
559                    <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>
560                </xsl:attribute>                </xsl:attribute>
561                Debconf templates's translations (DDTP)                <xsl:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/>
562              </xsl:element>              </xsl:element>,
563            </li>              <xsl:element name="a">
564          </xsl:if>                <xsl:attribute name="title">pending and fixed</xsl:attribute>
565          -->                <xsl:attribute name="href">
566          <xsl:if test="($hasunstable and $other/debcheck/@unstable='yes')                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
567            or ($hastesting and $other/debcheck/@testing='yes')                  <xsl:call-template name="escape-name">
568            or ($hasstable and $other/debcheck/@stable='yes')">                    <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
569            <li>                  </xsl:call-template>
570              Debcheck on:                  <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
571              <xsl:if test="$hasunstable">                </xsl:attribute>
572                <xsl:text> </xsl:text>                <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>
573                <xsl:element name="a">              </xsl:element>)
574                  <xsl:attribute name="href">            </span>
                   <xsl:text>http://qa.debian.org/debcheck.php?dist=unstable&amp;package=</xsl:text>  
                   <xsl:call-template name="escape-name">  
                     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
                   </xsl:call-template>  
                 </xsl:attribute>  
                 <xsl:text>unstable</xsl:text>  
               </xsl:element>  
             </xsl:if>  
             <xsl:if test="$hastesting">  
               <xsl:text> </xsl:text>  
               <xsl:element name="a">  
                 <xsl:attribute name="href">  
                   <xsl:text>http://qa.debian.org/debcheck.php?dist=testing&amp;package=</xsl:text>  
                   <xsl:call-template name="escape-name">  
                     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
                   </xsl:call-template>  
                 </xsl:attribute>  
                 <xsl:text>testing</xsl:text>  
               </xsl:element>  
             </xsl:if>  
             <xsl:if test="$hasstable">  
               <xsl:text> </xsl:text>  
               <xsl:element name="a">  
                 <xsl:attribute name="href">  
                   <xsl:text>http://qa.debian.org/debcheck.php?dist=stable&amp;package=</xsl:text>  
                   <xsl:call-template name="escape-name">  
                     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
                   </xsl:call-template>  
                 </xsl:attribute>  
                 <xsl:text>stable</xsl:text>  
               </xsl:element>  
             </xsl:if>  
           </li>  
         </xsl:if>  
         <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->  
         <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-~/()&#34; ', &quot;'&quot;)"/>  
         <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '_____________________')"/>  
         <li><a href="http://lintian.debian.org/reports/m{$_name}.html#{$package}">Lintian report</a></li>  
         <li>  
           <xsl:element name="a">  
             <xsl:attribute name="href">  
               <xsl:text>http://qa.debian.org/developer.php?popcon=</xsl:text>  
               <xsl:call-template name="escape-name">  
                 <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
               </xsl:call-template>  
             </xsl:attribute>  
             <xsl:text>Popcon stats</xsl:text>  
           </xsl:element>  
         </li>  
         <li>  
           <xsl:element name="a">  
             <xsl:attribute name="href">  
               <xsl:text>http://svnbuildstat.debian.net/packages/info/</xsl:text>  
               <xsl:call-template name="escape-name">  
                 <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
               </xsl:call-template>  
             </xsl:attribute>  
             <xsl:text>Svnbuildstat</xsl:text>  
           </xsl:element>  
575          </li>          </li>
576        </ul>        </xsl:for-each>
577      </td>      </ul>
578    </tr>    </div>
579  </xsl:template>  </xsl:template>
580    
581  <xsl:template name="package-files">  <xsl:template name="output-version">
582    <tr class="titlerow">    <xsl:param name="suite" select="''" />
583      <td class="titlecell" colspan="2">    <xsl:param name="link" select="'yes'" />
584        Package files    <xsl:variable name="version">
585    </td></tr>      <span class="srcversion" title="{$suite}">
586    <tr class="titlerow">        <xsl:value-of select="document(concat('../base/', $dir, '/', $suite,
587      <td class="labelcell">                              '.xml'))/source/version"/>
588        </span>
589      </xsl:variable>
590      <xsl:choose>
591        <xsl:when test="$link='yes'">
592        <xsl:element name="a">        <xsl:element name="a">
593            <xsl:attribute name="class">dsc</xsl:attribute>
594          <xsl:attribute name="href">          <xsl:attribute name="href">
595            <xsl:call-template name="mirror"/>            <xsl:call-template name="mirror"/>
596            <xsl:text>/</xsl:text>            <xsl:text>/</xsl:text>
597            <xsl:value-of select="directory"/>            <xsl:value-of select="document(concat('../base/', $dir, '/',
598                                    $suite, '.xml'))/source/directory"/>
599            <xsl:text>/</xsl:text>            <xsl:text>/</xsl:text>
600              <xsl:value-of select="document(concat('../base/', $dir, '/',
601                                    $suite, '.xml'))/source/files/item[1]/filename"/>
602          </xsl:attribute>          </xsl:attribute>
603          <xsl:text>Source files</xsl:text>          <xsl:attribute name="title">.dsc, use dget on this link to retrieve source package</xsl:attribute>
604            <img src="../common/save.png" alt="save" />
605        </xsl:element>        </xsl:element>
606      </td>        <a href="http://packages.debian.org/source/{$suite}/{$package}">
607      <td class="contentcell" id="src_files">          <xsl:copy-of select="$version" />
608        <ul>        </a>
609          <xsl:for-each select="files/item">      </xsl:when>
610            <xsl:variable name="filetype">      <xsl:otherwise>
611              <xsl:call-template name="categorize-srcfile" />        <xsl:copy-of select="$version" />
612            </xsl:variable>      </xsl:otherwise>
613            <xsl:element name="li">    </xsl:choose>
             <xsl:attribute name="class">srcfile</xsl:attribute>  
             <xsl:if test="string($filetype)!=''">  
               <xsl:attribute name="id">  
                 <xsl:text>srcfile_</xsl:text>  
                 <xsl:value-of select="$filetype" />  
               </xsl:attribute>  
             </xsl:if>  
             <xsl:element name="a">  
               <xsl:attribute name="class">srcfile</xsl:attribute>  
               <xsl:attribute name="href">  
                 <xsl:call-template name="mirror"/>  
                 <xsl:text>/</xsl:text>  
                 <xsl:value-of select="../../directory"/>  
                 <xsl:text>/</xsl:text>  
                 <xsl:value-of select="filename"/>  
               </xsl:attribute>  
               <xsl:attribute name="title">  
                 <xsl:value-of select="filename" />  
                 <xsl:text>: </xsl:text>  
                 <xsl:value-of select="size"/>  
                 <xsl:text> bytes</xsl:text>  
               </xsl:attribute>  
               <xsl:text>.</xsl:text>  
               <xsl:value-of select="$filetype"/>  
             </xsl:element>  
           </xsl:element>  
         </xsl:for-each>  
       </ul>  
     </td>  
   </tr>  
614  </xsl:template>  </xsl:template>
615    
616  <xsl:template name="todo-list">  <xsl:template name="more-info-marker">
617    <xsl:variable name="todo">    <xsl:param name="href" />
618      <xsl:if test="@nmu">    <xsl:param name="title">more information are available on an external web page</xsl:param>
619        <li>Incorporate and acknowledge the changes from the non maintainer upload.</li>    <a href="{$href}">
620      </xsl:if>      <img src="../common/external.png" title="{$title}" alt="..." />
621      <xsl:if test="not(uploaders)and(priority='standard' or priority='required' or priority='important')">    </a>
622        <li>The package is of priority standard or higher, you should really find some co-maintainers.</li>  </xsl:template>
623      </xsl:if>  
624      <xsl:if test="not(starts-with(standards-version, $lastsv))">  <xsl:template name="available-versions">
625        <li>The package should be updated to follow the last version of    <div class="block versions">
626          <a href="http://www.debian.org/doc/debian-policy/">Debian Policy</a> (Standards-Version      <a name="versions" />
627          <xsl:value-of select="$lastsv"/> instead of      <h2>versions
628          <xsl:value-of select="standards-version"/>).</li>        <xsl:call-template name="more-info-marker">
629      </xsl:if>          <xsl:with-param name="href">
630      <xsl:if test="$hasother">            <xsl:text>http://qa.debian.org/madison.php?package=</xsl:text>
631        <xsl:for-each select="$other/todo/item">            <xsl:value-of select="$package" />
632          <xsl:call-template name="outputitem"/>          </xsl:with-param>
633        </xsl:for-each>          <xsl:with-param name="title">more versions can be listed by madison</xsl:with-param>
634        <!-- new upstream version goes in todo [FG] -->        </xsl:call-template>
635        <xsl:if test="$other/@watch='yes' and $other/watch/@new!='0'">      </h2>
636          <li>A new upstream version was found:  
637            (<xsl:value-of select="$other/watch/@new"/>). <a href="{$other/watch/@url}"><xsl:value-of select="$other/watch/@url"/></a></li>      <dl>
638          <xsl:if test="$hasoldstable">
639            <dt title="old stable release">old</dt>
640            <dd>
641              <xsl:call-template name="output-version">
642                <xsl:with-param name="suite">oldstable</xsl:with-param>
643              </xsl:call-template>
644            </dd>
645        </xsl:if>        </xsl:if>
646        <xsl:if test="$other/bugs/@patch!='0'">        <xsl:if test="$hassecurity-oldstable">
647          <li>The Bug Tracking System contains          <dt title="security updates for the old stable release">old-sec</dt>
648            <xsl:element name="a">          <dd>
649              <xsl:attribute name="href">            <xsl:call-template name="output-version">
650                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>              <xsl:with-param name="suite">security-oldstable</xsl:with-param>
651                <xsl:call-template name="escape-name">              <xsl:with-param name="link">no</xsl:with-param>
652                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>            </xsl:call-template>
653                </xsl:call-template>          </dd>
               <xsl:text>&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done</xsl:text>  
             </xsl:attribute>  
             <xsl:value-of select="$other/bugs/@patch"/> patch<xsl:if test="$other/bugs/@patch!='1'">es</xsl:if>  
           </xsl:element>, you should include  
           <xsl:if test="$other/bugs/@patch!='1'">them</xsl:if>  
           <xsl:if test="$other/bugs/@patch='1'">it</xsl:if>.  
         </li>  
654        </xsl:if>        </xsl:if>
655      </xsl:if>        <xsl:if test="$hasstable">
656    </xsl:variable>          <dt>stable</dt>
657    <xsl:if test="count($todo)>0 and string($todo)!=''">          <dd>
658      <tr class="titlerow">            <xsl:call-template name="output-version">
659        <td class="titlecell" id="todo">              <xsl:with-param name="suite">stable</xsl:with-param>
660          Todo            </xsl:call-template>
661      </td></tr>          </dd>
662      <tr class="normalrow">        </xsl:if>
663        <td class="contentcell2">        <xsl:if test="$hassecurity-stable">
664          <ul>          <dt title="security updates for the stable release">stable-sec</dt>
665            <xsl:copy-of select="$todo"/>          <dd>
666          </ul>            <xsl:call-template name="output-version">
667        </td>              <xsl:with-param name="suite">security-stable</xsl:with-param>
668      </tr>              <xsl:with-param name="link">no</xsl:with-param>
669    </xsl:if>            </xsl:call-template>
670            </dd>
671          </xsl:if>
672          <xsl:if test="$hasstable-proposed-updates">
673            <dt title="stable proposed updates">s-p-u</dt>
674            <dd>
675              <xsl:call-template name="output-version">
676                <xsl:with-param name="suite">stable-proposed-updates</xsl:with-param>
677                <xsl:with-param name="link">no</xsl:with-param>
678              </xsl:call-template>
679            </dd>
680          </xsl:if>
681          <xsl:if test="$hastesting">
682            <dt>testing</dt>
683            <dd>
684              <xsl:call-template name="output-version">
685                <xsl:with-param name="suite">testing</xsl:with-param>
686              </xsl:call-template>
687            </dd>
688          </xsl:if>
689          <xsl:if test="$hassecurity-testing">
690            <dt title="security updates for the testing release">testing-sec</dt>
691            <dd>
692              <xsl:call-template name="output-version">
693                <xsl:with-param name="suite">security-testing</xsl:with-param>
694                <xsl:with-param name="link">no</xsl:with-param>
695              </xsl:call-template>
696            </dd>
697          </xsl:if>
698          <xsl:if test="$hastesting-proposed-updates">
699            <dt title="testing proposed updates">t-p-u</dt>
700            <dd>
701              <xsl:call-template name="output-version">
702                <xsl:with-param name="suite">testing-proposed-updates</xsl:with-param>
703                <xsl:with-param name="link">no</xsl:with-param>
704              </xsl:call-template>
705            </dd>
706          </xsl:if>
707          <xsl:if test="$hasunstable">
708            <dt>unstable</dt>
709            <dd>
710              <xsl:call-template name="output-version">
711                <xsl:with-param name="suite">unstable</xsl:with-param>
712              </xsl:call-template>
713            </dd>
714          </xsl:if>
715          <xsl:if test="$hasexperimental">
716            <dt title="experimental release">exp</dt>
717            <dd>
718              <xsl:call-template name="output-version">
719                <xsl:with-param name="suite">experimental</xsl:with-param>
720              </xsl:call-template>
721            </dd>
722          </xsl:if>
723          <xsl:if test="$hasvolatile">
724            <dt>volatile</dt>
725            <dd>
726              <xsl:call-template name="output-version">
727                <xsl:with-param name="suite">volatile</xsl:with-param>
728                <xsl:with-param name="link">no</xsl:with-param>
729              </xsl:call-template>
730            </dd>
731          </xsl:if>
732          <xsl:if test="$hasother and $other/@new_version">
733            <dt title="waiting in the NEW queue for FTP master review">
734              <a href="http://ftp-master.debian.org/new.html">NEW</a>
735            </dt>
736            <dd>
737              <xsl:value-of select="$other/@new_version" />
738            </dd>
739          </xsl:if>
740        </dl>
741      </div>
742  </xsl:template>  </xsl:template>
743    
744  <xsl:template name="problems">  <xsl:template name="ubuntu">
745    <xsl:variable name="problems">    <xsl:if test="$other/@ubuntu='yes'">
746      <xsl:if test="$hasexcuse and document(concat('../base/', $dir, '/excuse.xml'))/excuse/@problematic">      <div class="block ubuntu">
747        <li>The package has not yet entered <a        <a name="ubuntu" />
748            href="http://ftp-master.debian.org/testing/update_excuses.html.gz#{$package}">testing</a>        <h2>ubuntu
749          even though the <xsl:value-of select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/@limit"/>-day          <img src="../common/ubuntu.png" alt="ubuntu" />
750          delay is over.          <xsl:text> </xsl:text>
751            <xsl:call-template name="more-info-marker">
752              <xsl:with-param name="href">https://wiki.ubuntu.com/Ubuntu/ForDebianDevelopers</xsl:with-param>
753              <xsl:with-param name="title">Information about Ubuntu for Debian Developers</xsl:with-param>
754            </xsl:call-template>
755          </h2>
756          <ul>
757            <li>
758              version: <a href="{$other/ubuntu/@url}"><xsl:value-of select="$other/ubuntu/@version"/></a>
759            </li>
760            <xsl:if test="$other/ubuntu/patch">
761              <li>
762                <a href="{$other/ubuntu/patch/@url}">patches for
763                <xsl:value-of select="$other/ubuntu/patch/@version"/></a>
764              </li>
765            </xsl:if>
766            <xsl:if test="$other/ubuntu/bugs">
767              <li>
768                <a href="{$other/ubuntu/bugs/@url}"><xsl:value-of select="$other/ubuntu/bugs/@count"/>
769                bugs</a>
770              </li>
771            </xsl:if>
772          </ul>
773        </div>
774      </xsl:if>
775    </xsl:template>
776    
777    <xsl:template name="other-links">
778      <div class="block links">
779        <a name="links" />
780        <h2>links</h2>
781        <ul>
782          <xsl:if test="homepage">
783            <li><a title="upstream web homepage" href="{homepage}">homepage</a></li>
784          </xsl:if>
785          <li>
786          <xsl:element name="a">          <xsl:element name="a">
787            <xsl:attribute name="href">            <xsl:attribute name="href">
788              <xsl:text>http://bjorn.haxx.se/debian/testing.pl?package=</xsl:text>              <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
789              <xsl:call-template name="escape-name">              <xsl:value-of select="directory"/>
790                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>              <xsl:text>/current/changelog</xsl:text>
             </xsl:call-template>  
791            </xsl:attribute>            </xsl:attribute>
792            Check why            <xsl:text>changelog</xsl:text>
793          </xsl:element>          </xsl:element>
794          .</li>          /
795      </xsl:if>          <xsl:element name="a">
796      <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">            <xsl:attribute name="href">
797        <li>The package is severly out of date with respect to the Debian              <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
798          Policy. Latest version is <xsl:value-of select="$lastsv"/>              <xsl:value-of select="directory"/>
799          and your package only follows              <xsl:text>/current/copyright</xsl:text>
800          <xsl:value-of select="standards-version"/>...</li>            </xsl:attribute>
801      </xsl:if>            <xsl:text>copyright</xsl:text>
802      <xsl:if test="@release!='unstable' and @release!='experimental'">          </xsl:element>
803        <li>This package is neither part of unstable nor experimental. This        </li>
804          probably means that the package <a        <xsl:if test="architecture!='all'">
805            href="http://ftp-master.debian.org/removals.txt">has been removed</a> (or          <li>
806          has been renamed). Thus the information here is of little interest ...            <xsl:text>buildd: </xsl:text>
807          the package is going to disappear unless someone takes it over and            <a href="http://buildd.debian.org/pkg.cgi?pkg={$escaped-package}"
808          reintroduces it into unstable.</li>               title="buildd.debian.org build logs">logs</a>
809      </xsl:if>            <xsl:text>, </xsl:text>
810      <xsl:if test="$hasother">            <!-- <a href="http://people.debian.org/~igloo/status.php?packages={$escaped-package}"
811                      title="igloo's build logs on people.debian.org">more</a> -->
812        <!-- Override disparity handling. [JvW] -->            <a href="http://buildd.debian.org/~luk/status/package.php?p={$escaped-package}"
813        <xsl:if test="$other/@override='yes'">               title="build logs on buildd.debian.org">more</a>
814          <xsl:for-each select="$other/override/group">            <xsl:text>, </xsl:text>
815            <li>There were override disparities found in suite <xsl:value-of            <!-- <a href="http://experimental.debian.net/build.php?pkg={$escaped-package}" -->
816                select="@suite"/>:                 <!--   title="experimental.debian.net build logs">exp</a> -->
817              <ul>                 <xsl:if test="$hasexperimental">
818                <xsl:for-each select="disparity">                   <a href="http://experimental.debian.net/new/package.php?p={$escaped-package}&amp;suite=experimental"
819                  <li><xsl:value-of select="text()"/></li>                      title="experimental.debian.net build logs">exp</a>
820                </xsl:for-each>                   <xsl:text>, </xsl:text>
821              </ul>                 </xsl:if>
822            </li>                 <a href="http://buildd.debian-ports.org/status/package.php?p={$escaped-package}"
823          </xsl:for-each>                    title="debian ports build logs">ports</a>
824            </li>
825        </xsl:if>        </xsl:if>
826          <xsl:if test="$hasother and $other/@piuparts='yes'">
       <!-- Wnpp handling. [PvR] -->  
       <xsl:if test="$other/@wnpp='yes'">  
827          <li>          <li>
828            <xsl:choose>            <a title="report about errors found while stressing package installation"
829              <xsl:when test="$other/wnpp/@type='O'">               href="http://piuparts.debian.org/sid/source/{$hash}/{$package}.html">piuparts</a>
               <xsl:choose>  
                 <xsl:when test="@release!='unstable' and @release!='experimental'">  
                   The WNPP database contains an O (Orphaned) entry for  
                   this package. This is probably an error, as it is neither part of  
                   unstable nor experimental.  
                 </xsl:when>  
                 <xsl:otherwise>  
                   <span style="font-weight: bold">This package has been orphaned</span>.  
                   This means that it does not have a real maintainer at the  
                   moment. Please consider adopting this package if you are interested in it.  
                 </xsl:otherwise>  
               </xsl:choose>  
             </xsl:when>  
             <xsl:when test="$other/wnpp/@type='ITA'">  
               <xsl:choose>  
                 <xsl:when test="@release!='unstable' and @release!='experimental'">  
                   The WNPP database contains an ITA (Intent To Adopt) entry for  
                   this package. This is probably an error, as it is neither part of  
                   unstable nor experimental.  
                 </xsl:when>  
                 <xsl:otherwise>  
                   This package has been orphaned, but someone intends to maintain it.  
                 </xsl:otherwise>  
               </xsl:choose>  
             </xsl:when>  
             <xsl:when test="$other/wnpp/@type='RFA'">  
               <xsl:choose>  
                 <xsl:when test="@release!='unstable' and @release!='experimental'">  
                   The WNPP database contains an RFA (Request For Adoption) entry for  
                   this package. This is probably an error, as it is neither part of  
                   unstable nor experimental.  
                 </xsl:when>  
                 <xsl:otherwise>  
                   The current maintainer is looking for someone who can take over  
                   maintenance of this package. If you are interested in this package,  
                   please consider taking it over. Alternatively you may  
                   want to be co-maintainer in order to help the actual maintainer.  
                 </xsl:otherwise>  
               </xsl:choose>  
             </xsl:when>  
             <xsl:when test="$other/wnpp/@type='RFH'">  
               <xsl:choose>  
                 <xsl:when test="@release!='unstable' and @release!='experimental'">  
                   The WNPP database contains an RFH (Request For Help) entry for  
                   this package. This is probably an error, as it is neither part of  
                   unstable nor experimental.  
                 </xsl:when>  
                 <xsl:otherwise>  
                   The current maintainer is looking for someone who can help with the  
                   maintenance of this package. If you are interested in this package,  
                   please consider helping out. One way you can help is offer to be a  
                   co-maintainer or triage bugs in the bts.  
                 </xsl:otherwise>  
               </xsl:choose>  
             </xsl:when>  
             <xsl:when test="$other/wnpp/@type='ITP'">  
               <xsl:choose>  
                 <xsl:when test="@release!='unstable' and @release!='experimental'">  
                   The WNPP database contains an ITP (Intent To Package). This probably  
                   means that somebody is going to reintroduce this package into unstable.  
                 </xsl:when>  
                 <xsl:otherwise>  
                   The WNPP database contains an ITP (Intent To Package) entry for  
                   this package. This is probably an error, as it has already been  
                   packaged.  
                 </xsl:otherwise>  
               </xsl:choose>  
             </xsl:when>  
             <xsl:when test="$other/wnpp/@type='RFP'">  
               <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.  
830          </li>          </li>
831        </xsl:if>        </xsl:if>
832          <xsl:if test="($hasunstable and $other/debcheck/@unstable='yes')
833        <!-- uscan output if present [FG] -->                      or ($hastesting and $other/debcheck/@testing='yes')
834        <xsl:if test="$other/@watch='yes'">                      or ($hasstable and $other/debcheck/@stable='yes')">
835          <li>          <li>
836            <xsl:if test="$other/watch/@warning!=''">            debcheck:
837              uscan had problems while searching for a new upstream version: <xsl:value-of select="$other/watch/@warning"/>            <xsl:if test="$hasunstable">
838                <xsl:text> </xsl:text>
839                <a href="http://qa.debian.org/debcheck.php?dist=unstable&amp;package={$escaped-package}">unstable</a>
840              </xsl:if>
841              <xsl:if test="$hastesting">
842                <xsl:text> </xsl:text>
843                <a href="http://qa.debian.org/debcheck.php?dist=testing&amp;package={$escaped-package}">testing</a>
844              </xsl:if>
845              <xsl:if test="$hasstable">
846                <xsl:text> </xsl:text>
847                <a href="http://qa.debian.org/debcheck.php?dist=stable&amp;package={$escaped-package}">stable</a>
848            </xsl:if>            </xsl:if>
849          </li>          </li>
850        </xsl:if>        </xsl:if>
851          <xsl:if test="$other/@lintian='yes'">
852            <xsl:variable name="lintian_url"><xsl:call-template name="mk_lintian_url" /></xsl:variable>
853            <li>
854              <a title="report about packaging issues spotted by lintian"
855                 href="{$lintian_url}">lintian</a>
856              <!-- <xsl:if test="$lin_errs + $lin_warns > 0"> -->
857              <!--   <xsl:text> </xsl:text> -->
858              <!--   <small><span title="(errors, warnings)">(<span id="lintian_errors"><xsl:value-of select="$lin_errs" /></span>, -->
859              <!--  <span id="lintian_warnings"><xsl:value-of select="$lin_warns" /></span>)</span></small> -->
860              <!-- </xsl:if> -->
861            </li>
862          </xsl:if>
863          <li>
864            <a title="package popularity"
865               href="http://qa.debian.org/developer.php?popcon={$escaped-package}">popcon</a>
866          </li>
867          <xsl:if test="$other/@svnbuildstat='yes'">
868            <li>
869              <a href="http://svnbuildstat.debian.net/packages/info/{$escaped-package}">Svnbuildstat</a>
870            </li>
871          </xsl:if>
872          <xsl:if test="$other/i18n/@href">
873            <li>
874              <a title="translation status"
875                 href="{$other/i18n/@href}">l10n</a>
876              <small>
877                (<span title="completeness of Debian string translation">
878                  <xsl:value-of select="$other/i18n/@deb" />
879                </span>,
880                <span title="completeness of non-Debian string translation">
881                  <xsl:value-of select="$other/i18n/@nondeb" />
882                </span>)
883              </small>
884            </li>
885          </xsl:if>
886        </ul>
887      </div>
888    </xsl:template>
889    
890        <!-- Misc problems reported -->  <xsl:template name="todo-list">
891      <xsl:variable name="todo">
892        <xsl:call-template name="issue-nmu" />
893        <xsl:call-template name="issue-lintian" />
894        <xsl:call-template name="issue-mentors-pending" />
895        <xsl:call-template name="issue-comaintenance" />
896        <xsl:call-template name="issue-outdate-stdver" />
897        <xsl:call-template name="issue-new-upstream" />
898        <xsl:call-template name="issue-patches" />
899        <xsl:call-template name="issue-l10n" />
900        <xsl:if test="$hasother">
901          <xsl:for-each select="$other/todo/item">
902            <xsl:call-template name="outputitem" />
903          </xsl:for-each>
904        </xsl:if>
905      </xsl:variable>
906    
907      <xsl:if test="count($todo)>0 and string($todo)!=''">
908        <div class="block todo">
909          <a name="todo" />
910          <h2>todo</h2>
911          <ul>
912            <xsl:copy-of select="$todo" />
913          </ul>
914        </div>
915      </xsl:if>
916    </xsl:template>
917    
918    <xsl:template name="problems">
919      <xsl:variable name="problems">
920        <xsl:call-template name="issue-testing-excuses" />
921        <xsl:call-template name="issue-piuparts" />
922        <xsl:call-template name="issue-ancient-stdver" />
923        <xsl:call-template name="issue-item-dead-package" />
924        <xsl:call-template name="issue-item-override-disparity" />
925        <xsl:call-template name="issue-item-help-bugs" />
926        <xsl:call-template name="issue-item-wnpp" />
927        <!-- <xsl:call-template name="issue-item-watch-failure" /> -->
928        <xsl:call-template name="issue-item-dehs-failure" />
929        <xsl:if test="$hasother">
930        <xsl:for-each select="$other/problems/item">        <xsl:for-each select="$other/problems/item">
931          <xsl:call-template name="outputitem"/>          <xsl:call-template name="outputitem"/>
932        </xsl:for-each>        </xsl:for-each>
933      </xsl:if>      </xsl:if>
934    </xsl:variable>    </xsl:variable>
935    
936    <xsl:if test="count($problems)>0 and string($problems)!=''">    <xsl:if test="count($problems)>0 and string($problems)!=''">
937      <tr class="titlerow">      <div class="block problems">
938        <td class="titlecell" id="problems">        <a name="problems" />
939          Problems        <h2>problems</h2>
940      </td></tr>        <ul>
941      <tr class="normalrow">          <xsl:copy-of select="$problems" />
942        <td class="contentcell2">        </ul>
943          <ul><xsl:copy-of select="$problems"/></ul>      </div>
       </td>  
     </tr>  
944    </xsl:if>    </xsl:if>
945  </xsl:template>  </xsl:template>
946    
947  <xsl:template name="testing-status">  <xsl:template name="testing-status">
948    <xsl:if test="$hasexcuse">    <xsl:if test="$hasexcuse or $other/@transitions='yes'">
949      <tr class="titlerow">      <div class="block testing">
950        <td class="titlecell">        <a name="testing" />
951          Testing Status        <h2>testing migration</h2>
952      </td></tr>        <xsl:if test="$other/@transitions='yes'">
953      <tr class="normalrow">          <xsl:variable name="translist">
954        <td class="contentcell2" style="text-align: left">            <xsl:for-each select="$other/transitions/transition">
955          <ul>              <xsl:value-of select="@name" />
956                <xsl:if test="position() != last()"> <xsl:text> </xsl:text>
957                </xsl:if>
958              </xsl:for-each>
959            </xsl:variable>
960            <xsl:variable name="transno"
961                          select="count($other/transitions/transition)" />
962            <div class="warning">
963              <!-- XXX unappropriate <ul>, just to make the text looks like other
964                   boxes, should be fixed on the CSS side (getting rid of <ul>) -->
965              <p>This package is part of <em><xsl:value-of select="$transno" /> ongoing
966                  testing transition<xsl:if test="$transno != '1'">s</xsl:if></em>
967                (namely: <tt><xsl:value-of select="$translist" /></tt>). For
968                more information see the
969                <a href="http://ftp-master.debian.org/transitions.yaml">transition
970                  status file</a>.<br />
971                <em>Uploads to unstable will be rejected</em> while
972                transitions are ongoing; you might want to upload to
973                experimental in the meantime, or
974                contact <tt><a href="mailto:debian-release@lists.debian.org">debian-release</a></tt>
975                if an upload is really necessary.
976              </p>
977            </div>
978          </xsl:if>
979          <xsl:if test="$hasexcuse">
980            <a title="reasons why the package is not moving to testing"
981               href="http://qa.debian.org/excuses.php?package={$package}">excuses</a>:
982            <ul class="testing-excuses">
983            <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">            <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
984              <xsl:call-template name="outputitem"/>              <xsl:call-template name="outputitem"/>
985            </xsl:for-each>            </xsl:for-each>
986          </ul>          </ul>
987        </td>        </xsl:if>
988      </tr>      </div>
989    </xsl:if>    </xsl:if>
990  </xsl:template>  </xsl:template>
991    
# Line 1129  other-to-%xx, especially % to %25... For Line 1021  other-to-%xx, especially % to %25... For
1021  <xsl:template match="source">  <xsl:template match="source">
1022    
1023    <!-- Start of html -->    <!-- Start of html -->
   <xsl:text disable-output-escaping="yes">  
   &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;  
   </xsl:text>  
1024    <html>    <html>
1025    <head>      <head>
1026    <meta name="ROBOTS" content="NOFOLLOW"/>        <meta name="ROBOTS" content="NOFOLLOW"/>
1027    <link type="text/css" title="Default" rel="stylesheet" href="../common/pts.css"/>        <link type="text/css" title="User selected" rel="stylesheet" href="../common/default.css"/>
1028    <link type="text/css" title="Standard link rendering" rel="alternate stylesheet" href="../common/pts2.css"/>        <link type="text/css" title="Official" rel="alternate stylesheet" href="../common/revamp.css"/>
1029    <link type="text/css" title="Compact rendering" rel="alternate stylesheet" href="../common/compact.css"/>        <link type="text/css" title="Legacy PTS" rel="alternate stylesheet" href="../common/pts.css"/>
1030    <xsl:if test="count($news)>0 and string($news)!=''">        <link type="text/css" title="Compact rendering" rel="alternate stylesheet" href="../common/compact.css"/>
1031      <link rel="alternate" type="application/rss+xml" title="RSS"        <script type="text/javascript" src="../common/pts.js"></script>
1032        href="{$package}/news.rss20.xml" />        <xsl:if test="count($news)>0 and string($news)!=''">
1033    </xsl:if>          <link rel="alternate" type="application/rss+xml" title="RSS"
1034    <title>Overview of <xsl:value-of select="$package"/> source package</title>                href="{$package}/news.rss20.xml" />
1035    </head>        </xsl:if>
1036    <body>        <title>Debian Package Tracking System -
1037            <xsl:value-of select="$package"/></title>
1038    <form method="get" action="/common/index.html" style="float: right;">      </head>
1039    <!-- this link should make lynx/links happy [FG] -->      <body onload="javascript:onLoad();">
1040    <p>Jump to package (<a href="/">home page</a>): <br/>        <div class="quickform" style="float: right;">
1041    <input type="text" name="src" value=""/></p>          <form title="jump to the PTS page of another source package"
1042    </form>                method="get" action="/common/index.html">
1043    <h1>Overview of            <p>
1044    <xsl:element name="a">              <input type="text" size="14" name="src" value=""/>
1045      <xsl:attribute name="href">              <input type="submit" value="jump to" />
1046        <xsl:text>http://packages.debian.org/src:</xsl:text>            </p>
1047         <xsl:value-of select="$package"/>          </form>
1048      </xsl:attribute>        </div>
1049     <xsl:value-of select="$package"/>  
1050    </xsl:element>        <h1>
1051    source package</h1>          <xsl:value-of select="$package"/><br />
1052            <small>source package</small>
1053    <div id="body">        </h1>
1054    <xsl:choose>  
1055    <xsl:when test="$removed='yes'">        <div id="body">
1056    <!-- REMOVED PACKAGE -->          <xsl:choose>
1057    <p>This package is not part of any Debian distribution. Thus you won't            <xsl:when test="$removed='yes'">
1058    find much information here. The package is either very new and hasn't              <div class="block removed">
1059    appeared on mirrors yet, or it's an old package that eventually got removed.                <p>This package is not part of any Debian
1060    The old news are kept for historic purpose only.</p>                  distribution. Thus you won't find much information
1061                    here. The package is either very new and hasn't
1062    <table class="righttable">                  appeared on mirrors yet, or it's an old package that
1063      <xsl:call-template name="static-info" />                  eventually got removed.  The old news are kept for
1064      <xsl:call-template name="latest-news" />                  historic purpose only.</p>
1065    </table>                <xsl:call-template name="static-info" />
1066                  <xsl:call-template name="latest-news" />
1067    <!-- END REMOVED PACKAGE -->              </div>
1068    </xsl:when>            </xsl:when>
1069    <xsl:otherwise>            <xsl:otherwise>       <!-- non removed package -->
1070    <!-- NON REMOVED PACKAGE -->              <div class="left maincol">
1071                  <xsl:call-template name="general-information" />
1072    <table class="containertable">                <xsl:call-template name="available-versions" />
1073    <tr class="containerrow" valign="top">                <xsl:call-template name="binary-packages" />
1074    <td class="containercell">              </div>
1075    <!-- LEFT SIDE -->              <div class="center maincol">
1076    <table class="lefttable">                <xsl:call-template name="todo-list" />
1077      <xsl:call-template name="general-information" />                <xsl:call-template name="problems" />
1078      <xsl:call-template name="bugs-count" />                <xsl:call-template name="testing-status" />
1079      <xsl:call-template name="pts-subscription" />                <xsl:call-template name="static-info" />
1080      <xsl:call-template name="binary-packages" />                <xsl:call-template name="latest-news" />
1081      <xsl:call-template name="available-versions" />              </div>
1082      <xsl:call-template name="patches" />              <div class="right maincol">
1083      <xsl:call-template name="other-links" />                <xsl:call-template name="bugs-count" />
1084      <xsl:call-template name="package-files" />                <xsl:call-template name="other-links" />
1085    </table>                <xsl:call-template name="ubuntu" />
1086    <!-- END LEFT SIDE -->              </div>
1087    </td><td class="containercell">            </xsl:otherwise>
1088    <!-- RIGHT SIDE -->          </xsl:choose>
1089    <table class="righttable">  
1090      <xsl:call-template name="todo-list" />          <hr/>
1091      <xsl:call-template name="problems" />          <div class="footer">
1092      <xsl:call-template name="testing-status" />            <table width="100%">
1093      <xsl:call-template name="static-info" />              <tr>
1094      <xsl:call-template name="latest-news" />                <td>
1095    </table>                  <div class="quickform">
1096    <!-- END RIGHT SIDE -->                    <form id="csspref-form" method="get"
1097    </td></tr>                          action="/common/set-csspref.php">
1098    </table>                      <p>
1099                          change skin:
1100    <!-- END NON REMOVED PACKAGE -->                        <select name="csspref" onchange="javascript:onChangeStyle();">
1101    </xsl:otherwise>                          <option value="revamp.css">default</option>
1102    </xsl:choose>                          <option value="compact.css">compact</option>
1103                            <option value="pts.css">legacy</option>
1104    <hr/>                        </select>
1105    <div class="footer">                      </p>
1106      <p>                    </form>
1107        Debian Package Tracking System - Copyright 2002-2007 Raphaël Hertzog and                  </div>
1108        others<br/>                  <div class="quickform">
1109        Report problems to the <a href="http://bugs.debian.org/qa.debian.org"                    <xsl:call-template name="pts-subscription" />
1110          >qa.debian.org pseudopackage</a><br/>                  </div>
1111        Last modified : <xsl:value-of select="$date"/>                </td>
1112      </p>                <td>
1113    </div>                  <p>
1114    </div>                    <em><a href="http://www.debian.org">Debian</a>
1115    </body>                      Package Tracking System</em> - Copyright ©
1116                        2002-2009 Raphaël Hertzog, Stefano Zacchiroli and
1117                        others.<br/> Report problems to the
1118                      <a href="http://bugs.debian.org/qa.debian.org"><tt>qa.debian.org</tt>
1119                        pseudopackage</a> in the <a href="http://bugs.debian.org">Debian
1120                        <acronym title="Bug Tracking System">BTS</acronym></a>.<br/>
1121                      Last modified: <xsl:value-of select="$date"/>.
1122                    </p>
1123                  </td>
1124                  <td>
1125                    <a href="http://validator.w3.org/check?uri=referer">
1126                      <img
1127                         src="http://www.w3.org/Icons/valid-xhtml10-blue"
1128                         alt="Valid XHTML 1.0 Strict" height="31" width="88" />
1129                    </a>
1130                  </td>
1131                </tr>
1132              </table>
1133            </div>
1134          </div>
1135        </body>
1136    </html>    </html>
1137  </xsl:template>  </xsl:template>
1138    

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

  ViewVC Help
Powered by ViewVC 1.1.5