/[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 1768 by zack, Sat Dec 1 09:34:52 2007 UTC revision 2713 by pabs, Tue Feb 14 07:49:35 2012 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-2011 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      xmlns:str="http://exslt.org/strings"
14      version="1.0">
15    
16    <xsl:output
17      method="xml"
18      encoding="UTF-8"
19      omit-xml-declaration="yes"
20      doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
21      doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
22      indent="yes" />
23    
24  <xsl:output encoding="UTF-8" method="html"/>  <xsl:include href="pts-issues.xsl" />
25    
26  <xsl:param name="package"/>  <xsl:param name="package"/>
27  <xsl:param name="dir"/>  <xsl:param name="dir"/>
# Line 18  Line 31 
31  <xsl:param name="hastesting" select="''"/>  <xsl:param name="hastesting" select="''"/>
32  <xsl:param name="hasunstable" select="''"/>  <xsl:param name="hasunstable" select="''"/>
33  <xsl:param name="hasexperimental" select="''"/>  <xsl:param name="hasexperimental" select="''"/>
34    <xsl:param name="hasmentors" select="''"/>
35  <xsl:param name="hasother" select="''"/>  <xsl:param name="hasother" select="''"/>
36  <xsl:param name="hass-p-u" select="''"/>  <xsl:param name="hasstable-proposed-updates" select="''"/>
37  <xsl:param name="hast-p-u" select="''"/>  <xsl:param name="hastesting-proposed-updates" select="''"/>
38  <xsl:param name="hasoldstable-security" select="''"/>  <xsl:param name="hassecurity-oldstable" select="''"/>
39  <xsl:param name="hasstable-security" select="''"/>  <xsl:param name="hassecurity-stable" select="''"/>
40  <xsl:param name="hastesting-security" select="''"/>  <xsl:param name="hassecurity-testing" select="''"/>
41  <xsl:param name="hassecure-testing" select="''"/>  <xsl:param name="hasoldstable-updates" select="''"/>
42  <xsl:param name="hasvolatile" select="''"/>  <xsl:param name="hasstable-updates" select="''"/>
43    <xsl:param name="hasoldstable-backports" select="''"/>
44    <xsl:param name="hasstable-backports" select="''"/>
45  <xsl:param name="hasnews" select="''"/>  <xsl:param name="hasnews" select="''"/>
46  <xsl:param name="hasexcuse" select="''"/>  <xsl:param name="hasexcuse" select="''"/>
47    
48  <xsl:variable name="other" select="document(concat('../base/', $dir, '/other.xml'))/other"/>  <xsl:variable name="other"
49      select="document(concat('../base/', $dir, '/other.xml'))/other"/>
50    <xsl:variable name="low-nmu-emails"
51      select="document('../base/low_threshold_nmu.emails.xml')/emails"/>
52    <xsl:variable name="mostrecentsuite">
53      <!-- name of the most recent suite in which the package is available
54      -->
55      <xsl:choose>
56        <xsl:when test="$hasexperimental">
57          <xsl:text>experimental</xsl:text>
58        </xsl:when>
59        <xsl:when test="$hasunstable">
60          <xsl:text>unstable</xsl:text>
61        </xsl:when>
62        <xsl:when test="$hastesting">
63          <xsl:text>testing</xsl:text>
64        </xsl:when>
65        <xsl:when test="$hasstable">
66          <xsl:text>stable</xsl:text>
67        </xsl:when>
68        <xsl:otherwise>
69          <xsl:text />
70        </xsl:otherwise>
71      </xsl:choose>
72    </xsl:variable>
73    <xsl:variable name="pooldir">
74      <xsl:if test="$mostrecentsuite != ''">
75        <xsl:value-of
76           select="document(concat('../base/', $dir, '/',
77                   $mostrecentsuite, '.xml'))/source/directory" />
78      </xsl:if>
79    </xsl:variable>
80    
81  <!-- Those variables controls the todo and problem item concerning  <!-- Those variables controls the todo and problem item concerning
82       standards-version not being up to date -->       standards-version not being up to date -->
83  <xsl:variable name="lastsv" select="'3.7.2'"/>  <xsl:variable name="lastsv" select="'3.9.2'"/>
84  <xsl:variable name="lastmajorsv" select="'3.'"/>  <xsl:variable name="lastmajorsv" select="'3.'"/>
85    
86    <!-- lintian summary -->
87    <xsl:variable name="lin_errs" select="$other/lintian/@errors" />
88    <xsl:variable name="lin_warns" select="$other/lintian/@warnings" />
89    
90    <!-- buildd log check summary -->
91    <xsl:variable name="logcheck_errs" select="$other/logcheck/@errors" />
92    <xsl:variable name="logcheck_warns" select="$other/logcheck/@warnings" />
93    
94  <!-- Named templates aka functions -->  <!-- Named templates aka functions -->
95  <xsl:template name="mirror">  
96    <xsl:text>http://ftp.debian.org/debian</xsl:text>  <xsl:template name="mk_lintian_url">
97  </xsl:template>    <!-- convert maintainer/name to follow lintian.debian.org convention -->
98      <xsl:variable name="lintian_pattern" select="concat('àáèéëêòöøîìùñ~/()&#34; ', &quot;'&quot;)"/>
99      <xsl:variable name="lintian_email" select="translate(maintainer/email, $lintian_pattern, '_____________________')"/>
100    
101      <xsl:choose>
102        <xsl:when test="$lin_errs + $lin_warns > 0">
103          <xsl:text>http://lintian.debian.org/maintainer/</xsl:text>
104        </xsl:when>
105        <xsl:otherwise>
106          <xsl:text>http://lintian.debian.org/full/</xsl:text>
107        </xsl:otherwise>
108      </xsl:choose>
109      <xsl:value-of select="$lintian_email" />
110      <xsl:text>.html#</xsl:text>
111      <xsl:value-of select="$package" />
112    </xsl:template>
113    
114    <xsl:template name="mk_logcheck_url">
115      <xsl:text>http://buildd.debian.org/~brlink/packages/</xsl:text>
116      <xsl:value-of select="substring($package,1,1)"/>
117      <xsl:text>/</xsl:text>
118      <xsl:value-of select="$package" />
119      <xsl:text>.html</xsl:text>
120    </xsl:template>
121    
122    <xsl:variable name="mirror">http://cdn.debian.net/debian</xsl:variable>
123    <xsl:variable name="security-mirror">http://security.debian.org/debian-security</xsl:variable>
124    <xsl:variable name="backports-mirror">http://backports.debian.org/debian-backports</xsl:variable>
125    
126  <xsl:template name="outputitem">  <xsl:template name="outputitem">
127    <xsl:choose>    <xsl:choose>
# Line 54  Line 136 
136          <xsl:value-of select="@from"/>          <xsl:value-of select="@from"/>
137          <xsl:text>)</xsl:text></xsl:if></li>          <xsl:text>)</xsl:text></xsl:if></li>
138      </xsl:when>      </xsl:when>
139        <xsl:when test="@type='raw'">
140          <li>
141            <xsl:copy-of select="node()" />
142          </li>
143        </xsl:when>
144      <xsl:otherwise>      <xsl:otherwise>
145        <li><xsl:if test="@date">        <li><xsl:if test="@date">
146          <xsl:text>[</xsl:text>          <xsl:text>[</xsl:text>
# Line 80  other-to-%xx, especially % to %25... For Line 167  other-to-%xx, especially % to %25... For
167    </xsl:if>    </xsl:if>
168  </xsl:template>  </xsl:template>
169    
170    <xsl:variable name="escaped-package">
171      <xsl:call-template name="escape-name">
172        <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
173      </xsl:call-template>
174    </xsl:variable>
175    
176  <!-- Strip epoch -->  <!-- Strip epoch -->
177  <xsl:template name="strip-epoch">  <xsl:template name="strip-epoch">
178    <xsl:param name="version"/>    <xsl:param name="version"/>
# Line 93  other-to-%xx, especially % to %25... For Line 186  other-to-%xx, especially % to %25... For
186    
187  <xsl:template name="add-vcs-info">  <xsl:template name="add-vcs-info">
188    <xsl:if test="repository">    <xsl:if test="repository">
189      <tr>      <dt title="Version Control System">VCS</dt>
190        <td class="labelcell">      <dd>
191          <xsl:text>Version Control</xsl:text>        <xsl:if test="repository/vcs[@kind!='browser']">
192        </td>          <xsl:for-each select="repository/vcs[@kind!='browser']">
193        <td class="contentcell">            <xsl:sort select="@kind" />
194          <xsl:if test="repository/vcs[@kind='browser']">            <a title="raw {@kind} repository" href="{@url}">
195            <a href="{repository/vcs[@kind='browser']/@url}">              <xsl:value-of select="@kind" />
             <xsl:text>browser</xsl:text>  
196            </a>            </a>
197            <br />            <xsl:if test="position()!=last()"><xsl:text>, </xsl:text></xsl:if>
198          </xsl:if>          </xsl:for-each>
199          <xsl:if test="repository/vcs[@kind!='browser']">        </xsl:if>
200            <xsl:text>raw: </xsl:text>        <xsl:if test="repository/vcs[@kind='browser']">
201            <xsl:for-each select="repository/vcs[@kind!='browser']">          <xsl:text> (</xsl:text>
202              <xsl:sort select="@kind" />          <a title="browse the repository"
203              <a href="{@url}">             href="{repository/vcs[@kind='browser']/@url}">browse</a>
204                <xsl:value-of select="@kind" />            <xsl:text>)</xsl:text>
205              </a>        </xsl:if>
206              <xsl:if test="position()!=last()">      </dd>
               <xsl:text>, </xsl:text>  
             </xsl:if>  
           </xsl:for-each>  
         </xsl:if>  
       </td>  
     </tr>  
207    </xsl:if>    </xsl:if>
208  </xsl:template>  </xsl:template>
209    
210  <xsl:template name="add-maintenance-info">  <xsl:template name="add-maintenance-info">
211      <xsl:param name="email" />
212    <xsl:variable name="dm">    <xsl:variable name="dm">
213      <xsl:if test="dm-upload-allowed and string(dm-upload-allowed)='yes'">      <xsl:if test="dm-upload-allowed and string(dm-upload-allowed)='yes'">
214        <xsl:text>true</xsl:text>        <xsl:text>true</xsl:text>
215      </xsl:if>      </xsl:if>
216    </xsl:variable>    </xsl:variable>
217    <xsl:variable name="lownmu">    <xsl:variable name="lownmu">
218      <xsl:if test="maintainer/low-threshold-nmu      <xsl:if test="$low-nmu-emails/email[text()=$email]">
         and string(maintainer/low-threshold-nmu)='yes'">  
219        <xsl:text>true</xsl:text>        <xsl:text>true</xsl:text>
220      </xsl:if>      </xsl:if>
221    </xsl:variable>    </xsl:variable>
222    
223    <xsl:if test="string($dm)!='' or string($lownmu)!=''">    <xsl:if test="string($dm)!='' or string($lownmu)!=''">
224      <tr>      <div class="maint-markers">
225        <td class="labelcell">      <xsl:if test="string($dm)!=''">
226          <xsl:text>Maintenance info</xsl:text>        <span class="dm-tag">
227        </td>          <a href="http://www.debian.org/vote/2007/vote_003">
228        <td class="contentcell">            <acronym title="Debian Maintainer Upload Allowed: this package can be uploaded by Debian Maintainers">DMUA</acronym>
229            </a>
230          <xsl:if test="string($dm)!=''">        </span>
231            <span class="dm-tag">      </xsl:if>
232              <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)!=''">
233            </span>        <xsl:if test="string($dm)!=''">
234          </xsl:if>          <xsl:text>, </xsl:text>
235          </xsl:if>
236          <xsl:if test="string($lownmu)!=''">        <span class="lownmu-tag">
237            <span class="lownmu-tag">          <a href="http://wiki.debian.org/LowThresholdNmu">
238              <a href="http://wiki.debian.org/LowThresholdNmu"><acronym            <acronym title="maintainer agrees with Low Threshold NMU">LowNMU</acronym>
239                  title="maintainer agrees with Low Threshold NMU, see wiki page for details">LowNMU</acronym></a>          </a>
240            </span>        </span>
241          </xsl:if>      </xsl:if>
242        </td>      </div>
     </tr>  
243    </xsl:if>    </xsl:if>
244  </xsl:template>  </xsl:template>
245    
# Line 162  other-to-%xx, especially % to %25... For Line 247  other-to-%xx, especially % to %25... For
247    <xsl:param name="news" />    <xsl:param name="news" />
248    
249    <xsl:if test="count($news)>0 and string($news)!=''">    <xsl:if test="count($news)>0 and string($news)!=''">
250      <tr class="titlerow">      <div class="block news">
251      <td class="titlecell">        <a name="news" />
252        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>
253      </td></tr>        <ul id="news-list">
254      <tr class="normalrow">          <xsl:copy-of select="$news" />
255      <td class="contentcell2">        </ul>
256      <ul><xsl:copy-of select="$news"/></ul>      </div>
     </td>  
     </tr>  
257    </xsl:if>    </xsl:if>
258  </xsl:template>  </xsl:template>
259    
# Line 178  other-to-%xx, especially % to %25... For Line 261  other-to-%xx, especially % to %25... For
261    <xsl:param name="static" />    <xsl:param name="static" />
262    
263    <xsl:if test="count($static)>0 and string($static)!=''">    <xsl:if test="count($static)>0 and string($static)!=''">
264      <tr class="titlerow">      <div class="block static">
265      <td class="titlecell">        <a name="static" />
266      Static Information        <h2>static info</h2>
267      </td></tr>        <ul>
268      <tr class="normalrow">          <xsl:copy-of select="$static" />
269      <td class="contentcell2">        </ul>
270      <ul><xsl:copy-of select="$static"/></ul>      </div>
     </td>  
     </tr>  
271    </xsl:if>    </xsl:if>
272  </xsl:template>  </xsl:template>
273    
 <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>  
   
274  <xsl:template name="maintainer-email">  <xsl:template name="maintainer-email">
275    <xsl:param name="email" />    <xsl:param name="email" />
276    <a class="email" href="mailto:{$email}">    <a class="email" href="mailto:{$email}">
# Line 215  other-to-%xx, especially % to %25... For Line 279  other-to-%xx, especially % to %25... For
279  </xsl:template>  </xsl:template>
280    
281  <xsl:template name="general-information">  <xsl:template name="general-information">
282    <tr class="titlerow">    <div class="block info">
283      <td class="titlecell" colspan="2">      <a name="general" />
284        General information      <h2>general</h2>
285      </td>      <dl>
286    </tr>        <dt>source</dt>
287    <tr class="normalrow">        <dd>
288      <td class="labelcell">Latest version</td>          <a href="http://packages.debian.org/src:{$package}">
289      <td class="contentcell"><xsl:value-of select="version"/></td>            <xsl:value-of select="$package" />
290    </tr>          </a>
291    <xsl:if test="@release!='unstable'">          (<span id="priority" title="priority">
292      <tr class="normalrow">            <small><xsl:value-of select="priority"/></small>
293        <td class="labelcell">Distribution</td>          </span>,
294        <td class="contentcell"><xsl:value-of select="@release"/></td>          <span id="section" title="section">
295      </tr>            <small><xsl:value-of select="section"/></small>
296    </xsl:if>          </span>)
297    <tr class="normalrow">        </dd>
298      <td class="labelcell">Maintainer</td>  
299      <td class="contentcell">        <dt>version</dt>
300        <xsl:element name="a">        <dd>
301          <xsl:attribute name="href">          <span id="latest_version"><xsl:value-of select="version"/></span>
302            <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>        </dd>
303            <xsl:call-template name="escape-name">  
304              <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>        <xsl:if test="@release!='unstable'">
305            </xsl:call-template>          <dt>distro</dt>
306          </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>  
307        </xsl:if>        </xsl:if>
       <xsl:if test="not(uploaders)">  
         <a class="none" title="You should find some co-maintainers ..." name="fake">None</a>  
       </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>,  
308    
309          <dt title="Maintainer and Uploaders">maint</dt>
310          <dd class="maintainer">
311            <xsl:element name="a">
312              <xsl:attribute name="href">
313                <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
314                <xsl:call-template name="escape-name">
315                  <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>
316                </xsl:call-template>
317              </xsl:attribute>
318              <span class="name" title="maintainer">
319                <xsl:value-of select="maintainer/name"/>
320              </span>
321            </xsl:element>
322            <xsl:if test="uploaders">
323              <xsl:for-each select="uploaders/item">
324                <xsl:text>, </xsl:text>
325                <span class="uploader">
326                  <small>
327                <xsl:element name="a">                <xsl:element name="a">
                 <xsl:attribute name="title">pending and fixed</xsl:attribute>  
328                  <xsl:attribute name="href">                  <xsl:attribute name="href">
329                    <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>
330                    <xsl:call-template name="escape-name">                    <xsl:call-template name="escape-name">
331                      <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>                      <xsl:with-param name="text">
332                          <xsl:value-of select="email"/>
333                        </xsl:with-param>
334                    </xsl:call-template>                    </xsl:call-template>
                   <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>  
335                  </xsl:attribute>                  </xsl:attribute>
336                  <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>                  <span class="name" title="uploader">
337                </xsl:element>)                    <xsl:value-of select="name"/>
338                    </span>
339                  </xsl:element>
340                  <xsl:text> (u)</xsl:text>
341                  </small>
342              </span>              </span>
343            </li>            </xsl:for-each>
344          </xsl:for-each>          </xsl:if>
345    </ul></td></tr>          <xsl:call-template name='add-maintenance-info'>
346  </xsl:template>            <xsl:with-param name="email" select="maintainer/email" />
347            </xsl:call-template>
348  <xsl:template name="available-versions">        </dd>
349    <tr class="titlerow">  
350      <td class="titlecell" colspan="2">        <xsl:if test="architecture!='any' and architecture!='all'">
351        Available versions          <dt>arch</dt>
352    </td></tr>          <dd><xsl:value-of select="architecture"/></dd>
353          </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>  
354    
355    <!-- secure-testing -->        <dt title="Standards-Version">std-ver</dt>
356    <xsl:if test="$hassecure-testing">        <dd>
357      <tr class="normalrow">          <span id="standards_version">
358        <td class="labelcell">Secure testing</td>            <xsl:value-of select="standards-version"/>
359        <td class="contentcell">          </span>
360          <xsl:value-of select="document(concat('../base/', $dir, '/secure-testing.xml'))/source/version"/>        </dd>
       </td>  
     </tr>  
   </xsl:if>  
