/[qa]/trunk/pts/www/xsl/pts.xsl
ViewVC logotype

Diff of /trunk/pts/www/xsl/pts.xsl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1769 by zack, Sat Dec 1 09:44:27 2007 UTC revision 2230 by zack, Wed Jul 22 13:31:17 2009 UTC
# Line 1  Line 1 
1  <?xml version="1.0" encoding="utf-8" ?>  <?xml version="1.0" encoding="utf-8" ?>
2    
3  <!--  <!--
4  # Copyright 2002-2007 Raphaël Hertzog and others  # Copyright © 2002-2008 Raphaël Hertzog and others
5    # Copyright © 2007-2009 Stefano Zacchiroli
6  # This file is distributed under the terms of the General Public License  # This file is distributed under the terms of the General Public License
7  # version 2 or (at your option) any later version.  # version 2 or (at your option) any later version.
8  -->  -->
9    
10  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">  <xsl:stylesheet
11      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
12      xmlns="http://www.w3.org/1999/xhtml"
13      version="1.0">
14    
15    <xsl:output
16      method="xml"
17      encoding="UTF-8"
18      omit-xml-declaration="yes"
19      doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
20      doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
21      indent="yes" />
22    
23  <xsl:output encoding="UTF-8" method="html"/>  <xsl:include href="pts-issues.xsl" />
24    
25  <xsl:param name="package"/>  <xsl:param name="package"/>
26  <xsl:param name="dir"/>  <xsl:param name="dir"/>
# Line 18  Line 30 
30  <xsl:param name="hastesting" select="''"/>  <xsl:param name="hastesting" select="''"/>
31  <xsl:param name="hasunstable" select="''"/>  <xsl:param name="hasunstable" select="''"/>
32  <xsl:param name="hasexperimental" select="''"/>  <xsl:param name="hasexperimental" select="''"/>
33    <xsl:param name="hasmentors" select="''"/>
34  <xsl:param name="hasother" select="''"/>  <xsl:param name="hasother" select="''"/>
35  <xsl:param name="hass-p-u" select="''"/>  <xsl:param name="hasstable-proposed-updates" select="''"/>
36  <xsl:param name="hast-p-u" select="''"/>  <xsl:param name="hastesting-proposed-updates" select="''"/>
37  <xsl:param name="hasoldstable-security" select="''"/>  <xsl:param name="hassecurity-oldstable" select="''"/>
38  <xsl:param name="hasstable-security" select="''"/>  <xsl:param name="hassecurity-stable" select="''"/>
39  <xsl:param name="hastesting-security" select="''"/>  <xsl:param name="hassecurity-testing" select="''"/>
40  <xsl:param name="hassecure-testing" select="''"/>  <xsl:param name="hassecure-testing" select="''"/>
41  <xsl:param name="hasvolatile" select="''"/>  <xsl:param name="hasvolatile" select="''"/>
42  <xsl:param name="hasnews" select="''"/>  <xsl:param name="hasnews" select="''"/>
43  <xsl:param name="hasexcuse" select="''"/>  <xsl:param name="hasexcuse" select="''"/>
44    
45  <xsl:variable name="other" select="document(concat('../base/', $dir, '/other.xml'))/other"/>  <xsl:variable name="other"
46      select="document(concat('../base/', $dir, '/other.xml'))/other"/>
47    <xsl:variable name="low-nmu-emails"
48      select="document('../base/low_threshold_nmu.emails.xml')/emails"/>
49    
50  <!-- Those variables controls the todo and problem item concerning  <!-- Those variables controls the todo and problem item concerning
51       standards-version not being up to date -->       standards-version not being up to date -->
52  <xsl:variable name="lastsv" select="'3.7.2'"/>  <xsl:variable name="lastsv" select="'3.8.2'"/>
53  <xsl:variable name="lastmajorsv" select="'3.'"/>  <xsl:variable name="lastmajorsv" select="'3.'"/>
54    
55    <!-- lintian summary -->
56    <xsl:variable name="lin_errs" select="$other/lintian/@errors" />
57    <xsl:variable name="lin_warns" select="$other/lintian/@warnings" />
58    
59  <!-- Named templates aka functions -->  <!-- Named templates aka functions -->
60    
61    <xsl:template name="mk_lintian_url">
62      <!-- convert maintainer/name to follow lintian.debian.org convention -->
63      <xsl:variable name="lintian_pattern" select="concat('àáèéëêòöøîìùñ~/()&#34; ', &quot;'&quot;)"/>
64      <xsl:variable name="lintian_email" select="translate(maintainer/email, $lintian_pattern, '_____________________')"/>
65    
66      <xsl:text>http://lintian.debian.org/reports/maintainer/</xsl:text>
67      <xsl:value-of select="$lintian_email" />
68      <xsl:text>.html#</xsl:text>
69      <xsl:value-of select="$package" />
70    </xsl:template>
71    
72  <xsl:template name="mirror">  <xsl:template name="mirror">
73    <xsl:text>http://ftp.debian.org/debian</xsl:text>    <xsl:text>http://ftp.debian.org/debian</xsl:text>
74  </xsl:template>  </xsl:template>
# Line 54  Line 86 
86          <xsl:value-of select="@from"/>          <xsl:value-of select="@from"/>
87          <xsl:text>)</xsl:text></xsl:if></li>          <xsl:text>)</xsl:text></xsl:if></li>
88      </xsl:when>      </xsl:when>
89        <xsl:when test="@type='raw'">
90          <li>
91            <xsl:copy-of select="node()" />
92          </li>
93        </xsl:when>
94      <xsl:otherwise>      <xsl:otherwise>
95        <li><xsl:if test="@date">        <li><xsl:if test="@date">
96          <xsl:text>[</xsl:text>          <xsl:text>[</xsl:text>
# Line 80  other-to-%xx, especially % to %25... For Line 117  other-to-%xx, especially % to %25... For
117    </xsl:if>    </xsl:if>
118  </xsl:template>  </xsl:template>
119    
120    <xsl:variable name="escaped-package">
121      <xsl:call-template name="escape-name">
122        <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
123      </xsl:call-template>
124    </xsl:variable>
125    
126  <!-- Strip epoch -->  <!-- Strip epoch -->
127  <xsl:template name="strip-epoch">  <xsl:template name="strip-epoch">
128    <xsl:param name="version"/>    <xsl:param name="version"/>
# Line 95  other-to-%xx, especially % to %25... For Line 138  other-to-%xx, especially % to %25... For
138    <xsl:if test="repository">    <xsl:if test="repository">
139      <tr>      <tr>
140        <td class="labelcell">        <td class="labelcell">
141          <xsl:text>Version Control</xsl:text>          <acronym title="Version Control System">VCS</acronym>
142        </td>        </td>
143        <td class="contentcell">        <td class="contentcell">
         <xsl:if test="repository/vcs[@kind='browser']">  
           <a href="{repository/vcs[@kind='browser']/@url}">  
             <xsl:text>browser</xsl:text>  
           </a>  
           <br />  
         </xsl:if>  
144          <xsl:if test="repository/vcs[@kind!='browser']">          <xsl:if test="repository/vcs[@kind!='browser']">
           <xsl:text>raw: </xsl:text>  
145            <xsl:for-each select="repository/vcs[@kind!='browser']">            <xsl:for-each select="repository/vcs[@kind!='browser']">
146              <xsl:sort select="@kind" />              <xsl:sort select="@kind" />
147              <a href="{@url}">              <a title="access to the raw repository" href="{@url}">
148                <xsl:value-of select="@kind" />                <xsl:value-of select="@kind" />
149              </a>              </a>
150              <xsl:if test="position()!=last()">              <xsl:if test="position()!=last()">
# Line 116  other-to-%xx, especially % to %25... For Line 152  other-to-%xx, especially % to %25... For
152              </xsl:if>              </xsl:if>
153            </xsl:for-each>            </xsl:for-each>
154          </xsl:if>          </xsl:if>
155            <xsl:if test="repository/vcs[@kind='browser']">
156              <xsl:text> (</xsl:text>
157              <a title="web-based repository browsing"
158                href="{repository/vcs[@kind='browser']/@url}">browse</a>
159              <xsl:text>)</xsl:text>
160            </xsl:if>
161        </td>        </td>
162      </tr>      </tr>
163    </xsl:if>    </xsl:if>
164  </xsl:template>  </xsl:template>
165    
166  <xsl:template name="add-maintenance-info">  <xsl:template name="add-maintenance-info">
167      <xsl:param name="email" />
168    <xsl:variable name="dm">    <xsl:variable name="dm">
169      <xsl:if test="dm-upload-allowed and string(dm-upload-allowed)='yes'">      <xsl:if test="dm-upload-allowed and string(dm-upload-allowed)='yes'">
170        <xsl:text>true</xsl:text>        <xsl:text>true</xsl:text>
171      </xsl:if>      </xsl:if>
172    </xsl:variable>    </xsl:variable>
173    <xsl:variable name="lownmu">    <xsl:variable name="lownmu">
174      <xsl:if test="maintainer/low-threshold-nmu      <xsl:if test="$low-nmu-emails/email[text()=$email]">
         and string(maintainer/low-threshold-nmu)='yes'">  
175        <xsl:text>true</xsl:text>        <xsl:text>true</xsl:text>
176      </xsl:if>      </xsl:if>
177    </xsl:variable>    </xsl:variable>
# Line 137  other-to-%xx, especially % to %25... For Line 179  other-to-%xx, especially % to %25... For
179    <xsl:if test="string($dm)!='' or string($lownmu)!=''">    <xsl:if test="string($dm)!='' or string($lownmu)!=''">
180      <tr>      <tr>
181        <td class="labelcell">        <td class="labelcell">
182          <xsl:text>Maintenance info</xsl:text>          <xsl:text>Maintenance</xsl:text>
183        </td>        </td>
184        <td class="contentcell">        <td class="contentcell">
185    
# Line 145  other-to-%xx, especially % to %25... For Line 187  other-to-%xx, especially % to %25... For
187            <span class="dm-tag">            <span class="dm-tag">
188              <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>              <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>
189            </span>            </span>
190              <xsl:text> </xsl:text>
191          </xsl:if>          </xsl:if>
192    
193          <xsl:if test="string($lownmu)!=''">          <xsl:if test="string($lownmu)!=''">
# Line 152  other-to-%xx, especially % to %25... For Line 195  other-to-%xx, especially % to %25... For
195              <a href="http://wiki.debian.org/LowThresholdNmu"><acronym              <a href="http://wiki.debian.org/LowThresholdNmu"><acronym
196                  title="maintainer agrees with Low Threshold NMU, see wiki page for details">LowNMU</acronym></a>                  title="maintainer agrees with Low Threshold NMU, see wiki page for details">LowNMU</acronym></a>
197            </span>            </span>
198              <xsl:text> </xsl:text>
199          </xsl:if>          </xsl:if>
200        </td>        </td>
201      </tr>      </tr>
# Line 164  other-to-%xx, especially % to %25... For Line 208  other-to-%xx, especially % to %25... For
208    <xsl:if test="count($news)>0 and string($news)!=''">    <xsl:if test="count($news)>0 and string($news)!=''">
209      <tr class="titlerow">      <tr class="titlerow">
210      <td class="titlecell">      <td class="titlecell">
211        Latest News <a class="feedlink" href="{$package}/news.rss20.xml">RSS</a>        Latest news <a class="feedlink" href="{$package}/news.rss20.xml">RSS</a>
212      </td></tr>      </td></tr>
213      <tr class="normalrow">      <tr class="normalrow">
214      <td class="contentcell2">      <td class="contentcell2">
215      <ul><xsl:copy-of select="$news"/></ul>      <ul id="news-list"><xsl:copy-of select="$news"/></ul>
216      </td>      </td>
217      </tr>      </tr>
218    </xsl:if>    </xsl:if>
# Line 200  other-to-%xx, especially % to %25... For Line 244  other-to-%xx, especially % to %25... For
244      <xsl:when test="substring(filename,string-length(filename)-6, 7)='diff.gz'">      <xsl:when test="substring(filename,string-length(filename)-6, 7)='diff.gz'">
245        <xsl:text>diff</xsl:text>        <xsl:text>diff</xsl:text>
246      </xsl:when>      </xsl:when>
247      <xsl:when test="substring(filename,string-length(filename)-10, 8)='orig.tar'">      <xsl:when test="substring(filename,string-length(filename)-5, 3)='tar'">
248        <xsl:text>orig</xsl:text>        <xsl:text>orig</xsl:text>
249      </xsl:when>      </xsl:when>
250      <xsl:otherwise><xsl:text></xsl:text></xsl:otherwise>      <xsl:otherwise><xsl:text></xsl:text></xsl:otherwise>
# Line 216  other-to-%xx, especially % to %25... For Line 260  other-to-%xx, especially % to %25... For
260    
261  <xsl:template name="general-information">  <xsl:template name="general-information">
262    <tr class="titlerow">    <tr class="titlerow">
263      <td class="titlecell" colspan="2">      <td class="titlecell" colspan="2">General information</td>
       General information  
     </td>  
264    </tr>    </tr>
265    <tr class="normalrow">    <tr class="normalrow">
266      <td class="labelcell">Latest version</td>      <td class="labelcell">Latest version</td>
267      <td class="contentcell"><xsl:value-of select="version"/></td>      <td class="contentcell">
268          <span id="latest_version"><xsl:value-of select="version"/></span>
269        </td>
270    </tr>    </tr>
271    <xsl:if test="@release!='unstable'">    <xsl:if test="@release!='unstable'">
272      <tr class="normalrow">      <tr class="normalrow">
# Line 232  other-to-%xx, especially % to %25... For Line 276  other-to-%xx, especially % to %25... For
276    </xsl:if>    </xsl:if>
277    <tr class="normalrow">    <tr class="normalrow">
278      <td class="labelcell">Maintainer</td>      <td class="labelcell">Maintainer</td>
279      <td class="contentcell">      <td class="maintainer contentcell">
280        <xsl:element name="a">        <xsl:element name="a">
281          <xsl:attribute name="href">          <xsl:attribute name="href">
282            <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>            <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
# Line 240  other-to-%xx, especially % to %25... For Line 284  other-to-%xx, especially % to %25... For
284              <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>              <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>
285            </xsl:call-template>            </xsl:call-template>
286          </xsl:attribute>          </xsl:attribute>
287          <xsl:value-of select="maintainer/name"/>          <span class="name"><xsl:value-of select="maintainer/name"/></span>
288        </xsl:element>        </xsl:element>
289        <xsl:text> </xsl:text>        <xsl:text> </xsl:text>
290        <xsl:call-template name="maintainer-email">        <xsl:call-template name="maintainer-email">
# Line 248  other-to-%xx, especially % to %25... For Line 292  other-to-%xx, especially % to %25... For
292        </xsl:call-template>        </xsl:call-template>
293      </td>      </td>
294    </tr>    </tr>
295      <xsl:if test="uploaders">
296        <tr class="normalrow">
297          <td class="labelcell"><a href="http://www.debian.org/doc/manuals/developers-reference/pkgs.html#collaborative-maint">Uploaders</a></td>
298          <td class="uploaders contentcell">
299            <xsl:for-each select="uploaders/item">
300              <span class="uploader">
301                <xsl:element name="a">
302                  <xsl:attribute name="href">
303                    <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
304                    <xsl:call-template name="escape-name">
305                      <xsl:with-param name="text"><xsl:value-of select="email"/></xsl:with-param>
306                    </xsl:call-template>
307                  </xsl:attribute>
308                  <span class="name"><xsl:value-of select="name"/></span>
309                </xsl:element>
310                <xsl:text> </xsl:text>
311                <xsl:call-template name="maintainer-email">
312                  <xsl:with-param name="email" select="email" />
313                </xsl:call-template>
314              </span>
315              <br />
316            </xsl:for-each>
317        </td></tr>
318      </xsl:if>
319      <xsl:call-template name='add-maintenance-info'>
320        <xsl:with-param name="email" select="maintainer/email" />
321      </xsl:call-template>
322    <tr class="normalrow">    <tr class="normalrow">
323      <td class="labelcell"><a href="http://www.debian.org/doc/manuals/developers-reference/ch-pkgs.en.html#s-collaborative-maint">Co-Maintainers</a></td>      <xsl:variable name='stdver' select="standards-version" />
324        <td class="labelcell">Conforms to</td>
325      <td class="contentcell">      <td class="contentcell">
326        <xsl:if test="uploaders">        <a title="Debian Policy Manual (version: {$stdver})"
327          <xsl:for-each select="uploaders/item">          href="http://www.debian.org/doc/debian-policy/">
328            <xsl:element name="a">          <span id="standards_version"><xsl:value-of select="$stdver"/></span>
329              <xsl:attribute name="href">        </a>
330                <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>      </td>
331                <xsl:call-template name="escape-name">    </tr>
                 <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>  
       </xsl:if>  
       <xsl:call-template name='add-maintenance-info' />  
   </td></tr>  
332    <tr class="normalrow">    <tr class="normalrow">
333      <td class="labelcell">Standards-Version</td>      <td class="labelcell">Priority</td>
334      <td class="contentcell"><xsl:value-of select="standards-version"/></td>      <td class="contentcell">
335          <span id="priority"><xsl:value-of select="priority"/></span>
336        </td>
337    </tr>    </tr>
338    <tr class="normalrow">    <tr class="normalrow">
339      <td class="labelcell">Priority &amp; Section</td>      <td class="labelcell">Section</td>
340      <td class="contentcell"><xsl:value-of select="priority"/> - <xsl:value-of select="section"/></td>      <td class="contentcell">
341          <span id="section"><xsl:value-of select="section"/></span>
342        </td>
343    </tr>    </tr>
344    <xsl:call-template name='add-vcs-info' />    <xsl:call-template name='add-vcs-info' />
345    <xsl:if test="architecture!='any' and architecture!='all'">    <xsl:if test="architecture!='any' and architecture!='all'">
# Line 293  other-to-%xx, especially % to %25... For Line 352  other-to-%xx, especially % to %25... For
352    
353  <xsl:template name="bugs-count">  <xsl:template name="bugs-count">
354    <tr class="titlerow">    <tr class="titlerow">
355      <td class="titlecell" colspan="2">      <td class="titlecell" colspan="2">Bugs count</td>
       Bugs count  
     </td>  
356    </tr>    </tr>
357    <tr class="normalrow" id="bugs_all">    <tr class="normalrow" id="bugs_all">
358      <td class="labelcell">All bugs</td>      <td class="labelcell">All bugs
359           <xsl:element name="a">
360            <xsl:attribute name="href">
361              <xsl:text>http://people.debian.org/~glandium/bts/</xsl:text>
362              <xsl:value-of select="substring($package, 1, 1)"/>
363              <xsl:text>/</xsl:text>
364              <xsl:value-of select="$escaped-package" />
365              <xsl:text>.png</xsl:text>
366            </xsl:attribute>
367            <xsl:attribute name="style">font-weight: normal</xsl:attribute>
368            <xsl:text>(graph)</xsl:text>
369          </xsl:element>
370        </td>
371      <td class="contentcell">      <td class="contentcell">
372        <xsl:element name="a">        <xsl:element name="a">
373          <xsl:attribute name="href">          <xsl:attribute name="href">
374            <xsl:text>http://bugs.debian.org/src:</xsl:text>            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=no&amp;src=</xsl:text>
375            <xsl:call-template name="escape-name">            <xsl:value-of select="$escaped-package" />
             <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
           </xsl:call-template>  
376          </xsl:attribute>          </xsl:attribute>
377          <xsl:if test="$hasother">          <xsl:if test="$hasother">
378            <xsl:value-of select="$other/bugs/@all"/>            <span class="bugcount" title="all">
379                <xsl:value-of select="$other/bugs/@all"/>
380              </span>
381          </xsl:if>          </xsl:if>
382        </xsl:element>        </xsl:element>
383          <xsl:if test="$hasother and $other/bugs/@all_m">
384            (<xsl:element name="a">
385              <xsl:attribute name="href">
386                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=yes&amp;src=</xsl:text>
387                <xsl:value-of select="$escaped-package" />
388              </xsl:attribute>
389              <xsl:value-of select="$other/bugs/@all_m"/>
390            </xsl:element>)
391          </xsl:if>
392      </td>      </td>
393    </tr>    </tr>
394    <tr class="normalrow" id="bugs_rc">    <tr class="normalrow" id="bugs_rc">
# Line 318  other-to-%xx, especially % to %25... For Line 396  other-to-%xx, especially % to %25... For
396      <td class="contentcell">      <td class="contentcell">
397        <xsl:element name="a">        <xsl:element name="a">
398          <xsl:attribute name="href">          <xsl:attribute name="href">
399            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
400            <xsl:call-template name="escape-name">            <xsl:value-of select="$escaped-package" />
401              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>            <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>
           </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>  
402          </xsl:attribute>          </xsl:attribute>
403          <xsl:if test="$hasother">          <xsl:if test="$hasother">
404            <xsl:value-of select="$other/bugs/@rc"/>            <span class="bugcount" title="rc">
405                <xsl:value-of select="$other/bugs/@rc"/>
406              </span>
407          </xsl:if>          </xsl:if>
408        </xsl:element>        </xsl:element>
409          <xsl:if test="$hasother and $other/bugs/@rc_m">
410            (<xsl:element name="a">
411              <xsl:attribute name="href">
412                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
413                <xsl:value-of select="$escaped-package" />
414                <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=critical&amp;sev-inc=grave&amp;sev-inc=serious&amp;repeatmerged=yes</xsl:text>
415              </xsl:attribute>
416              <xsl:value-of select="$other/bugs/@rc_m"/>
417            </xsl:element>)
418          </xsl:if>
419      </td>      </td>
420    </tr>    </tr>
421    <tr class="normalrow" id="bugs_in">    <tr class="normalrow" id="bugs_in">
422      <td class="labelcell"><span class="indented"><acronym title="Important and Normal">I&amp;N bugs</acronym></span></td>      <td class="labelcell"><span class="indented"><acronym title="Important and Normal">I&amp;N</acronym> bugs</span></td>
423      <td class="contentcell">      <td class="contentcell">
424        <xsl:element name="a">        <xsl:element name="a">
425          <xsl:attribute name="href">          <xsl:attribute name="href">
426            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
427            <xsl:call-template name="escape-name">            <xsl:value-of select="$escaped-package" />
428              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>            <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>
           </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>  
429          </xsl:attribute>          </xsl:attribute>
430          <xsl:if test="$hasother">          <xsl:if test="$hasother">
431            <xsl:value-of select="$other/bugs/@normal"/>            <span class="bugcount" title="in">
432                <xsl:value-of select="$other/bugs/@normal"/>
433              </span>
434          </xsl:if>          </xsl:if>
435        </xsl:element>        </xsl:element>
436          <xsl:if test="$hasother and $other/bugs/@normal_m">
437            (<xsl:element name="a">
438              <xsl:attribute name="href">
439                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
440                <xsl:value-of select="$escaped-package" />
441                <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=important&amp;sev-inc=normal&amp;repeatmerged=yes</xsl:text>
442              </xsl:attribute>
443              <xsl:value-of select="$other/bugs/@normal_m"/>
444            </xsl:element>)
445          </xsl:if>
446      </td>      </td>
447    </tr>    </tr>
448    <tr class="normalrow" id="bugs_mw">    <tr class="normalrow" id="bugs_mw">
449      <td class="labelcell"><span class="indented"><acronym title="Minor and Wishlist">M&amp;W bugs</acronym></span></td>      <td class="labelcell"><span class="indented"><acronym title="Minor and Wishlist">M&amp;W</acronym> bugs</span></td>
450      <td class="contentcell">      <td class="contentcell">
451        <xsl:element name="a">        <xsl:element name="a">
452          <xsl:attribute name="href">          <xsl:attribute name="href">
453            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
454            <xsl:call-template name="escape-name">            <xsl:value-of select="$escaped-package" />
455              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>            <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>
           </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>  
456          </xsl:attribute>          </xsl:attribute>
457          <xsl:if test="$hasother">          <xsl:if test="$hasother">
458            <xsl:value-of select="$other/bugs/@wishlist"/>            <span class="bugcount" title="mw">
459                <xsl:value-of select="$other/bugs/@wishlist"/>
460              </span>
461          </xsl:if>          </xsl:if>
462        </xsl:element>        </xsl:element>
463          <xsl:if test="$hasother and $other/bugs/@wishlist_m">
464            (<xsl:element name="a">
465              <xsl:attribute name="href">
466                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
467                <xsl:value-of select="$escaped-package" />
468                <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=minor&amp;sev-inc=wishlist&amp;repeatmerged=yes</xsl:text>
469              </xsl:attribute>
470              <xsl:value-of select="$other/bugs/@wishlist_m"/>
471            </xsl:element>)
472          </xsl:if>
473      </td>      </td>
474    </tr>    </tr>
475    <tr class="normalrow" id="bugs_fp">    <tr class="normalrow" id="bugs_fp">
476      <td class="labelcell"><span class="indented"><acronym title="Fixed and Pending">F&amp;P bugs</acronym></span></td>      <td class="labelcell"><span class="indented"><acronym title="Fixed and Pending">F&amp;P</acronym> bugs</span></td>
477      <td class="contentcell">      <td class="contentcell">
478        <xsl:element name="a">        <xsl:element name="a">
479          <xsl:attribute name="href">          <xsl:attribute name="href">
480            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
481            <xsl:call-template name="escape-name">            <xsl:value-of select="$escaped-package" />
482              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>            <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=no</xsl:text>
           </xsl:call-template>  
           <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>  
483          </xsl:attribute>          </xsl:attribute>
484          <xsl:if test="$hasother">          <xsl:if test="$hasother">
485            <xsl:value-of select="$other/bugs/@fixed"/>            <span class="bugcount" title="fp">
486                <xsl:value-of select="$other/bugs/@fixed"/>
487              </span>
488          </xsl:if>          </xsl:if>
489        </xsl:element>        </xsl:element>
490          <xsl:if test="$hasother and $other/bugs/@fixed_m">
491            (<xsl:element name="a">
492              <xsl:attribute name="href">
493                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
494                <xsl:value-of select="$escaped-package" />
495                <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=yes</xsl:text>
496              </xsl:attribute>
497              <xsl:value-of select="$other/bugs/@fixed_m"/>
498            </xsl:element>)
499          </xsl:if>
500      </td>      </td>
501    </tr>    </tr>
502      <xsl:if test="$other/bugs/@gift > 0">
503        <tr class="normalrow" id="bugs_gift">
504          <td class="labelcell"><span class="indented"><a
505                href="http://wiki.debian.org/qa.debian.org/GiftTag">Gift</a>
506              bugs</span></td>
507          <td class="contentcell">
508            <xsl:element name="a">
509              <xsl:attribute name="href">
510                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
511                <xsl:value-of select="$escaped-package" />
512                <xsl:text>&amp;users=debian-qa@lists.debian.org;tag=gift</xsl:text>
513              </xsl:attribute>
514              <span class="bugcount" title="gift">
515                <xsl:value-of select="$other/bugs/@gift" />
516              </span>
517            </xsl:element>
518          </td>
519        </tr>
520      </xsl:if>
521  </xsl:template>  </xsl:template>
522    
523  <xsl:template name="pts-subscription">  <xsl:template name="pts-subscription">
524    <tr class="titlerow">    <tr class="titlerow">
525      <td class="titlecell" colspan="2">      <td class="titlecell" colspan="2">
526        <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        <a class="titlelink" href="http://www.debian.org/doc/manuals/developers-reference/resources.html#pkg-tracking-system"><acronym title="Package Tracking System">PTS</acronym></a> subscription
527    </td></tr>    </td></tr>
528    <tr class="normalrow">    <tr class="normalrow">
529      <td class="labelcell">Subscribers count</td>      <td class="labelcell">Subscribers count</td>
# Line 404  other-to-%xx, especially % to %25... For Line 541  other-to-%xx, especially % to %25... For
541              <option value="unsubscribe">Unsubscribe</option>              <option value="unsubscribe">Unsubscribe</option>
542              <option value="advanced">Advanced mode</option>              <option value="advanced">Advanced mode</option>
543            </select>            </select>
544            <input type="text" name="email" size="15" value="your email" onFocus="if(email.value=='your email'){{email.value=''}}"/>            <input type="text" name="email" size="15" value="your email"
545                onfocus="if(email.value=='your email'){{email.value=''}}"/>
546            <input type="submit" name="submit" value="Send"/>            <input type="submit" name="submit" value="Send"/>
547          </p>          </p>
548        </form>        </form>
# Line 414  other-to-%xx, especially % to %25... For Line 552  other-to-%xx, especially % to %25... For
552    
553  <xsl:template name="binary-packages">  <xsl:template name="binary-packages">
554    <tr class="titlerow">    <tr class="titlerow">
555      <td class="titlecell" colspan="2">      <td class="titlecell" colspan="2">Binary packages</td>
556        Binary package(s)    </tr>
   </td></tr>  
557    <tr class="normalrow">    <tr class="normalrow">
558      <td class="normalcell" colspan="2" style="text-align: left">      <td class="normalcell" colspan="2" style="text-align: left">
559        <ul>        <ul>
560          <xsl:for-each select="binary/item">          <xsl:for-each select="binary/item">
561            <xsl:sort select="text()"/>            <xsl:sort select="text()"/>
562            <xsl:variable name="pkg" select="text()"/>            <xsl:variable name="pkg" select="text()"/>
563              <xsl:variable name="tooltip"
564                select="concat($pkg, ': ',
565                    $other/descriptions/shortdesc[@package=$pkg])" />
566            <li class="binpkg">            <li class="binpkg">
567              <a class="binpkg" href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>              <a class="binpkg" title="{$tooltip}"
568                   href="http://packages.debian.org/{text()}">
569                  <span class="binpkg"><xsl:value-of select="text()"/></span>
570                </a>
571              <span style="font-size: 70%">              <span style="font-size: 70%">
572                (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:                (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:
573    
# Line 481  other-to-%xx, especially % to %25... For Line 624  other-to-%xx, especially % to %25... For
624    </ul></td></tr>    </ul></td></tr>
625  </xsl:template>  </xsl:template>
626    
627    <xsl:template name="output-version">
628      <xsl:param name="suite" select="''" />
629      <xsl:param name="link" select="'yes'" />
630      <xsl:variable name="version">
631        <span class="srcversion" title="{$suite}">
632          <xsl:value-of select="document(concat('../base/', $dir, '/', $suite,
633                                '.xml'))/source/version"/>
634        </span>
635      </xsl:variable>
636      <xsl:choose>
637        <xsl:when test="$link='yes'">
638          <a href="http://packages.debian.org/source/{$suite}/{$package}">
639            <xsl:copy-of select="$version" />
640          </a>
641        </xsl:when>
642        <xsl:otherwise>
643          <xsl:copy-of select="$version" />
644        </xsl:otherwise>
645      </xsl:choose>
646    </xsl:template>
647    
648  <xsl:template name="available-versions">  <xsl:template name="available-versions">
649    <tr class="titlerow">    <tr class="titlerow">
650      <td class="titlecell" colspan="2">      <td class="titlecell" colspan="2">
651        Available versions        Available versions
652          <small>
653            <a href="http://qa.debian.org/madison.php?package={$package}"
654              style="font-weight: normal"
655              title="madison">(more...)</a>
656          </small>
657    </td></tr>    </td></tr>
658    
659    <!-- oldstable -->    <!-- oldstable -->
660    <xsl:if test="$hasoldstable">    <xsl:if test="$hasoldstable">
661      <tr class="normalrow">      <tr class="normalrow">
662        <td class="labelcell"><a href="http://www.debian.org/releases/sarge/">Oldstable</a></td>        <td class="labelcell"><a href="http://www.debian.org/releases/etch/">Oldstable</a></td>
663        <td class="contentcell">        <td class="contentcell">
664          <xsl:value-of select="document(concat('../base/', $dir, '/oldstable.xml'))/source/version"/>          <xsl:call-template name="output-version">
665              <xsl:with-param name="suite">oldstable</xsl:with-param>
666            </xsl:call-template>
667        </td>        </td>
668      </tr>      </tr>
669    </xsl:if>    </xsl:if>
670    <xsl:if test="$hasoldstable-security">    <xsl:if test="$hassecurity-oldstable">
671      <tr class="normalrow">      <tr class="normalrow">
672        <td class="labelcell"><small>Oldstable Security Updates</small></td>        <td class="labelcell"><small>Oldstable Security Updates</small></td>
673        <td class="contentcell">        <td class="contentcell">
674          <xsl:value-of select="document(concat('../base/', $dir, '/oldstable-security.xml'))/source/version"/>          <xsl:call-template name="output-version">
675              <xsl:with-param name="suite">security-oldstable</xsl:with-param>
676              <xsl:with-param name="link">no</xsl:with-param>
677            </xsl:call-template>
678        </td>        </td>
679      </tr>      </tr>
680    </xsl:if>    </xsl:if>
# Line 510  other-to-%xx, especially % to %25... For Line 684  other-to-%xx, especially % to %25... For
684      <tr class="normalrow">      <tr class="normalrow">
685        <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>        <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>
686        <td class="contentcell">        <td class="contentcell">
687          <xsl:value-of select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/>          <xsl:call-template name="output-version">
688              <xsl:with-param name="suite">stable</xsl:with-param>
689            </xsl:call-template>
690        </td>        </td>
691      </tr>      </tr>
692    </xsl:if>    </xsl:if>
693    <xsl:if test="$hasstable-security">    <xsl:if test="$hassecurity-stable">
694      <tr class="normalrow">      <tr class="normalrow">
695        <td class="labelcell"><small>Stable Security Updates</small></td>        <td class="labelcell"><small>Stable Security Updates</small></td>
696        <td class="contentcell">        <td class="contentcell">
697          <xsl:value-of select="document(concat('../base/', $dir, '/stable-security.xml'))/source/version"/>          <xsl:call-template name="output-version">
698              <xsl:with-param name="suite">security-stable</xsl:with-param>
699              <xsl:with-param name="link">no</xsl:with-param>
700            </xsl:call-template>
701        </td>        </td>
702      </tr>      </tr>
703    </xsl:if>    </xsl:if>
704    <xsl:if test="$hass-p-u">    <xsl:if test="$hasstable-proposed-updates">
705      <tr class="normalrow">      <tr class="normalrow">
706        <td class="labelcell"><small>Stable Proposed Updates</small></td>        <td class="labelcell"><small>Stable Proposed Updates</small></td>
707        <td class="contentcell">        <td class="contentcell">
708          <xsl:value-of select="document(concat('../base/', $dir, '/s-p-u.xml'))/source/version"/>          <xsl:call-template name="output-version">
709              <xsl:with-param name="suite">stable-proposed-updates</xsl:with-param>
710              <xsl:with-param name="link">no</xsl:with-param>
711            </xsl:call-template>
712        </td>        </td>
713      </tr>      </tr>
714    </xsl:if>    </xsl:if>
# Line 536  other-to-%xx, especially % to %25... For Line 718  other-to-%xx, especially % to %25... For
718      <tr class="normalrow">      <tr class="normalrow">
719        <td class="labelcell"><a href="http://www.debian.org/releases/testing/">Testing</a></td>        <td class="labelcell"><a href="http://www.debian.org/releases/testing/">Testing</a></td>
720        <td class="contentcell">        <td class="contentcell">
721          <xsl:value-of select="document(concat('../base/', $dir, '/testing.xml'))/source/version"/>          <xsl:call-template name="output-version">
722              <xsl:with-param name="suite">testing</xsl:with-param>
723            </xsl:call-template>
724        </td>        </td>
725      </tr>      </tr>
726    </xsl:if>    </xsl:if>
727    <xsl:if test="$hastesting-security">    <xsl:if test="$hassecurity-testing">
728      <tr class="normalrow">      <tr class="normalrow">
729        <td class="labelcell"><small>Testing Security Updates</small></td>        <td class="labelcell"><small>Testing Security Updates</small></td>
730        <td class="contentcell">        <td class="contentcell">
731          <xsl:value-of select="document(concat('../base/', $dir, '/testing-security.xml'))/source/version"/>          <xsl:call-template name="output-version">
732              <xsl:with-param name="suite">security-testing</xsl:with-param>
733              <xsl:with-param name="link">no</xsl:with-param>
734            </xsl:call-template>
735        </td>        </td>
736      </tr>      </tr>
737    </xsl:if>    </xsl:if>
738    <xsl:if test="$hast-p-u">    <xsl:if test="$hastesting-proposed-updates">
739      <tr class="normalrow">      <tr class="normalrow">
740        <td class="labelcell"><small>Testing Proposed Updates</small></td>        <td class="labelcell"><small>Testing Proposed Updates</small></td>
741        <td class="contentcell">        <td class="contentcell">
742          <xsl:value-of select="document(concat('../base/', $dir, '/t-p-u.xml'))/source/version"/>          <xsl:call-template name="output-version">
743              <xsl:with-param name="suite">testing-proposed-updates</xsl:with-param>
744              <xsl:with-param name="link">no</xsl:with-param>
745            </xsl:call-template>
746        </td>        </td>
747      </tr>      </tr>
748    </xsl:if>    </xsl:if>
# Line 562  other-to-%xx, especially % to %25... For Line 752  other-to-%xx, especially % to %25... For
752      <tr class="normalrow">      <tr class="normalrow">
753        <td class="labelcell">Unstable</td>        <td class="labelcell">Unstable</td>
754        <td class="contentcell">        <td class="contentcell">
755          <xsl:value-of select="document(concat('../base/', $dir, '/unstable.xml'))/source/version"/>          <xsl:call-template name="output-version">
756              <xsl:with-param name="suite">unstable</xsl:with-param>
757            </xsl:call-template>
758        </td>        </td>
759      </tr>      </tr>
760    </xsl:if>    </xsl:if>
# Line 572  other-to-%xx, especially % to %25... For Line 764  other-to-%xx, especially % to %25... For
764      <tr class="normalrow">      <tr class="normalrow">
765        <td class="labelcell">Experimental</td>        <td class="labelcell">Experimental</td>
766        <td class="contentcell">        <td class="contentcell">
767          <xsl:value-of select="document(concat('../base/', $dir, '/experimental.xml'))/source/version"/>          <xsl:call-template name="output-version">
768              <xsl:with-param name="suite">experimental</xsl:with-param>
769            </xsl:call-template>
770        </td>        </td>
771      </tr>      </tr>
772    </xsl:if>    </xsl:if>
# Line 582  other-to-%xx, especially % to %25... For Line 776  other-to-%xx, especially % to %25... For
776      <tr class="normalrow">      <tr class="normalrow">
777        <td class="labelcell">Secure testing</td>        <td class="labelcell">Secure testing</td>
778        <td class="contentcell">        <td class="contentcell">
779          <xsl:value-of select="document(concat('../base/', $dir, '/secure-testing.xml'))/source/version"/>          <xsl:call-template name="output-version">
780              <xsl:with-param name="suite">secure-testing</xsl:with-param>
781              <xsl:with-param name="link">no</xsl:with-param>
782            </xsl:call-template>
783        </td>        </td>
784      </tr>      </tr>
785    </xsl:if>    </xsl:if>
# Line 592  other-to-%xx, especially % to %25... For Line 789  other-to-%xx, especially % to %25... For
789      <tr class="normalrow">      <tr class="normalrow">
790        <td class="labelcell">Volatile</td>        <td class="labelcell">Volatile</td>
791        <td class="contentcell">        <td class="contentcell">
792          <xsl:value-of select="document(concat('../base/', $dir, '/volatile.xml'))/source/version"/>          <xsl:call-template name="output-version">
793              <xsl:with-param name="suite">volatile</xsl:with-param>
794              <xsl:with-param name="link">no</xsl:with-param>
795            </xsl:call-template>
796          </td>
797        </tr>
798      </xsl:if>
799    
800      <!-- waiting in NEW -->
801      <xsl:if test="$hasother and $other/@new_version">
802        <tr class="normalrow">
803          <td class="labelcell">
804            <a title="Some versions of this package are waiting for FTP master's review"
805               href="http://ftp-master.debian.org/new.html">NEW queue</a></td>
806          <td class="contentcell">
807            <xsl:value-of select="$other/@new_version" />
808        </td>        </td>
809      </tr>      </tr>
810    </xsl:if>    </xsl:if>
811  </xsl:template>  </xsl:template>
812    
813  <xsl:template name="patches">  <xsl:template name="ubuntu">
814    <!-- Patches list [FG] -->    <!-- Patches list [FG] -->
815    <xsl:if test="$other/@patches='yes'">    <xsl:if test="$other/@ubuntu='yes'">
816      <tr class="titlerow">      <tr class="titlerow">
817        <td class="titlecell" colspan="2">        <td class="titlecell" colspan="2"><a
818          Patches            title="Information about Ubuntu for Debian Developers"
819      </td></tr>            href="https://wiki.ubuntu.com/Ubuntu/ForDebianDevelopers">Ubuntu ...</a>
820          </td>
821        </tr>
822      <tr>      <tr>
823        <td class="contentcell" colspan="2" style="text-align: left">        <td class="contentcell" colspan="2" style="text-align: left">
824          <ul>          <ul>
           <xsl:for-each select="$other/patches/item">  
825              <li>              <li>
826                <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>                      Version: <a href="{$other/ubuntu/@url}"><xsl:value-of select="$other/ubuntu/@version"/></a>
827              </li>              </li>
828            </xsl:for-each>            <xsl:if test="$other/ubuntu/patch">
           <xsl:if test="$other/bugs/@patch!='0'">  
829              <li>              <li>
830                <xsl:element name="a">                      <a href="{$other/ubuntu/patch/@url}">Patch for version <xsl:value-of select="$other/ubuntu/patch/@version"/></a>
831                  <xsl:attribute name="href">              </li>
832                    <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>            </xsl:if>
833                    <xsl:call-template name="escape-name">            <xsl:if test="$other/ubuntu/bugs">
834                      <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>              <li>
835                    </xsl:call-template>                      <a href="{$other/ubuntu/bugs/@url}"><xsl:value-of select="$other/ubuntu/bugs/@count"/> open bugs</a>
                   <xsl:text>&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done</xsl:text>  
                 </xsl:attribute>  
                 Patches from BTS (<xsl:value-of select="$other/bugs/@patch"/>)  
               </xsl:element>  
836              </li>              </li>
837            </xsl:if>            </xsl:if>
838          </ul>          </ul>
# Line 641  other-to-%xx, especially % to %25... For Line 849  other-to-%xx, especially % to %25... For
849    <tr>    <tr>
850      <td class="contentcell" colspan="2" style="text-align: left">      <td class="contentcell" colspan="2" style="text-align: left">
851        <ul>        <ul>
852            <xsl:if test="homepage">
853              <li> <a href="{homepage}">Upstream homepage</a> </li>
854            </xsl:if>
855          <li>          <li>
856            <xsl:element name="a">            <xsl:element name="a">
857              <xsl:attribute name="href">              <xsl:attribute name="href">
# Line 662  other-to-%xx, especially % to %25... For Line 873  other-to-%xx, especially % to %25... For
873          </li>          </li>
874          <xsl:if test="architecture!='all'">          <xsl:if test="architecture!='all'">
875            <li>            <li>
876              <xsl:element name="a">              <xsl:text>Buildd: </xsl:text>
877                <xsl:attribute name="href">              <a href="http://buildd.debian.org/pkg.cgi?pkg={$escaped-package}"
878                  <xsl:text>http://buildd.debian.org/pkg.cgi?pkg=</xsl:text>                title="buildd.debian.org build logs">logs</a>
879                  <xsl:call-template name="escape-name">              <xsl:text>, </xsl:text>
880                    <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>              <!-- <a href="http://people.debian.org/~igloo/status.php?packages={$escaped-package}"
881                  </xsl:call-template>                title="igloo's build logs on people.debian.org">more</a> -->
882                </xsl:attribute>              <a href="http://buildd.debian.org/~luk/status/package.php?p={$escaped-package}"
883                <xsl:text>Buildd logs</xsl:text>                title="build logs on buildd.debian.org">more</a>
884              </xsl:element>              <xsl:text>, </xsl:text>
885              <xsl:text> (</xsl:text>              <!-- <a href="http://experimental.debian.net/build.php?pkg={$escaped-package}" -->
886              <xsl:element name="a">              <!--   title="experimental.debian.net build logs">exp</a> -->
887                <xsl:attribute name="href">              <xsl:if test="$hasexperimental">
888                  <xsl:text>http://experimental.debian.net/build.php?pkg=</xsl:text>                <a href="http://experimental.debian.net/new/package.php?p={$escaped-package}&amp;suite=experimental"
889                  <xsl:call-template name="escape-name">                   title="experimental.debian.net build logs">exp</a>
890                    <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>                <xsl:text>, </xsl:text>
891                  </xsl:call-template>              </xsl:if>
892                </xsl:attribute>              <a href="http://buildd.debian-ports.org/status/package.php?p={$escaped-package}"
893                <xsl:text>more</xsl:text>                title="debian ports build logs">ports</a>
             </xsl:element>  
             <xsl:text>)</xsl:text>  
894            </li>            </li>
895          </xsl:if>          </xsl:if>
896          <!-- DISABLED until ddtp.debian.org is back up          <xsl:if test="$hasother and $other/@piuparts='yes'">
         <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'">  
897            <li>            <li>
898              <xsl:element name="a">              <a title="errors found while stressing package (un)installation"
899                <xsl:attribute name="href">                 href="http://piuparts.debian.org/sid/source/{$hash}/{$package}.html">piuparts
900                  <xsl:text>http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&amp;package=</xsl:text>              errors</a>
                 <xsl:call-template name="escape-name">  
                   <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
                 </xsl:call-template>  
               </xsl:attribute>  
               Debconf templates's translations (DDTP)  
             </xsl:element>  
901            </li>            </li>
902          </xsl:if>          </xsl:if>
         -->  
903          <xsl:if test="($hasunstable and $other/debcheck/@unstable='yes')          <xsl:if test="($hasunstable and $other/debcheck/@unstable='yes')
904            or ($hastesting and $other/debcheck/@testing='yes')            or ($hastesting and $other/debcheck/@testing='yes')
905            or ($hasstable and $other/debcheck/@stable='yes')">            or ($hasstable and $other/debcheck/@stable='yes')">
# Line 718  other-to-%xx, especially % to %25... For Line 907  other-to-%xx, especially % to %25... For
907              Debcheck on:              Debcheck on:
908              <xsl:if test="$hasunstable">              <xsl:if test="$hasunstable">
909                <xsl:text> </xsl:text>                <xsl:text> </xsl:text>
910                <xsl:element name="a">                <a href="http://qa.debian.org/debcheck.php?dist=unstable&amp;package={$escaped-package}">unstable</a>
                 <xsl:attribute name="href">  
                   <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>  
911              </xsl:if>              </xsl:if>
912              <xsl:if test="$hastesting">              <xsl:if test="$hastesting">
913                <xsl:text> </xsl:text>                <xsl:text> </xsl:text>
914                <xsl:element name="a">                <a href="http://qa.debian.org/debcheck.php?dist=testing&amp;package={$escaped-package}">testing</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>  
915              </xsl:if>              </xsl:if>
916              <xsl:if test="$hasstable">              <xsl:if test="$hasstable">
917                <xsl:text> </xsl:text>                <xsl:text> </xsl:text>
918                <xsl:element name="a">                <a href="http://qa.debian.org/debcheck.php?dist=stable&amp;package={$escaped-package}">stable</a>
919                  <xsl:attribute name="href">              </xsl:if>
920                    <xsl:text>http://qa.debian.org/debcheck.php?dist=stable&amp;package=</xsl:text>            </li>
921                    <xsl:call-template name="escape-name">          </xsl:if>
922                      <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>          <xsl:if test="$other/@lintian='yes'">
923                    </xsl:call-template>            <xsl:variable name="lintian_url"><xsl:call-template name="mk_lintian_url" /></xsl:variable>
924                  </xsl:attribute>            <li>
925                  <xsl:text>stable</xsl:text>              <a href="{$lintian_url}">Lintian report</a>
926                </xsl:element>              <xsl:if test="$lin_errs + $lin_warns > 0">
927                  <xsl:text> </xsl:text>
928                  <small><span title="(errors, warnings)">(<span id="lintian_errors"><xsl:value-of select="$lin_errs" /></span>,
929                      <span id="lintian_warnings"><xsl:value-of select="$lin_warns" /></span>)</span></small>
930              </xsl:if>              </xsl:if>
931            </li>            </li>
932          </xsl:if>          </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>  
933          <li>          <li>
934            <xsl:element name="a">            <a href="http://qa.debian.org/developer.php?popcon={$escaped-package}">Popcon stats</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>  
935          </li>          </li>
936            <xsl:if test="$other/@svnbuildstat='yes'">
937              <li>
938                <a href="http://svnbuildstat.debian.net/packages/info/{$escaped-package}">Svnbuildstat</a>
939              </li>
940            </xsl:if>
941            <xsl:if test="$other/i18n/@href">
942              <li>
943                <a title="translation status"
944                   href="{$other/i18n/@href}">l10n status</a>
945                <small>
946                  (<span title="completeness of Debian string translation">
947                    <xsl:value-of select="$other/i18n/@deb" />
948                  </span>,
949                  <span title="completeness of non-Debian string translation">
950                    <xsl:value-of select="$other/i18n/@nondeb" />
951                  </span>)
952                </small>
953              </li>
954            </xsl:if>
955        </ul>        </ul>
956      </td>      </td>
957    </tr>    </tr>
# Line 787  other-to-%xx, especially % to %25... For Line 959  other-to-%xx, especially % to %25... For
959    
960  <xsl:template name="package-files">  <xsl:template name="package-files">
961    <tr class="titlerow">    <tr class="titlerow">
962      <td class="titlecell" colspan="2">      <td class="titlecell" colspan="2">Source package</td>
963        Package files    </tr>
   </td></tr>  
964    <tr class="titlerow">    <tr class="titlerow">
965      <td class="labelcell">      <td class="labelcell">
966        <xsl:element name="a">        <xsl:element name="a">
# Line 799  other-to-%xx, especially % to %25... For Line 970  other-to-%xx, especially % to %25... For
970            <xsl:value-of select="directory"/>            <xsl:value-of select="directory"/>
971            <xsl:text>/</xsl:text>            <xsl:text>/</xsl:text>
972          </xsl:attribute>          </xsl:attribute>
973          <xsl:text>Source files</xsl:text>          <xsl:text>Files</xsl:text>
974        </xsl:element>        </xsl:element>
975      </td>      </td>
976      <td class="contentcell" id="src_files">      <td class="contentcell" id="src_files">
# Line 843  other-to-%xx, especially % to %25... For Line 1014  other-to-%xx, especially % to %25... For
1014    
1015  <xsl:template name="todo-list">  <xsl:template name="todo-list">
1016    <xsl:variable name="todo">    <xsl:variable name="todo">
1017      <xsl:if test="@nmu">      <xsl:call-template name="issue-nmu" />
1018        <li>Incorporate and acknowledge the changes from the non maintainer upload.</li>      <xsl:call-template name="issue-lintian" />
1019      </xsl:if>      <xsl:call-template name="issue-mentors-pending" />
1020      <xsl:if test="not(uploaders)and(priority='standard' or priority='required' or priority='important')">      <xsl:call-template name="issue-comaintenance" />
1021        <li>The package is of priority standard or higher, you should really find some co-maintainers.</li>      <xsl:call-template name="issue-outdate-stdver" />
1022      </xsl:if>      <xsl:call-template name="issue-new-upstream" />
1023      <xsl:if test="not(starts-with(standards-version, $lastsv))">      <xsl:call-template name="issue-patches" />
1024        <li>The package should be updated to follow the last version of      <xsl:call-template name="issue-l10n" />
         <a href="http://www.debian.org/doc/debian-policy/">Debian Policy</a> (Standards-Version  
         <xsl:value-of select="$lastsv"/> instead of  
         <xsl:value-of select="standards-version"/>).</li>  
     </xsl:if>  
1025      <xsl:if test="$hasother">      <xsl:if test="$hasother">
1026        <xsl:for-each select="$other/todo/item">        <xsl:for-each select="$other/todo/item">
1027          <xsl:call-template name="outputitem"/>          <xsl:call-template name="outputitem" />
1028        </xsl:for-each>        </xsl:for-each>
       <!-- new upstream version goes in todo [FG] -->  
       <xsl:if test="$other/@watch='yes' and $other/watch/@new!='0'">  
         <li>A new upstream version was found:  
           (<xsl:value-of select="$other/watch/@new"/>). <a href="{$other/watch/@url}"><xsl:value-of select="$other/watch/@url"/></a></li>  
       </xsl:if>  
       <xsl:if test="$other/bugs/@patch!='0'">  
         <li>The Bug Tracking System contains  
           <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;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>  
       </xsl:if>  
1029      </xsl:if>      </xsl:if>
1030    </xsl:variable>    </xsl:variable>
1031    <xsl:if test="count($todo)>0 and string($todo)!=''">    <xsl:if test="count($todo)>0 and string($todo)!=''">
1032      <tr class="titlerow">      <tr class="titlerow">
1033        <td class="titlecell" id="todo">        <td class="titlecell" id="todo">Todo</td>
1034          Todo      </tr>
     </td></tr>  
1035      <tr class="normalrow">      <tr class="normalrow">
1036        <td class="contentcell2">        <td class="contentcell2"><ul><xsl:copy-of select="$todo"/></ul></td>
         <ul>  
           <xsl:copy-of select="$todo"/>  
         </ul>  
       </td>  
1037      </tr>      </tr>
1038    </xsl:if>    </xsl:if>
1039  </xsl:template>  </xsl:template>
1040    
1041  <xsl:template name="problems">  <xsl:template name="problems">
1042    <xsl:variable name="problems">    <xsl:variable name="problems">
1043      <xsl:if test="$hasexcuse and document(concat('../base/', $dir, '/excuse.xml'))/excuse/@problematic">      <xsl:call-template name="issue-testing-excuses" />
1044        <li>The package has not yet entered <a      <xsl:call-template name="issue-piuparts" />
1045            href="http://ftp-master.debian.org/testing/update_excuses.html.gz#{$package}">testing</a>      <xsl:call-template name="issue-ancient-stdver" />
1046          even though the <xsl:value-of select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/@limit"/>-day      <xsl:call-template name="issue-item-dead-package" />
1047          delay is over.      <xsl:call-template name="issue-item-override-disparity" />
1048          <xsl:element name="a">      <xsl:call-template name="issue-item-help-bugs" />
1049            <xsl:attribute name="href">      <xsl:call-template name="issue-item-wnpp" />
1050              <xsl:text>http://bjorn.haxx.se/debian/testing.pl?package=</xsl:text>      <!-- <xsl:call-template name="issue-item-watch-failure" /> -->
1051              <xsl:call-template name="escape-name">      <xsl:call-template name="issue-item-dehs-failure" />
               <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
             </xsl:call-template>  
           </xsl:attribute>  
           Check why  
         </xsl:element>  
         .</li>  
     </xsl:if>  
     <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">  
       <li>The package is severly out of date with respect to the Debian  
         Policy. Latest version is <xsl:value-of select="$lastsv"/>  
         and your package only follows  
         <xsl:value-of select="standards-version"/>...</li>  
     </xsl:if>  
     <xsl:if test="@release!='unstable' and @release!='experimental'">  
       <li>This package is neither part of unstable nor experimental. This  
         probably means that the package <a  
           href="http://ftp-master.debian.org/removals.txt">has been removed</a> (or  
         has been renamed). Thus the information here is of little interest ...  
         the package is going to disappear unless someone takes it over and  
         reintroduces it into unstable.</li>  
     </xsl:if>  
1052      <xsl:if test="$hasother">      <xsl:if test="$hasother">
   
       <!-- Override disparity handling. [JvW] -->  
       <xsl:if test="$other/@override='yes'">  
         <xsl:for-each select="$other/override/group">  
           <li>There were override disparities found in suite <xsl:value-of  
               select="@suite"/>:  
             <ul>  
               <xsl:for-each select="disparity">  
                 <li><xsl:value-of select="text()"/></li>  
               </xsl:for-each>  
             </ul>  
           </li>  
         </xsl:for-each>  
       </xsl:if>  
   
       <!-- Wnpp handling. [PvR] -->  
       <xsl:if test="$other/@wnpp='yes'">  
         <li>  
           <xsl:choose>  
             <xsl:when test="$other/wnpp/@type='O'">  
               <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.  
         </li>  
       </xsl:if>  
   
       <!-- uscan output if present [FG] -->  
       <xsl:if test="$other/@watch='yes'">  
         <li>  
           <xsl:if test="$other/watch/@warning!=''">  
             uscan had problems while searching for a new upstream version: <xsl:value-of select="$other/watch/@warning"/>  
           </xsl:if>  
         </li>  
       </xsl:if>  
   
       <!-- Misc problems reported -->  
1053        <xsl:for-each select="$other/problems/item">        <xsl:for-each select="$other/problems/item">
1054          <xsl:call-template name="outputitem"/>          <xsl:call-template name="outputitem"/>
1055        </xsl:for-each>        </xsl:for-each>
# Line 1068  other-to-%xx, especially % to %25... For Line 1057  other-to-%xx, especially % to %25... For
1057    </xsl:variable>    </xsl:variable>
1058    <xsl:if test="count($problems)>0 and string($problems)!=''">    <xsl:if test="count($problems)>0 and string($problems)!=''">
1059      <tr class="titlerow">      <tr class="titlerow">
1060        <td class="titlecell" id="problems">        <td class="titlecell" id="problems">Problems</td>
1061          Problems      </tr>
     </td></tr>  
1062      <tr class="normalrow">      <tr class="normalrow">
1063        <td class="contentcell2">        <td class="contentcell2"><ul><xsl:copy-of select="$problems"/></ul></td>
         <ul><xsl:copy-of select="$problems"/></ul>  
       </td>  
1064      </tr>      </tr>
1065    </xsl:if>    </xsl:if>
1066  </xsl:template>  </xsl:template>
1067    
1068  <xsl:template name="testing-status">  <xsl:template name="testing-status">
1069    <xsl:if test="$hasexcuse">    <xsl:if test="$hasexcuse or $other/@transitions='yes'">
1070      <tr class="titlerow">      <tr class="titlerow">
1071        <td class="titlecell">        <td class="titlecell">
1072          Testing Status          Testing status
1073      </td></tr>      </td></tr>
1074      </xsl:if>
1075      <xsl:if test="$other/@transitions='yes'">
1076        <xsl:variable name="translist">
1077          <xsl:for-each select="$other/transitions/transition">
1078            <xsl:value-of select="@name" />
1079            <xsl:if test="position() != last()">
1080              <xsl:text> </xsl:text>
1081            </xsl:if>
1082          </xsl:for-each>
1083        </xsl:variable>
1084        <xsl:variable name="transno" select="count($other/transitions/transition)" />
1085      <tr class="normalrow">      <tr class="normalrow">
1086        <td class="contentcell2" style="text-align: left">        <td class="contentcell2" style="text-align: left">
1087          <ul>          <ul>
1088            <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">            <!-- XXX unappropriate <ul>, just to make the text looks like other
1089              <xsl:call-template name="outputitem"/>              boxes, should be fixed on the CSS side (getting rid of <ul>) -->
1090            </xsl:for-each>                <li>This package is part of <em><xsl:value-of select="$transno" />
1091          </ul>                    ongoing testing transition<xsl:if test="$transno != '1'">s</xsl:if>
1092        </td>                  </em> (namely: <tt><xsl:value-of select="$translist" /></tt>). For
1093      </tr>                  more information see the
1094    </xsl:if>                  <a href="http://ftp-master.debian.org/transitions.yaml">transition
1095  </xsl:template>                    status file</a>.<br />
1096                    <em>Uploads to unstable will be rejected</em> while transitions are
1097  <xsl:template name="static-info">                  ongoing; you might want to upload to experimental in the
1098    <xsl:call-template name="output-static">                  meantime, or contact <tt><a href="mailto:debian-release@lists.debian.org">debian-release</a></tt>
1099      <xsl:with-param name="static" select="$static" />                  if an upload is really necessary.
1100    </xsl:call-template>                </li>
1101  </xsl:template>              </ul>
1102              </td>
1103            </tr>
1104          </xsl:if>
1105          <xsl:if test="$hasexcuse">
1106            <tr class="normalrow">
1107              <td class="contentcell2" style="text-align: left">
1108                <a title="reasons why the package is not moving to testing"
1109                  href="http://qa.debian.org/excuses.php?package={$package}">Excuses</a>:
1110                <ul class="testing-excuses">
1111                  <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
1112                    <xsl:call-template name="outputitem"/>
1113                  </xsl:for-each>
1114                </ul>
1115              </td>
1116            </tr>
1117          </xsl:if>
1118        </xsl:template>
1119    
1120  <xsl:template name="latest-news">      <xsl:template name="static-info">
1121    <xsl:call-template name="output-news">        <xsl:call-template name="output-static">
1122      <xsl:with-param name="news" select="$news" />          <xsl:with-param name="static" select="$static" />
1123    </xsl:call-template>        </xsl:call-template>
1124  </xsl:template>      </xsl:template>
1125    
1126  <xsl:variable name="static">      <xsl:template name="latest-news">
1127    <xsl:if test="$hasnews">        <xsl:call-template name="output-news">
1128      <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">          <xsl:with-param name="news" select="$news" />
1129        <xsl:call-template name="outputitem"/>        </xsl:call-template>
1130      </xsl:for-each>      </xsl:template>
   </xsl:if>  
 </xsl:variable>  
1131    
1132  <xsl:variable name="news">      <xsl:variable name="static">
1133    <xsl:if test="$hasnews">        <xsl:if test="$hasnews">
1134      <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">          <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">
1135        <xsl:call-template name="outputitem"/>            <xsl:call-template name="outputitem"/>
1136      </xsl:for-each>          </xsl:for-each>
1137    </xsl:if>        </xsl:if>
1138  </xsl:variable>      </xsl:variable>
1139    
1140  <!-- All the work is done in a single template -->      <xsl:variable name="news">
1141  <xsl:template match="source">        <xsl:if test="$hasnews">
1142            <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">
1143              <xsl:call-template name="outputitem"/>
1144            </xsl:for-each>
1145          </xsl:if>
1146        </xsl:variable>
1147    
1148    <!-- Start of html -->      <!-- All the work is done in a single template -->
1149    <xsl:text disable-output-escaping="yes">      <xsl:template match="source">
   &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;  
   </xsl:text>  
   <html>  
   <head>  
   <meta name="ROBOTS" content="NOFOLLOW"/>  
   <link type="text/css" title="Default" rel="stylesheet" href="../common/pts.css"/>  
   <link type="text/css" title="Standard link rendering" rel="alternate stylesheet" href="../common/pts2.css"/>  
   <link type="text/css" title="Compact rendering" rel="alternate stylesheet" href="../common/compact.css"/>  
   <xsl:if test="count($news)>0 and string($news)!=''">  
     <link rel="alternate" type="application/rss+xml" title="RSS"  
       href="{$package}/news.rss20.xml" />  
   </xsl:if>  
   <title>Overview of <xsl:value-of select="$package"/> source package</title>  
   </head>  
   <body>  
   
   <form method="get" action="/common/index.html" style="float: right;">  
   <!-- this link should make lynx/links happy [FG] -->  
   <p>Jump to package (<a href="/">home page</a>): <br/>  
   <input type="text" name="src" value=""/></p>  
   </form>  
   <h1>Overview of  
   <xsl:element name="a">  
     <xsl:attribute name="href">  
       <xsl:text>http://packages.debian.org/src:</xsl:text>  
        <xsl:value-of select="$package"/>  
     </xsl:attribute>  
    <xsl:value-of select="$package"/>  
   </xsl:element>  
   source package</h1>  
1150    
1151    <div id="body">        <!-- Start of html -->
1152    <xsl:choose>        <html>
1153    <xsl:when test="$removed='yes'">          <head>
1154    <!-- REMOVED PACKAGE -->            <meta name="ROBOTS" content="NOFOLLOW"/>
1155    <p>This package is not part of any Debian distribution. Thus you won't            <link type="text/css" title="User selected" rel="stylesheet" href="../common/default.css"/>
1156    find much information here. The package is either very new and hasn't            <link type="text/css" title="Official" rel="alternate stylesheet" href="../common/revamp.css"/>
1157    appeared on mirrors yet, or it's an old package that eventually got removed.            <link type="text/css" title="Legacy PTS" rel="alternate stylesheet" href="../common/pts.css"/>
1158    The old news are kept for historic purpose only.</p>            <link type="text/css" title="Compact rendering" rel="alternate stylesheet" href="../common/compact.css"/>
1159              <script type="text/javascript" src="../common/pts.js"></script>
1160    <table class="righttable">            <xsl:if test="count($news)>0 and string($news)!=''">
1161      <xsl:call-template name="static-info" />              <link rel="alternate" type="application/rss+xml" title="RSS"
1162      <xsl:call-template name="latest-news" />                href="{$package}/news.rss20.xml" />
1163    </table>            </xsl:if>
1164              <title>Overview of <xsl:value-of select="$package"/> source package</title>
1165    <!-- END REMOVED PACKAGE -->          </head>
1166    </xsl:when>          <body onload="javascript:onLoad();">
1167    <xsl:otherwise>  
1168    <!-- NON REMOVED PACKAGE -->            <div id="quickforms" style="float: right;">
1169                <form method="get" action="/common/index.html">
1170    <table class="containertable">                <p><span title="Jump to package">Go:</span>
1171    <tr class="containerrow" valign="top">                  <input type="text" name="src" value=""/></p>
1172    <td class="containercell">              </form>
1173    <!-- LEFT SIDE -->              <form id="csspref-form" method="get" action="/common/set-csspref.php">
1174    <table class="lefttable">                <p>Switch style: <select name="csspref" onchange="javascript:onChangeStyle();">
1175      <xsl:call-template name="general-information" />                    <option value="revamp.css">Default</option>
1176      <xsl:call-template name="bugs-count" />                    <option value="compact.css">Compact</option>
1177      <xsl:call-template name="pts-subscription" />                    <option value="pts.css">Legacy</option>
1178      <xsl:call-template name="binary-packages" />                </select></p>
1179      <xsl:call-template name="available-versions" />              </form>
     <xsl:call-template name="patches" />  
     <xsl:call-template name="other-links" />  
     <xsl:call-template name="package-files" />  
   </table>  
   <!-- END LEFT SIDE -->  
   </td><td class="containercell">  
   <!-- RIGHT SIDE -->  
   <table class="righttable">  
     <xsl:call-template name="todo-list" />  
     <xsl:call-template name="problems" />  
     <xsl:call-template name="testing-status" />  
     <xsl:call-template name="static-info" />  
     <xsl:call-template name="latest-news" />  
   </table>  
   <!-- END RIGHT SIDE -->  
   </td></tr>  
   </table>  
1180    
1181    <!-- END NON REMOVED PACKAGE -->            </div>
1182    </xsl:otherwise>            <h1>Overview of
1183    </xsl:choose>              <xsl:element name="a">
1184                  <xsl:attribute name="href">
1185                    <xsl:text>http://packages.debian.org/src:</xsl:text>
1186                    <xsl:value-of select="$package"/>
1187                  </xsl:attribute>
1188                  <xsl:value-of select="$package"/>
1189                </xsl:element>
1190                source package</h1>
1191    
1192    <hr/>            <div id="body">
1193    <div class="footer">              <xsl:choose>
1194      <p>                <xsl:when test="$removed='yes'">
1195        Debian Package Tracking System - Copyright 2002-2007 Raphaël Hertzog and                  <!-- REMOVED PACKAGE -->
1196        others<br/>                  <p>This package is not part of any Debian distribution. Thus you won't
1197        Report problems to the <a href="http://bugs.debian.org/qa.debian.org"                    find much information here. The package is either very new and hasn't
1198          >qa.debian.org pseudopackage</a><br/>                    appeared on mirrors yet, or it's an old package that eventually got removed.
1199        Last modified : <xsl:value-of select="$date"/>                    The old news are kept for historic purpose only.</p>
1200      </p>  
1201    </div>                  <table class="righttable">
1202    </div>                    <xsl:call-template name="static-info" />
1203    </body>                    <xsl:call-template name="latest-news" />
1204    </html>                  </table>
1205  </xsl:template>  
1206                    <!-- END REMOVED PACKAGE -->
1207                  </xsl:when>
1208                  <xsl:otherwise>
1209                    <!-- NON REMOVED PACKAGE -->
1210    
1211                    <table class="containertable">
1212                      <tr class="containerrow" valign="top">
1213                        <td class="containercell">
1214                          <!-- LEFT SIDE -->
1215                          <table class="lefttable">
1216                            <xsl:call-template name="general-information" />
1217                            <xsl:call-template name="available-versions" />
1218                          </table>
1219                          <table class="lefttable">
1220                            <xsl:call-template name="package-files" />
1221                            <xsl:call-template name="binary-packages" />
1222                          </table>
1223                          <!-- END LEFT SIDE -->
1224                          </td><td class="containercell">
1225                          <!-- RIGHT SIDE -->
1226                          <table class="righttable">
1227                            <xsl:call-template name="todo-list" />
1228                            <xsl:call-template name="problems" />
1229                          </table>
1230                          <table class="righttable">
1231                            <xsl:call-template name="testing-status" />
1232                            <xsl:call-template name="static-info" />
1233                            <xsl:call-template name="latest-news" />
1234                          </table>
1235                          <!-- END RIGHT SIDE -->
1236                          </td><td class="containercell">
1237                          <table class="lefttable">
1238                            <xsl:call-template name="bugs-count" />
1239                            <xsl:call-template name="pts-subscription" />
1240                          </table>
1241                          <table class="lefttable">
1242                            <xsl:call-template name="other-links" />
1243                          </table>
1244                          <table class="lefttable" id="ubuntubox">
1245                            <xsl:call-template name="ubuntu" />
1246                          </table>
1247                      </td></tr>
1248                    </table>
1249    
1250                    <!-- END NON REMOVED PACKAGE -->
1251                  </xsl:otherwise>
1252                </xsl:choose>
1253    
1254                <hr/>
1255                <div class="footer">
1256                  <table width="100%">
1257                    <tr>
1258                      <td>
1259                        <p>
1260                          <em><a href="http://www.debian.org">Debian</a> Package
1261                            Tracking System</em> - Copyright 2002-2009 Raphaël
1262                          Hertzog and others.<br/> Report problems to the
1263                          <a href="http://bugs.debian.org/qa.debian.org"><tt>qa.debian.org</tt>
1264                            pseudopackage</a> in the <a href="http://bugs.debian.org">Debian
1265                            <acronym title="Bug Tracking System">BTS</acronym></a>.<br/>
1266                          Last modified: <xsl:value-of select="$date"/>.
1267                        </p>
1268                      </td>
1269                      <td>
1270                        <a href="http://validator.w3.org/check?uri=referer"><img
1271                            src="http://www.w3.org/Icons/valid-xhtml10-blue"
1272                            alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>
1273                      </td>
1274                    </tr>
1275                  </table>
1276                </div>
1277              </div>
1278            </body>
1279          </html>
1280        </xsl:template>
1281    
1282  </xsl:stylesheet>  </xsl:stylesheet>

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

  ViewVC Help
Powered by ViewVC 1.1.5