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

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

  ViewVC Help
Powered by ViewVC 1.1.5