361    
362    <!-- volatile -->        <xsl:call-template name='add-vcs-info' />
363    <xsl:if test="$hasvolatile">      </dl>
364      <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>  
365  </xsl:template>  </xsl:template>
366    
367  <xsl:template name="patches">  <xsl:template name="bugs-count">
368    <!-- Patches list [FG] -->    <div class="block bugs">
369    <xsl:if test="$other/@patches='yes'">      <a name="bugs" />
370      <tr class="titlerow">      <h2>bugs</h2>
371        <td class="titlecell" colspan="2">      <dl>
372          Patches        <dt id="bugs_all">
373      </td></tr>          all
374      <tr>          <xsl:element name="a">
375        <td class="contentcell" colspan="2" style="text-align: left">            <xsl:attribute name="href">
376          <ul>              <xsl:text>http://qa.debian.org/data/bts/graphs/</xsl:text>
377            <xsl:for-each select="$other/patches/item">              <xsl:value-of select="$dir"/>
378              <li>              <xsl:text>.png</xsl:text>
379                <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:attribute>
380              </li>            <xsl:attribute name="title">bug history graph</xsl:attribute>
381            </xsl:for-each>            <img alt="bug history graph" src="../common/bug-graph.png" />
382            <xsl:if test="$other/bugs/@patch!='0'">          </xsl:element>
383              <li>        </dt>
384                <xsl:element name="a">        <dd>
385                  <xsl:attribute name="href">          <xsl:element name="a">
386                    <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>            <xsl:attribute name="href">
387                    <xsl:call-template name="escape-name">              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=no&amp;src=</xsl:text>
388                      <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>              <xsl:value-of select="$escaped-package" />
389                    </xsl:call-template>            </xsl:attribute>
390                    <xsl:text>&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done</xsl:text>            <xsl:if test="$hasother">
391                  </xsl:attribute>              <span class="bugcount" title="all">
392                  Patches from BTS (<xsl:value-of select="$other/bugs/@patch"/>)                <xsl:value-of select="$other/bugs/@all"/>
393                </xsl:element>              </span>
             </li>  
394            </xsl:if>            </xsl:if>
395          </ul>          </xsl:element>
396        </td>          <xsl:if test="$hasother and $other/bugs/@all_m">
397      </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">  
398              <xsl:attribute name="href">              <xsl:attribute name="href">
399                <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>
400                <xsl:value-of select="directory"/>                <xsl:value-of select="$escaped-package" />
               <xsl:text>/current/changelog</xsl:text>  
401              </xsl:attribute>              </xsl:attribute>
402              <xsl:text>Changelog</xsl:text>              <xsl:value-of select="$other/bugs/@all_m"/>
403            </xsl:element>            </xsl:element>)
404            /          </xsl:if>
405          </dd>
406          <dt id="bugs_rc" title="Release Critical">
407            <span class="indented">RC</span>
408          </dt>
409          <dd>
410            <xsl:element name="a">
411              <xsl:attribute name="href">
412                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
413                <xsl:value-of select="$escaped-package" />
414                <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>
415              </xsl:attribute>
416              <xsl:if test="$hasother">
417                <span class="bugcount" title="rc">
418                  <xsl:value-of select="$other/bugs/@rc"/>
419                </span>
420              </xsl:if>
421            </xsl:element>
422            <xsl:if test="$hasother and $other/bugs/@rc_m">
423              (<xsl:element name="a">
424                <xsl:attribute name="href">
425                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
426                  <xsl:value-of select="$escaped-package" />
427                  <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>
428                </xsl:attribute>
429                <xsl:value-of select="$other/bugs/@rc_m"/>
430              </xsl:element>)
431            </xsl:if>
432          </dd>
433          <dt id="bugs_in" title="Important and Normal">
434            <span class="indented">I&amp;N</span>
435          </dt>
436          <dd>
437            <xsl:element name="a">
438              <xsl:attribute name="href">
439                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
440                <xsl:value-of select="$escaped-package" />
441                <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>
442              </xsl:attribute>
443              <xsl:if test="$hasother">
444                <span class="bugcount" title="in">
445                  <xsl:value-of select="$other/bugs/@normal"/>
446                </span>
447              </xsl:if>
448            </xsl:element>
449            <xsl:if test="$hasother and $other/bugs/@normal_m">
450              (<xsl:element name="a">
451                <xsl:attribute name="href">
452                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
453                  <xsl:value-of select="$escaped-package" />
454                  <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>
455                </xsl:attribute>
456                <xsl:value-of select="$other/bugs/@normal_m"/>
457              </xsl:element>)
458            </xsl:if>
459          </dd>
460          <dt id="bugs_mw" title="Minor and Wishlist">
461            <span class="indented">M&amp;W</span>
462          </dt>
463          <dd>
464            <xsl:element name="a">
465              <xsl:attribute name="href">
466                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
467                <xsl:value-of select="$escaped-package" />
468                <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>
469              </xsl:attribute>
470              <xsl:if test="$hasother">
471                <span class="bugcount" title="mw">
472                  <xsl:value-of select="$other/bugs/@wishlist"/>
473                </span>
474              </xsl:if>
475            </xsl:element>
476            <xsl:if test="$hasother and $other/bugs/@wishlist_m">
477              (<xsl:element name="a">
478                <xsl:attribute name="href">
479                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
480                  <xsl:value-of select="$escaped-package" />
481                  <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>
482                </xsl:attribute>
483                <xsl:value-of select="$other/bugs/@wishlist_m"/>
484              </xsl:element>)
485            </xsl:if>
486          </dd>
487          <dt id="bugs_fp" title="Fixed and Pending">
488            <span class="indented">F&amp;P</span>
489          </dt>
490          <dd>
491            <xsl:element name="a">
492              <xsl:attribute name="href">
493                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
494                <xsl:value-of select="$escaped-package" />
495                <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=no</xsl:text>
496              </xsl:attribute>
497              <xsl:if test="$hasother">
498                <span class="bugcount" title="fp">
499                  <xsl:value-of select="$other/bugs/@fixed"/>
500                </span>
501              </xsl:if>
502            </xsl:element>
503            <xsl:if test="$hasother and $other/bugs/@fixed_m">
504              (<xsl:element name="a">
505                <xsl:attribute name="href">
506                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
507                  <xsl:value-of select="$escaped-package" />
508                  <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=yes</xsl:text>
509                </xsl:attribute>
510                <xsl:value-of select="$other/bugs/@fixed_m"/>
511              </xsl:element>)
512            </xsl:if>
513          </dd>
514          <xsl:if test="$other/bugs/@gift &gt; 0">
515            <dt id="bugs_gift">
516              <span class="indented">
517                <a href="http://wiki.debian.org/qa.debian.org/GiftTag">gift</a>
518              </span>
519            </dt>
520            <dd>
521            <xsl:element name="a">            <xsl:element name="a">
522              <xsl:attribute name="href">              <xsl:attribute name="href">
523                <xsl:text>http://packages.debian.org/changelogs/</xsl:text>                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
524                <xsl:value-of select="directory"/>                <xsl:value-of select="$escaped-package" />
525                <xsl:text>/current/copyright</xsl:text>              <xsl:text>&amp;users=debian-qa@lists.debian.org;tag=gift</xsl:text>
526              </xsl:attribute>              </xsl:attribute>
527              <xsl:text>Copyright</xsl:text>              <span class="bugcount" title="gift">
528                  <xsl:value-of select="$other/bugs/@gift" />
529                </span>
530            </xsl:element>            </xsl:element>
531          </li>          </dd>
532          <xsl:if test="architecture!='all'">        </xsl:if>
533            <li>      </dl>
534      </div>
535    </xsl:template>
536    
537    <xsl:template name="pts-subscription">
538      <!-- <acronym title="Package Tracking System">PTS</acronym> subscription -->
539      <!-- <tr class="normalrow"> -->
540      <!--   <td class="labelcell">Subscribers count</td> -->
541      <!--   <td class="contentcell"><xsl:if test="$hasother"> -->
542      <!--  <xsl:value-of select="$other/pts/@count"/> -->
543      <!--   </xsl:if></td> -->
544      <!-- </tr> -->
545      <form method="post" action="/cgi-bin/pts.cgi">
546        <p>
547          <input type="hidden" name="package" value="{$package}"/>
548          subscribe to this package<br />
549          <input type="text" name="email" size="10" value="email"
550                 onfocus="if(email.value=='your email'){{email.value=''}}"/>
551          <select name="what">
552            <option value="subscribe">sub</option>
553            <option value="unsubscribe">unsub</option>
554            <option value="advanced">opts</option>
555          </select>
556          <input type="submit" name="submit" value="go"/>
557        </p>
558      </form>
559    </xsl:template>
560    
561    <xsl:template name="binary-packages">
562      <div class="block binaries">
563        <a name="binaries" />
564        <h2>binaries</h2>
565        <ul>
566          <xsl:for-each select="binary/item">
567            <xsl:sort select="text()"/>
568            <xsl:variable name="pkg" select="text()"/>
569            <xsl:variable name="tooltip"
570                          select="concat($pkg, ': ',
571                                  $other/descriptions/shortdesc[@package=$pkg])" />
572            <li class="binpkg">
573              <a class="binpkg" title="{$tooltip}"
574                 href="http://packages.debian.org/{text()}">
575                <span class="binpkg"><xsl:value-of select="text()"/></span>
576              </a>
577              <span style="font-size: 70%">
578                (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:
579              <xsl:element name="a">              <xsl:element name="a">
580                  <xsl:attribute name="title">critical, grave and serious</xsl:attribute>
581                <xsl:attribute name="href">                <xsl:attribute name="href">
582                  <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>
583                  <xsl:call-template name="escape-name">                  <xsl:call-template name="escape-name">
584                    <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>
585                  </xsl:call-template>                  </xsl:call-template>
586                    <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>
587                </xsl:attribute>                </xsl:attribute>
588                <xsl:text>Buildd logs</xsl:text>                <xsl:value-of select="$other/bugs/item[@name=$pkg]/@rc"/>
589              </xsl:element>              </xsl:element>,
             <xsl:text> (</xsl:text>  
590              <xsl:element name="a">              <xsl:element name="a">
591                  <xsl:attribute name="title">important and normal</xsl:attribute>
592                <xsl:attribute name="href">                <xsl:attribute name="href">
593                  <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>
594                  <xsl:call-template name="escape-name">                  <xsl:call-template name="escape-name">
595                    <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>
596                  </xsl:call-template>                  </xsl:call-template>
597                    <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>
598                </xsl:attribute>                </xsl:attribute>
599                <xsl:text>more</xsl:text>                <xsl:value-of select="$other/bugs/item[@name=$pkg]/@normal"/>
600              </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>  
601              <xsl:element name="a">              <xsl:element name="a">
602                  <xsl:attribute name="title">wishlist and minor</xsl:attribute>
603                <xsl:attribute name="href">                <xsl:attribute name="href">
604                  <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>
605                  <xsl:call-template name="escape-name">                  <xsl:call-template name="escape-name">
606                    <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>
607                  </xsl:call-template>                  </xsl:call-template>
608                    <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>
609                </xsl:attribute>                </xsl:attribute>
610                Debconf templates's translations (DDTP)                <xsl:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/>
611              </xsl:element>              </xsl:element>,
612            </li>              <xsl:element name="a">
613          </xsl:if>                <xsl:attribute name="title">pending and fixed</xsl:attribute>
614          -->                <xsl:attribute name="href">
615          <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>
616            or ($hastesting and $other/debcheck/@testing='yes')                  <xsl:call-template name="escape-name">
617            or ($hasstable and $other/debcheck/@stable='yes')">                    <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
618            <li>                  </xsl:call-template>
619              Debcheck on:                  <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
620              <xsl:if test="$hasunstable">                </xsl:attribute>
621                <xsl:text> </xsl:text>                <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>
622                <xsl:element name="a">              </xsl:element>)
623                  <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>  
624          </li>          </li>
625        </ul>        </xsl:for-each>
626      </td>      </ul>
627    </tr>    </div>
628  </xsl:template>  </xsl:template>
629    
630  <xsl:template name="package-files">  <xsl:template name="output-version">
631    <tr class="titlerow">    <xsl:param name="suite" select="''" />
632      <td class="titlecell" colspan="2">    <xsl:param name="link" select="'yes'" />
633        Package files    <xsl:variable name="version">
634    </td></tr>      <span class="srcversion" title="{$suite}">
635    <tr class="titlerow">        <xsl:value-of select="document(concat('../base/', $dir, '/', $suite,
636      <td class="labelcell">                              '.xml'))/source/version"/>
637        </span>
638      </xsl:variable>
639      <xsl:choose>
640        <xsl:when test="$link='yes'">
641        <xsl:element name="a">        <xsl:element name="a">
642          <xsl:attribute name="href">          <xsl:attribute name="class">dsc</xsl:attribute>
643            <xsl:call-template name="mirror"/>          <xsl:attribute name="href">
644            <xsl:text>/</xsl:text>            <xsl:choose>
645            <xsl:value-of select="directory"/>              <xsl:when test="starts-with($suite, 'security-')">
646            <xsl:text>/</xsl:text>                <xsl:value-of select="$security-mirror"/>
647                  <xsl:text>/</xsl:text>
648                  <xsl:value-of
649                     select="document(concat('../base/', $dir, '/',
650                             $suite, '.xml'))/source/directory" />
651                </xsl:when>
652                <xsl:when test="str:replace($suite, '-backports', '') != $suite">
653                  <xsl:value-of select="$backports-mirror"/>
654                  <xsl:text>/</xsl:text>
655                  <xsl:value-of
656                     select="document(concat('../base/', $dir, '/',
657                             $suite, '.xml'))/source/directory" />
658                </xsl:when>
659                <xsl:otherwise>
660                  <xsl:value-of select="$mirror"/>
661                  <xsl:text>/</xsl:text>
662                  <xsl:value-of select="$pooldir"/>
663                </xsl:otherwise>
664              </xsl:choose>
665              <xsl:text>/</xsl:text>
666              <xsl:value-of select="document(concat('../base/', $dir, '/',
667                                    $suite, '.xml'))/source/files/item[1]/filename"/>
668          </xsl:attribute>          </xsl:attribute>
669          <xsl:text>Source files</xsl:text>          <xsl:attribute name="title">.dsc, use dget on this link to retrieve source package</xsl:attribute>
670            <img src="../common/save.png" alt="save" />
671        </xsl:element>        </xsl:element>
672      </td>        <xsl:choose>
673      <td class="contentcell" id="src_files">          <xsl:when test="starts-with($suite, 'security-')">
674              <xsl:element name="a">
675                <xsl:attribute name="href">
676                  <xsl:text>http://packages.debian.org/source/</xsl:text>
677                  <xsl:value-of select="str:replace($suite, 'security-', '')" />
678                  <xsl:text>/</xsl:text>
679                  <xsl:copy-of select="$package" />
680                </xsl:attribute>
681                <xsl:copy-of select="$version" />
682              </xsl:element>
683            </xsl:when>
684            <xsl:when test="str:replace($suite, '-backports', '') != $suite">
685              <xsl:copy-of select="$version" />
686            </xsl:when>
687            <xsl:when test="str:replace($suite, '-updates', '') != $suite">
688              <xsl:copy-of select="$version" />
689            </xsl:when>
690            <xsl:otherwise>
691              <a href="http://packages.debian.org/source/{$suite}/{$package}">
692                <xsl:copy-of select="$version" />
693              </a>
694            </xsl:otherwise>
695          </xsl:choose>
696        </xsl:when>
697        <xsl:otherwise>
698          <xsl:copy-of select="$version" />
699        </xsl:otherwise>
700      </xsl:choose>
701    </xsl:template>
702    
703    <xsl:template name="more-info-marker">
704      <xsl:param name="href" />
705      <xsl:param name="title">more information are available on an external web page</xsl:param>
706      <a href="{$href}">
707        <img src="../common/external.png" title="{$title}" alt="..." />
708      </a>
709    </xsl:template>
710    
711    <xsl:template name="available-versions">
712      <div class="block versions">
713        <a name="versions" />
714        <h2>versions
715          <xsl:call-template name="more-info-marker">
716            <xsl:with-param name="href">
717              <xsl:text>http://qa.debian.org/madison.php?package=</xsl:text>
718              <xsl:value-of select="$package" />
719            </xsl:with-param>
720            <xsl:with-param name="title">more versions can be listed by madison</xsl:with-param>
721          </xsl:call-template>
722          <xsl:text> </xsl:text>
723          <xsl:call-template name="more-info-marker">
724            <xsl:with-param name="href">http://snapshot.debian.org/package/<xsl:value-of select="package" />/</xsl:with-param>
725            <xsl:with-param name="title">old versions available from snapshot.debian.org</xsl:with-param>
726          </xsl:call-template>
727          <a class="dsc" href="{$mirror}/{$pooldir}">
728            <img src="../common/folder.png" alt="pool" title="pool directory" />
729          </a>
730        </h2>
731    
732        <dl>
733          <xsl:if test="$hasoldstable">
734            <dt title="old stable release">oldstable</dt>
735            <dd>
736              <xsl:call-template name="output-version">
737                <xsl:with-param name="suite">oldstable</xsl:with-param>
738              </xsl:call-template>
739            </dd>
740          </xsl:if>
741          <xsl:if test="$hassecurity-oldstable">
742            <dt title="security updates for the old stable release">old-sec</dt>
743            <dd>
744              <xsl:call-template name="output-version">
745                <xsl:with-param name="suite">security-oldstable</xsl:with-param>
746              </xsl:call-template>
747            </dd>
748          </xsl:if>
749          <xsl:if test="$hasoldstable-updates">
750            <dt title="updates for the old stable release">old-upd</dt>
751            <dd>
752              <xsl:call-template name="output-version">
753                <xsl:with-param name="suite">oldstable-updates</xsl:with-param>
754              </xsl:call-template>
755            </dd>
756          </xsl:if>
757          <xsl:if test="$hasoldstable-backports">
758            <dt title="backports for the old stable release">old-bpo</dt>
759            <dd>
760              <xsl:call-template name="output-version">
761                <xsl:with-param name="suite">oldstable-backports</xsl:with-param>
762              </xsl:call-template>
763            </dd>
764          </xsl:if>
765          <xsl:if test="$hasstable">
766            <dt>stable</dt>
767            <dd>
768              <xsl:call-template name="output-version">
769                <xsl:with-param name="suite">stable</xsl:with-param>
770              </xsl:call-template>
771            </dd>
772          </xsl:if>
773          <xsl:if test="$hassecurity-stable">
774            <dt title="security updates for the stable release">stable-sec</dt>
775            <dd>
776              <xsl:call-template name="output-version">
777                <xsl:with-param name="suite">security-stable</xsl:with-param>
778              </xsl:call-template>
779            </dd>
780          </xsl:if>
781          <xsl:if test="$hasstable-updates">
782            <dt title="updates for the stable release">stable-upd</dt>
783            <dd>
784              <xsl:call-template name="output-version">
785                <xsl:with-param name="suite">stable-updates</xsl:with-param>
786              </xsl:call-template>
787            </dd>
788          </xsl:if>
789          <xsl:if test="$hasstable-proposed-updates">
790            <dt title="stable proposed updates">s-p-u</dt>
791            <dd>
792              <xsl:call-template name="output-version">
793                <xsl:with-param name="suite">stable-proposed-updates</xsl:with-param>
794              </xsl:call-template>
795            </dd>
796          </xsl:if>
797          <xsl:if test="$hasstable-backports">
798            <dt title="backports for the stable release">stable-bpo</dt>
799            <dd>
800              <xsl:call-template name="output-version">
801                <xsl:with-param name="suite">stable-backports</xsl:with-param>
802              </xsl:call-template>
803            </dd>
804          </xsl:if>
805          <xsl:if test="$hastesting">
806            <dt>testing</dt>
807            <dd>
808              <xsl:call-template name="output-version">
809                <xsl:with-param name="suite">testing</xsl:with-param>
810              </xsl:call-template>
811            </dd>
812          </xsl:if>
813          <xsl:if test="$hassecurity-testing">
814            <dt title="security updates for the testing release">testing-sec</dt>
815            <dd>
816              <xsl:call-template name="output-version">
817                <xsl:with-param name="suite">security-testing</xsl:with-param>
818              </xsl:call-template>
819            </dd>
820          </xsl:if>
821          <xsl:if test="$hastesting-proposed-updates">
822            <dt title="testing proposed updates">t-p-u</dt>
823            <dd>
824              <xsl:call-template name="output-version">
825                <xsl:with-param name="suite">testing-proposed-updates</xsl:with-param>
826              </xsl:call-template>
827            </dd>
828          </xsl:if>
829          <xsl:if test="$hasunstable">
830            <dt>unstable</dt>
831            <dd>
832              <xsl:call-template name="output-version">
833                <xsl:with-param name="suite">unstable</xsl:with-param>
834              </xsl:call-template>
835            </dd>
836          </xsl:if>
837          <xsl:if test="$hasexperimental">
838            <dt title="experimental release">exp</dt>
839            <dd>
840              <xsl:call-template name="output-version">
841                <xsl:with-param name="suite">experimental</xsl:with-param>
842              </xsl:call-template>
843            </dd>
844          </xsl:if>
845          <xsl:if test="$hasother and $other/@new_version">
846            <dt title="waiting in the NEW queue for FTP master review">
847              <a href="http://ftp-master.debian.org/new.html">NEW</a>
848            </dt>
849            <dd>
850              <xsl:value-of select="$other/@new_version" />
851            </dd>
852          </xsl:if>
853        </dl>
854      </div>
855    </xsl:template>
856    
857    <xsl:template name="ubuntu">
858      <xsl:if test="$other/@ubuntu='yes'">
859        <div class="block ubuntu">
860          <a name="ubuntu" />
861          <h2>ubuntu
862            <img src="../common/ubuntu.png" alt="ubuntu" />
863            <xsl:text> </xsl:text>
864            <xsl:call-template name="more-info-marker">
865              <xsl:with-param name="href">https://wiki.ubuntu.com/Ubuntu/ForDebianDevelopers</xsl:with-param>
866              <xsl:with-param name="title">Information about Ubuntu for Debian Developers</xsl:with-param>
867            </xsl:call-template>
868          </h2>
869        <ul>        <ul>
870          <xsl:for-each select="files/item">          <li>
871            <xsl:variable name="filetype">            version: <a href="{$other/ubuntu/@url}"><xsl:value-of select="$other/ubuntu/@version"/></a>
872              <xsl:call-template name="categorize-srcfile" />          </li>
873            </xsl:variable>          <xsl:if test="$other/ubuntu/patch">
874            <xsl:element name="li">            <li>
875              <xsl:attribute name="class">srcfile</xsl:attribute>              <a href="{$other/ubuntu/patch/@url}">patches for
876              <xsl:if test="string($filetype)!=''">              <xsl:value-of select="$other/ubuntu/patch/@version"/></a>
877                <xsl:attribute name="id">            </li>
878                  <xsl:text>srcfile_</xsl:text>          </xsl:if>
879                  <xsl:value-of select="$filetype" />          <xsl:if test="$other/ubuntu/bugs">
880                </xsl:attribute>            <li>
881                <a href="{$other/ubuntu/bugs/@url}"><xsl:value-of select="$other/ubuntu/bugs/@count"/>
882                bugs</a>
883                <xsl:if test="$other/ubuntu/bugpatches">
884                  (<a href="{$other/ubuntu/bugpatches/@url}"><xsl:value-of select="$other/ubuntu/bugpatches/@count"/>
885                  patches</a>)
886              </xsl:if>              </xsl:if>
887              <xsl:element name="a">            </li>
888                <xsl:attribute name="class">srcfile</xsl:attribute>          </xsl:if>
               <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>  
889        </ul>        </ul>
890      </td>      </div>
891    </tr>    </xsl:if>
892  </xsl:template>  </xsl:template>
893    
894  <xsl:template name="todo-list">  <xsl:template name="output-patch-tracker-version">
895    <xsl:variable name="todo">    <xsl:param name="suite" select="''" />
896      <xsl:if test="@nmu">    <xsl:param name="link" select="'yes'" />
897        <li>Incorporate and acknowledge the changes from the non maintainer upload.</li>    <xsl:variable name="version">
898      </xsl:if>      <span class="srcversion" title="{$suite}">
899      <xsl:if test="not(uploaders)and(priority='standard' or priority='required' or priority='important')">        <xsl:value-of select="document(concat('../base/', $dir, '/', $suite,
900        <li>The package is of priority standard or higher, you should really find some co-maintainers.</li>                              '.xml'))/source/version"/>
901      </xsl:if>      </span>
902      <xsl:if test="not(starts-with(standards-version, $lastsv))">    </xsl:variable>
903        <li>The package should be updated to follow the last version of    <xsl:choose>
904          <a href="http://www.debian.org/doc/debian-policy/">Debian Policy</a> (Standards-Version      <xsl:when test="$link='yes'">
905          <xsl:value-of select="$lastsv"/> instead of        <a href="http://patch-tracker.debian.org/package/{$package}/{$version}">
906          <xsl:value-of select="standards-version"/>).</li>          <xsl:copy-of select="$version" />
907      </xsl:if>        </a>
908      <xsl:if test="$hasother">      </xsl:when>
909        <xsl:for-each select="$other/todo/item">      <xsl:otherwise>
910          <xsl:call-template name="outputitem"/>        <xsl:copy-of select="$version" />
911        </xsl:for-each>      </xsl:otherwise>
912        <!-- new upstream version goes in todo [FG] -->    </xsl:choose>
913        <xsl:if test="$other/@watch='yes' and $other/watch/@new!='0'">  </xsl:template>
914          <li>A new upstream version was found:  
915            (<xsl:value-of select="$other/watch/@new"/>). <a href="{$other/watch/@url}"><xsl:value-of select="$other/watch/@url"/></a></li>  <xsl:template name="patch-tracker">
916      <div class="block patch-tracker">
917        <a name="patch-tracker" />
918        <h2>patch-tracker
919            <xsl:call-template name="more-info-marker">
920              <xsl:with-param name="href">http://patch-tracker.debian.org/package/<xsl:value-of select="package" /></xsl:with-param>
921              <xsl:with-param name="title">Link to patch tracker</xsl:with-param>
922            </xsl:call-template></h2>
923    
924        <dl>
925          <xsl:if test="$hasoldstable">
926            <dt title="old stable release">oldstable</dt>
927            <dd>
928              <xsl:call-template name="output-patch-tracker-version">
929                <xsl:with-param name="suite">oldstable</xsl:with-param>
930              </xsl:call-template>
931            </dd>
932        </xsl:if>        </xsl:if>
933        <xsl:if test="$other/bugs/@patch!='0'">        <xsl:if test="$hasstable">
934          <li>The Bug Tracking System contains          <dt>stable</dt>
935            <xsl:element name="a">          <dd>
936              <xsl:attribute name="href">            <xsl:call-template name="output-patch-tracker-version">
937                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>              <xsl:with-param name="suite">stable</xsl:with-param>
938                <xsl:call-template name="escape-name">            </xsl:call-template>
939                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>          </dd>
               </xsl:call-template>  
               <xsl:text>&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done</xsl:text>  
             </xsl:attribute>  
             <xsl:value-of select="$other/bugs/@patch"/> patch<xsl:if test="$other/bugs/@patch!='1'">es</xsl:if>  
           </xsl:element>, you should include  
           <xsl:if test="$other/bugs/@patch!='1'">them</xsl:if>  
           <xsl:if test="$other/bugs/@patch='1'">it</xsl:if>.  
         </li>  
940        </xsl:if>        </xsl:if>
941      </xsl:if>        <xsl:if test="$hastesting">
942    </xsl:variable>          <dt>testing</dt>
943    <xsl:if test="count($todo)>0 and string($todo)!=''">          <dd>
944      <tr class="titlerow">            <xsl:call-template name="output-patch-tracker-version">
945        <td class="titlecell" id="todo">              <xsl:with-param name="suite">testing</xsl:with-param>
946          Todo            </xsl:call-template>
947      </td></tr>          </dd>
948      <tr class="normalrow">        </xsl:if>
949        <td class="contentcell2">        <xsl:if test="$hasunstable">
950          <ul>          <dt>unstable</dt>
951            <xsl:copy-of select="$todo"/>          <dd>
952          </ul>            <xsl:call-template name="output-patch-tracker-version">
953        </td>              <xsl:with-param name="suite">unstable</xsl:with-param>
954      </tr>            </xsl:call-template>
955    </xsl:if>          </dd>
956          </xsl:if>
957          <xsl:if test="$hasexperimental">
958            <dt title="experimental release">exp</dt>
959            <dd>
960              <xsl:call-template name="output-patch-tracker-version">
961                <xsl:with-param name="suite">experimental</xsl:with-param>
962              </xsl:call-template>
963            </dd>
964          </xsl:if>
965        </dl>
966      </div>
967  </xsl:template>  </xsl:template>
968    
969  <xsl:template name="problems">  <xsl:template name="other-links">
970    <xsl:variable name="problems">    <div class="block links">
971      <xsl:if test="$hasexcuse and document(concat('../base/', $dir, '/excuse.xml'))/excuse/@problematic">      <a name="links" />
972        <li>The package has not yet entered <a      <h2>links</h2>
973            href="http://ftp-master.debian.org/testing/update_excuses.html.gz#{$package}">testing</a>      <ul>
974          even though the <xsl:value-of select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/@limit"/>-day        <xsl:if test="homepage">
975          delay is over.          <li><a title="upstream web homepage" href="{homepage}">homepage</a></li>
976          </xsl:if>
977          <li>
978          <xsl:element name="a">          <xsl:element name="a">
979            <xsl:attribute name="href">            <xsl:attribute name="href">
980              <xsl:text>http://bjorn.haxx.se/debian/testing.pl?package=</xsl:text>              <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
981              <xsl:call-template name="escape-name">              <xsl:value-of select="directory"/>
982                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>              <xsl:text>/current/changelog</xsl:text>
             </xsl:call-template>  
983            </xsl:attribute>            </xsl:attribute>
984            Check why            <xsl:text>changelog</xsl:text>
985          </xsl:element>          </xsl:element>
986          .</li>          /
987      </xsl:if>          <xsl:element name="a">
988      <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">            <xsl:attribute name="href">
989        <li>The package is severly out of date with respect to the Debian              <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
990          Policy. Latest version is <xsl:value-of select="$lastsv"/>              <xsl:value-of select="directory"/>
991          and your package only follows              <xsl:text>/current/copyright</xsl:text>
992          <xsl:value-of select="standards-version"/>...</li>            </xsl:attribute>
993      </xsl:if>            <xsl:text>copyright</xsl:text>
994      <xsl:if test="@release!='unstable' and @release!='experimental'">          </xsl:element>
995        <li>This package is neither part of unstable nor experimental. This        </li>
996          probably means that the package <a        <xsl:if test="architecture!='all'">
997            href="http://ftp-master.debian.org/removals.txt">has been removed</a> (or          <li>
998          has been renamed). Thus the information here is of little interest ...            <xsl:text>buildd: </xsl:text>
999          the package is going to disappear unless someone takes it over and            <a href="https://buildd.debian.org/status/package.php?p={$escaped-package}"
1000          reintroduces it into unstable.</li>               title="buildd.debian.org build logs">logs</a>
1001      </xsl:if>            <xsl:text>, </xsl:text>
1002      <xsl:if test="$hasother">                 <xsl:if test="$hasexperimental">
1003                     <a href="https://buildd.debian.org/status/package.php?p={$escaped-package}&amp;suite=experimental"
1004        <!-- Override disparity handling. [JvW] -->                      title="experimental build logs">exp</a>
1005        <xsl:if test="$other/@override='yes'">                   <xsl:text>, </xsl:text>
1006          <xsl:for-each select="$other/override/group">                 </xsl:if>
1007            <li>There were override disparities found in suite <xsl:value-of                 <a href="http://buildd.debian-ports.org/status/package.php?p={$escaped-package}"
1008                select="@suite"/>:                    title="build logs for unofficial ports">ports</a>
1009              <ul>          </li>
               <xsl:for-each select="disparity">  
                 <li><xsl:value-of select="text()"/></li>  
               </xsl:for-each>  
             </ul>  
           </li>  
         </xsl:for-each>  
1010        </xsl:if>        </xsl:if>
1011          <xsl:if test="$other/@logcheck='yes'">
1012        <!-- Wnpp handling. [PvR] -->          <xsl:variable name="logcheck_url"><xsl:call-template name="mk_logcheck_url" /></xsl:variable>
       <xsl:if test="$other/@wnpp='yes'">  
1013          <li>          <li>
1014            <xsl:choose>            <a title="report about issues spotted in buildd logs"
1015              <xsl:when test="$other/wnpp/@type='O'">               href="{$logcheck_url}">build log checks</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.  
1016          </li>          </li>
1017        </xsl:if>        </xsl:if>
1018          <xsl:if test="$hasother and $other/@piuparts='yes'">
1019        <!-- uscan output if present [FG] -->          <li>
1020        <xsl:if test="$other/@watch='yes'">            <a title="report about errors found while stressing package installation"
1021                 href="http://piuparts.debian.org/sid/source/{$hash}/{$package}.html">piuparts</a>
1022            </li>
1023          </xsl:if>
1024          <xsl:if test="($hasunstable and $other/debcheck/@unstable='yes')
1025                        or ($hastesting and $other/debcheck/@testing='yes')
1026                        or ($hasstable and $other/debcheck/@stable='yes')">
1027          <li>          <li>
1028            <xsl:if test="$other/watch/@warning!=''">            debcheck:
1029              uscan had problems while searching for a new upstream version: <xsl:value-of select="$other/watch/@warning"/>            <xsl:if test="$hasunstable">
1030                <xsl:text> </xsl:text>
1031                <a href="http://qa.debian.org/debcheck.php?dist=unstable&amp;package={$escaped-package}">unstable</a>
1032              </xsl:if>
1033              <xsl:if test="$hastesting">
1034                <xsl:text> </xsl:text>
1035                <a href="http://qa.debian.org/debcheck.php?dist=testing&amp;package={$escaped-package}">testing</a>
1036            </xsl:if>            </xsl:if>
1037              <xsl:if test="$hasstable">
1038                <xsl:text> </xsl:text>
1039                <a href="http://qa.debian.org/debcheck.php?dist=stable&amp;package={$escaped-package}">stable</a>
1040              </xsl:if>
1041            </li>
1042          </xsl:if>
1043          <xsl:if test="$other/@lintian='yes'">
1044            <xsl:variable name="lintian_url"><xsl:call-template name="mk_lintian_url" /></xsl:variable>
1045            <li>
1046              <a title="report about packaging issues spotted by lintian"
1047                 href="{$lintian_url}">lintian</a>
1048              <xsl:if test="$lin_errs + $lin_warns > 0">
1049                <xsl:text> </xsl:text>
1050                <small>
1051                  (<span id="lintian_errors" title="errors"><xsl:value-of select="$lin_errs" /></span>,
1052                  <span id="lintian_warnings" title="warnings"><xsl:value-of select="$lin_warns" /></span>)
1053                </small>
1054              </xsl:if>
1055            </li>
1056          </xsl:if>
1057          <li>
1058            <a title="package popularity"
1059               href="http://qa.debian.org/popcon.php?package={$escaped-package}">popcon</a>
1060          </li>
1061          <xsl:if test="$other/@svnbuildstat='yes'">
1062            <li>
1063              <a href="http://svnbuildstat.debian.net/packages/info/{$escaped-package}">Svnbuildstat</a>
1064            </li>
1065          </xsl:if>
1066          <xsl:if test="$other/i18n/@href">
1067            <li>
1068              <a title="translation status"
1069                 href="{$other/i18n/@href}">l10n</a>
1070              <small>
1071                (<span title="completeness of Debian string translation">
1072                  <xsl:value-of select="$other/i18n/@deb" />
1073                </span>,
1074                <span title="completeness of non-Debian string translation">
1075                  <xsl:value-of select="$other/i18n/@nondeb" />
1076                </span>)
1077              </small>
1078          </li>          </li>
1079        </xsl:if>        </xsl:if>
1080          <xsl:if test="$other/@fonts='yes'">
1081            <li>
1082              <a title="fonts review" href="{$other/fonts/@href}">fonts</a>
1083            </li>
1084          </xsl:if>
1085          <li>
1086            <xsl:variable name="escaped-email">
1087              <xsl:call-template name="escape-name">
1088                <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>
1089              </xsl:call-template>
1090            </xsl:variable>
1091            <a title="edit all debtags" href="http://debtags.debian.net/rep/todo/maint/{$escaped-email}#{$escaped-package}">debtags</a>
1092          </li>
1093        </ul>
1094      </div>
1095    </xsl:template>
1096    
1097    <xsl:template name="todo-list">
1098      <xsl:variable name="todo">
1099        <xsl:call-template name="issue-security" />
1100        <xsl:call-template name="issue-nmu" />
1101        <xsl:call-template name="issue-lintian" />
1102        <xsl:call-template name="issue-logcheck" />
1103        <xsl:call-template name="issue-mentors-pending" />
1104        <xsl:call-template name="issue-comaintenance" />
1105        <xsl:call-template name="issue-outdate-stdver" />
1106        <xsl:call-template name="issue-new-upstream" />
1107        <xsl:call-template name="issue-patches" />
1108        <xsl:call-template name="issue-l10n" />
1109        <xsl:call-template name="issue-release-goals" />
1110        <xsl:if test="$hasother">
1111          <xsl:for-each select="$other/todo/item">
1112            <xsl:call-template name="outputitem" />
1113          </xsl:for-each>
1114        </xsl:if>
1115      </xsl:variable>
1116    
1117      <xsl:if test="count($todo)>0 and string($todo)!=''">
1118        <div class="block todo">
1119          <a name="todo" />
1120          <h2>todo</h2>
1121          <ul>
1122            <xsl:copy-of select="$todo" />
1123          </ul>
1124        </div>
1125      </xsl:if>
1126    </xsl:template>
1127    
1128        <!-- Misc problems reported -->  <xsl:template name="problems">
1129      <xsl:variable name="problems">
1130        <xsl:call-template name="issue-testing-excuses" />
1131        <xsl:call-template name="issue-piuparts" />
1132        <xsl:call-template name="issue-ancient-stdver" />
1133        <xsl:call-template name="issue-item-dead-package" />
1134        <xsl:call-template name="issue-item-override-disparity" />
1135        <xsl:call-template name="issue-item-help-bugs" />
1136        <xsl:call-template name="issue-item-wnpp" />
1137        <!-- <xsl:call-template name="issue-item-watch-failure" /> -->
1138        <xsl:call-template name="issue-item-dehs-failure" />
1139        <xsl:if test="$hasother">
1140        <xsl:for-each select="$other/problems/item">        <xsl:for-each select="$other/problems/item">
1141          <xsl:call-template name="outputitem"/>          <xsl:call-template name="outputitem"/>
1142        </xsl:for-each>        </xsl:for-each>
1143      </xsl:if>      </xsl:if>
1144    </xsl:variable>    </xsl:variable>
1145    
1146    <xsl:if test="count($problems)>0 and string($problems)!=''">    <xsl:if test="count($problems)>0 and string($problems)!=''">
1147      <tr class="titlerow">      <div class="block problems">
1148        <td class="titlecell" id="problems">        <a name="problems" />
1149          Problems        <h2>problems</h2>
1150      </td></tr>        <ul>
1151      <tr class="normalrow">          <xsl:copy-of select="$problems" />
1152        <td class="contentcell2">        </ul>
1153          <ul><xsl:copy-of select="$problems"/></ul>      </div>
       </td>  
     </tr>  
1154    </xsl:if>    </xsl:if>
1155  </xsl:template>  </xsl:template>
1156    
1157  <xsl:template name="testing-status">  <xsl:template name="testing-status">
1158    <xsl:if test="$hasexcuse">    <xsl:if test="$hasexcuse or $other/@transitions='yes'">
1159      <tr class="titlerow">      <div class="block testing">
1160        <td class="titlecell">        <a name="testing" />
1161          Testing Status        <h2>testing migration</h2>
1162      </td></tr>        <xsl:if test="$other/@transitions='yes'">
1163      <tr class="normalrow">          <div class="warning">
1164        <td class="contentcell2" style="text-align: left">            <ul>
1165          <ul>              <xsl:for-each select="$other/transitions/transition">
1166                  <li>
1167                  <xsl:choose>
1168                    <xsl:when test="@status='planned'">
1169                      This package will soon be part of the <a href="http://release.debian.org/transitions/html/{@name}.html"><xsl:value-of select="@name" /></a> transition. You might want to ensure that your package is ready for it.
1170                    </xsl:when>
1171                    <xsl:when test="@status='ongoing'">
1172                      This package is part of the ongoing testing transition known as <a href="http://release.debian.org/transitions/html/{@name}.html"><xsl:value-of select="@name" /></a>.
1173                      <xsl:if test="@reject!='yes'">
1174                      Please avoid uploads unrelated to this transition, they would
1175                      likely delay it and require supplementary work from the release
1176                      managers. On the other hand, if your package has problems
1177                      preventing it to migrate to testing, please fix them
1178                      as soon as possible.
1179                      </xsl:if>
1180                    </xsl:when>
1181                    <xsl:otherwise>
1182                    </xsl:otherwise>
1183                  </xsl:choose>
1184                  You can probably find supplementary information in the
1185                  <a href="http://lists.debian.org/debian-release/">debian-release
1186                  archives</a> or in the corresponding
1187                  <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?users=release.debian.org@packages.debian.org;tag=transition">release.debian.org
1188                  bug</a>.
1189                  <xsl:if test="@reject='yes'">
1190                    <strong>Uploads to unstable will be rejected</strong> while
1191                    the transition is ongoing; you might want to upload to
1192                    experimental in the meantime, or
1193                    contact <tt><a href="mailto:debian-release@lists.debian.org">debian-release</a></tt>
1194                    if an upload is really necessary.
1195    
1196                  </xsl:if>
1197                  </li>
1198                </xsl:for-each>
1199              </ul>
1200            </div>
1201          </xsl:if>
1202          <xsl:if test="$hasexcuse">
1203            <a title="reasons why the package is not moving to testing"
1204               href="http://qa.debian.org/excuses.php?package={$escaped-package}">excuses</a>:
1205            <ul class="testing-excuses">
1206            <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">            <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
1207              <xsl:call-template name="outputitem"/>              <xsl:call-template name="outputitem"/>
1208            </xsl:for-each>            </xsl:for-each>
1209          </ul>          </ul>
1210        </td>        </xsl:if>
1211      </tr>      </div>
1212    </xsl:if>    </xsl:if>
1213  </xsl:template>  </xsl:template>
1214    
# Line 1129  other-to-%xx, especially % to %25... For Line 1244  other-to-%xx, especially % to %25... For
1244  <xsl:template match="source">  <xsl:template match="source">
1245    
1246    <!-- 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>  
1247    <html>    <html>
1248    <head>      <head>
1249    <meta name="ROBOTS" content="NOFOLLOW"/>        <meta name="ROBOTS" content="NOFOLLOW"/>
1250    <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"/>
1251    <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"/>
1252    <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"/>
1253    <xsl:if test="count($news)>0 and string($news)!=''">        <link type="text/css" title="Compact rendering" rel="alternate stylesheet" href="../common/compact.css"/>
1254      <link rel="alternate" type="application/rss+xml" title="RSS"        <script type="text/javascript" src="../common/pts.js"></script>
1255        href="{$package}/news.rss20.xml" />        <xsl:if test="count($news)>0 and string($news)!=''">
1256    </xsl:if>          <link rel="alternate" type="application/rss+xml" title="RSS"
1257    <title>Overview of <xsl:value-of select="$package"/> source package</title>                href="{$package}/news.rss20.xml" />
1258    </head>        </xsl:if>
1259    <body>        <title>Debian Package Tracking System -
1260            <xsl:value-of select="$package"/></title>
1261    <form method="get" action="/common/index.html" style="float: right;">      </head>
1262    <!-- this link should make lynx/links happy [FG] -->      <body onload="javascript:onLoad();">
1263    <p>Jump to package (<a href="/">home page</a>): <br/>        <div class="quickform" style="float: right;">
1264    <input type="text" name="src" value=""/></p>          <form title="jump to the PTS page of another source package"
1265    </form>                method="get" action="/common/index.html">
1266    <h1>Overview of            <p>
1267    <xsl:element name="a">              <input type="text" size="14" name="src" value=""/>
1268      <xsl:attribute name="href">              <input type="submit" value="jump to" />
1269        <xsl:text>http://packages.debian.org/src:</xsl:text>            </p>
1270         <xsl:value-of select="$package"/>          </form>
1271      </xsl:attribute>        </div>
1272     <xsl:value-of select="$package"/>  
1273    </xsl:element>        <h1>
1274    source package</h1>          <xsl:value-of select="$package"/><br />
1275            <small>source package</small>
1276    <div id="body">        </h1>
1277    <xsl:choose>  
1278    <xsl:when test="$removed='yes'">        <div id="body">
1279    <!-- REMOVED PACKAGE -->          <xsl:choose>
1280    <p>This package is not part of any Debian distribution. Thus you won't            <xsl:when test="$removed='yes'">
1281    find much information here. The package is either very new and hasn't              <div class="block removed">
1282    appeared on mirrors yet, or it's an old package that eventually got removed.                <p>This package is not part of any Debian
1283    The old news are kept for historic purpose only.</p>                  distribution. Thus you won't find much information
1284                    here. The package is either very new and hasn't
1285    <table class="righttable">                  appeared on mirrors yet, or it's an old package that
1286      <xsl:call-template name="static-info" />                  eventually got removed.  The old news are kept for
1287      <xsl:call-template name="latest-news" />                  historic purpose only.</p>
1288    </table>                <xsl:call-template name="static-info" />
1289                  <xsl:call-template name="latest-news" />
1290    <!-- END REMOVED PACKAGE -->              </div>
1291    </xsl:when>            </xsl:when>
1292    <xsl:otherwise>            <xsl:otherwise>       <!-- non removed package -->
1293    <!-- NON REMOVED PACKAGE -->              <div class="left maincol">
1294                  <xsl:call-template name="general-information" />
1295    <table class="containertable">                <xsl:call-template name="available-versions" />
1296    <tr class="containerrow" valign="top">                <xsl:call-template name="binary-packages" />
1297    <td class="containercell">              </div>
1298    <!-- LEFT SIDE -->              <div class="center maincol">
1299    <table class="lefttable">                <xsl:call-template name="todo-list" />
1300      <xsl:call-template name="general-information" />                <xsl:call-template name="problems" />
1301      <xsl:call-template name="bugs-count" />                <xsl:call-template name="testing-status" />
1302      <xsl:call-template name="pts-subscription" />                <xsl:call-template name="static-info" />
1303      <xsl:call-template name="binary-packages" />                <xsl:call-template name="latest-news" />
1304      <xsl:call-template name="available-versions" />              </div>
1305      <xsl:call-template name="patches" />              <div class="right maincol">
1306      <xsl:call-template name="other-links" />                <xsl:call-template name="bugs-count" />
1307      <xsl:call-template name="package-files" />                <xsl:call-template name="other-links" />
1308    </table>                <xsl:call-template name="ubuntu" />
1309    <!-- END LEFT SIDE -->                <xsl:call-template name="patch-tracker" />
1310    </td><td class="containercell">              </div>
1311    <!-- RIGHT SIDE -->            </xsl:otherwise>
1312    <table class="righttable">          </xsl:choose>
1313      <xsl:call-template name="todo-list" />  
1314      <xsl:call-template name="problems" />          <hr/>
1315      <xsl:call-template name="testing-status" />          <div class="footer">
1316      <xsl:call-template name="static-info" />            <table width="100%">
1317      <xsl:call-template name="latest-news" />              <tr>
1318      <xsl:call-template name="latest-news" />                <td>
1319    </table>                <!--
1320    <!-- END RIGHT SIDE -->                  <div class="quickform">
1321    </td></tr>                    <form id="csspref-form" method="get"
1322    </table>                          action="/common/set-csspref.php">
1323                        <p>
1324    <!-- END NON REMOVED PACKAGE -->                        change skin:
1325    </xsl:otherwise>                        <select name="csspref" onchange="javascript:onChangeStyle();">
1326    </xsl:choose>                          <option value="revamp.css">default</option>
1327                            <option value="compact.css">compact</option>
1328    <hr/>                          <option value="pts.css">legacy</option>
1329    <div class="footer">                        </select>
1330      <p>                      </p>
1331        Debian Package Tracking System - Copyright 2002-2007 Raphaël Hertzog and                    </form>
1332        others<br/>                  </div>
1333        Report problems to the <a href="http://bugs.debian.org/qa.debian.org"                -->
1334          >qa.debian.org pseudopackage</a><br/>                  <div class="quickform">
1335        Last modified : <xsl:value-of select="$date"/>                    <xsl:call-template name="pts-subscription" />
1336      </p>                  </div>
1337    </div>                </td>
1338    </div>                <td>
1339    </body>                  <p>
1340                      <em><a href="http://www.debian.org">Debian</a>
1341                        Package Tracking System</em> - Copyright ©
1342                        2002-2009 Raphaël Hertzog, Stefano Zacchiroli and
1343                        others.<br/> Report problems to the
1344                      <a href="http://bugs.debian.org/qa.debian.org"><tt>qa.debian.org</tt>
1345                        pseudopackage</a> in the <a href="http://bugs.debian.org">Debian
1346                        <acronym title="Bug Tracking System">BTS</acronym></a>.<br/>
1347                        <a href="svn://svn.debian.org/svn/qa/trunk/pts">Checkout SVN repository</a> |
1348                        <a href="http://anonscm.debian.org/viewvc/qa/trunk/pts/">Browse SVN repository</a><br/>
1349                      Last modified: <xsl:value-of select="$date"/>.
1350                    </p>
1351                  </td>
1352                  <td>
1353                    <a href="http://validator.w3.org/check?uri=referer">
1354                      <img
1355                         src="http://www.w3.org/Icons/valid-xhtml10-blue"
1356                         alt="Valid XHTML 1.0 Strict" height="31" width="88" />
1357                    </a>
1358                  </td>
1359                </tr>
1360              </table>
1361            </div>
1362          </div>
1363        </body>
1364    </html>    </html>
1365  </xsl:template>  </xsl:template>
1366    

Legend:
Removed from v.1768  
changed lines
  Added in v.2713

  ViewVC Help
Powered by ViewVC 1.1.5