/[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 903 by jeroen, Mon Jan 31 22:52:35 2005 UTC revision 1938 by zack, Sat Aug 9 01:21:23 2008 UTC
# Line 1  Line 1 
1  <?xml version="1.0" encoding="ISO-8859-1" ?>  <?xml version="1.0" encoding="utf-8" ?>
2    
3  <!--  <!--
4  # Copyright 2002-2003 Raphaël Hertzog  # Copyright 2002-2008 Raphaël Hertzog and others
5    # Copyright 2007-2008 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  -->  -->
# Line 13  Line 14 
14  <xsl:param name="package"/>  <xsl:param name="package"/>
15  <xsl:param name="dir"/>  <xsl:param name="dir"/>
16  <xsl:param name="date"/>  <xsl:param name="date"/>
17    <xsl:param name="hasoldstable" select="''"/>
18  <xsl:param name="hasstable" select="''"/>  <xsl:param name="hasstable" select="''"/>
19  <xsl:param name="hastesting" select="''"/>  <xsl:param name="hastesting" select="''"/>
20  <xsl:param name="hasunstable" select="''"/>  <xsl:param name="hasunstable" select="''"/>
21  <xsl:param name="hasexperimental" select="''"/>  <xsl:param name="hasexperimental" select="''"/>
22    <xsl:param name="hasmentors" select="''"/>
23  <xsl:param name="hasother" select="''"/>  <xsl:param name="hasother" select="''"/>
24  <xsl:param name="hass-p-u" select="''"/>  <xsl:param name="hass-p-u" select="''"/>
25  <xsl:param name="hast-p-u" select="''"/>  <xsl:param name="hast-p-u" select="''"/>
26    <xsl:param name="hasoldstable-security" select="''"/>
27  <xsl:param name="hasstable-security" select="''"/>  <xsl:param name="hasstable-security" select="''"/>
28  <xsl:param name="hastesting-security" select="''"/>  <xsl:param name="hastesting-security" select="''"/>
29    <xsl:param name="hassecure-testing" select="''"/>
30    <xsl:param name="hasvolatile" select="''"/>
31  <xsl:param name="hasnews" select="''"/>  <xsl:param name="hasnews" select="''"/>
32  <xsl:param name="hasexcuse" select="''"/>  <xsl:param name="hasexcuse" select="''"/>
33    
34  <xsl:variable name="other" select="document(concat('../base/', $dir, '/other.xml'))/other"/>  <xsl:variable name="other"
35      select="document(concat('../base/', $dir, '/other.xml'))/other"/>
36    <xsl:variable name="low-nmu-emails"
37      select="document('../base/low_threshold_nmu.emails.xml')/emails"/>
38    
39  <!-- Those variables controls the todo and problem item concerning  <!-- Those variables controls the todo and problem item concerning
40       standards-version not being up to date -->       standards-version not being up to date -->
41  <xsl:variable name="lastsv" select="'3.6.1'"/>  <xsl:variable name="lastsv" select="'3.8.0'"/>
42  <xsl:variable name="lastmajorsv" select="'3.'"/>  <xsl:variable name="lastmajorsv" select="'3.'"/>
43    
44    <!-- lintian summary -->
45    <xsl:variable name="lin_errs" select="$other/lintian/@errors" />
46    <xsl:variable name="lin_warns" select="$other/lintian/@warnings" />
47    
48  <!-- Named templates aka functions -->  <!-- Named templates aka functions -->
49    
50    <xsl:template name="mk_lintian_url">
51      <!-- convert maintainer/name to follow lintian.debian.org convention -->
52      <xsl:variable name="lintian_pattern" select="concat('àáèéëêòöøîìùñ~/()&#34; ', &quot;'&quot;)"/>
53      <xsl:variable name="lintian_email" select="translate(maintainer/email, $lintian_pattern, '_____________________')"/>
54    
55      <xsl:text>http://lintian.debian.org/reports/maintainer/</xsl:text>
56      <xsl:value-of select="$lintian_email" />
57      <xsl:text>.html#</xsl:text>
58      <xsl:value-of select="$package" />
59    </xsl:template>
60    
61  <xsl:template name="mirror">  <xsl:template name="mirror">
62    <xsl:choose>    <xsl:text>http://ftp.debian.org/debian</xsl:text>
     <xsl:when test="contains(/source/section, 'non-US')">  
       <xsl:text>http://non-us.debian.org/debian-non-US</xsl:text>  
     </xsl:when>  
     <xsl:otherwise>  
       <xsl:text>http://http.us.debian.org/debian</xsl:text>  
     </xsl:otherwise>  
   </xsl:choose>  
63  </xsl:template>  </xsl:template>
64    
65  <xsl:template name="outputitem">  <xsl:template name="outputitem">
# Line 51  Line 69 
69          <xsl:text>[</xsl:text>          <xsl:text>[</xsl:text>
70          <xsl:value-of select="@date"/>          <xsl:value-of select="@date"/>
71          <xsl:text>] </xsl:text>          <xsl:text>] </xsl:text>
72        </xsl:if><a href="{@url}"><xsl:value-of select="text()"/></a></li>        </xsl:if><a href="{@url}">
73          <xsl:value-of select="text()"/></a><xsl:if test="@from">
74            <xsl:text> (</xsl:text>
75            <xsl:value-of select="@from"/>
76            <xsl:text>)</xsl:text></xsl:if></li>
77      </xsl:when>      </xsl:when>
78      <xsl:otherwise>      <xsl:otherwise>
79        <li><xsl:if test="@date">        <li><xsl:if test="@date">
# Line 63  Line 85 
85    </xsl:choose>    </xsl:choose>
86  </xsl:template>  </xsl:template>
87    
88  <!-- Convert + in %2b for URL escaping ... -->  <!-- Convert + in %2b for URL escaping. Should actually first also do
89    other-to-%xx, especially % to %25... Fortunately, that's rare -->
90  <xsl:template name="escape-name">  <xsl:template name="escape-name">
91    <xsl:param name="text"/>    <xsl:param name="text"/>
92    <xsl:if test="contains($text,'+')">    <xsl:if test="contains($text,'+')">
# Line 78  Line 101 
101    </xsl:if>    </xsl:if>
102  </xsl:template>  </xsl:template>
103    
104    <xsl:variable name="escaped-package">
105      <xsl:call-template name="escape-name">
106        <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
107      </xsl:call-template>
108    </xsl:variable>
109    
110    <!-- Strip epoch -->
111    <xsl:template name="strip-epoch">
112      <xsl:param name="version"/>
113      <xsl:if test="contains($version,':')">
114        <xsl:value-of select="substring-after($version,':')"/>
115      </xsl:if>
116      <xsl:if test="not(contains($version,':'))">
117        <xsl:value-of select="$version"/>
118      </xsl:if>
119    </xsl:template>
120    
121  <!-- All the work is done in a single template -->  <xsl:template name="add-vcs-info">
122  <xsl:template match="source">    <xsl:if test="repository">
123        <tr>
124          <td class="labelcell">
125            <xsl:text>Version Control</xsl:text>
126          </td>
127          <td class="contentcell">
128            <xsl:if test="repository/vcs[@kind='browser']">
129              <a href="{repository/vcs[@kind='browser']/@url}">
130                <xsl:text>browser</xsl:text>
131              </a>
132              <br />
133            </xsl:if>
134            <xsl:if test="repository/vcs[@kind!='browser']">
135              <xsl:text>raw: </xsl:text>
136              <xsl:for-each select="repository/vcs[@kind!='browser']">
137                <xsl:sort select="@kind" />
138                <a href="{@url}">
139                  <xsl:value-of select="@kind" />
140                </a>
141                <xsl:if test="position()!=last()">
142                  <xsl:text>, </xsl:text>
143                </xsl:if>
144              </xsl:for-each>
145            </xsl:if>
146          </td>
147        </tr>
148      </xsl:if>
149    </xsl:template>
150    
151    <!-- Start of html -->  <xsl:template name="add-maintenance-info">
152    <html>    <xsl:param name="email" />
153    <head>    <xsl:variable name="dm">
154    <meta name="ROBOTS" content="NOFOLLOW"/>      <xsl:if test="dm-upload-allowed and string(dm-upload-allowed)='yes'">
155    <link title="Default" rel="stylesheet" href="../common/pts.css"/>        <xsl:text>true</xsl:text>
156    <link title="Standard link rendering" rel="alternate stylesheet" href="../common/pts2.css"/>      </xsl:if>
157    <title>Overview of <xsl:value-of select="$package"/> source package</title>    </xsl:variable>
158    </head>    <xsl:variable name="lownmu">
159    <body>      <xsl:if test="$low-nmu-emails/email[text()=$email]">
160          <xsl:text>true</xsl:text>
161    <form method="get" action="/common/index.html" style="float: right;">      </xsl:if>
162    <!-- this link should make lynx/links happy [FG] -->    </xsl:variable>
   Jump to package (<a href="/">home page</a>): <br/>  
   <input type="text" name="src" value=""/>  
   </form>  
   <h1>Overview of <xsl:value-of select="$package"/> source package</h1>  
163    
164    <table class="containertable">    <xsl:if test="string($dm)!='' or string($lownmu)!=''">
165    <tr class="containerrow" valign="top">      <tr>
166    <td class="containercell">        <td class="labelcell">
167    <!-- LEFT SIDE -->          <xsl:text>Maintenance info</xsl:text>
168    <table class="lefttable">        </td>
169          <td class="contentcell">
170    
171            <xsl:if test="string($dm)!=''">
172              <span class="dm-tag">
173                <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>
174              </span>
175              <xsl:text> </xsl:text>
176            </xsl:if>
177    
178            <xsl:if test="string($lownmu)!=''">
179              <span class="lownmu-tag">
180                <a href="http://wiki.debian.org/LowThresholdNmu"><acronym
181                    title="maintainer agrees with Low Threshold NMU, see wiki page for details">LowNMU</acronym></a>
182              </span>
183              <xsl:text> </xsl:text>
184            </xsl:if>
185          </td>
186        </tr>
187      </xsl:if>
188    </xsl:template>
189    
190    <xsl:template name="output-news">
191      <xsl:param name="news" />
192    
193      <xsl:if test="count($news)>0 and string($news)!=''">
194        <tr class="titlerow">
195        <td class="titlecell">
196          Latest news <a class="feedlink" href="{$package}/news.rss20.xml">RSS</a>
197        </td></tr>
198        <tr class="normalrow">
199        <td class="contentcell2">
200        <ul id="news-list"><xsl:copy-of select="$news"/></ul>
201        </td>
202        </tr>
203      </xsl:if>
204    </xsl:template>
205    
206    <xsl:template name="output-static">
207      <xsl:param name="static" />
208    
209      <xsl:if test="count($static)>0 and string($static)!=''">
210        <tr class="titlerow">
211        <td class="titlecell">
212        Static Information
213        </td></tr>
214        <tr class="normalrow">
215        <td class="contentcell2">
216        <ul><xsl:copy-of select="$static"/></ul>
217        </td>
218        </tr>
219      </xsl:if>
220    </xsl:template>
221    
222    <xsl:template name="categorize-srcfile">
223      <!-- used to recognize (and tag afterwards) well-known type of source package
224        components: dsc, diff, orig -->
225      <xsl:choose>
226        <xsl:when test="substring(filename,string-length(filename)-2, 3)='dsc'">
227          <xsl:text>dsc</xsl:text>
228        </xsl:when>
229        <xsl:when test="substring(filename,string-length(filename)-6, 7)='diff.gz'">
230          <xsl:text>diff</xsl:text>
231        </xsl:when>
232        <xsl:when test="substring(filename,string-length(filename)-5, 3)='tar'">
233          <xsl:text>orig</xsl:text>
234        </xsl:when>
235        <xsl:otherwise><xsl:text></xsl:text></xsl:otherwise>
236      </xsl:choose>
237    </xsl:template>
238    
239    <xsl:template name="maintainer-email">
240      <xsl:param name="email" />
241      <a class="email" href="mailto:{$email}">
242        <img alt="[email]" src="../common/email.png" title="email" />
243      </a>
244    </xsl:template>
245    
246    <xsl:template name="general-information">
247    <tr class="titlerow">    <tr class="titlerow">
248    <td class="titlecell" colspan="2">      <td class="titlecell" colspan="2">
249    General Information        General information
250    </td></tr>      </td>
   <tr class="normalrow">  
   <td class="labelcell">Last version</td>  
   <td class="contentcell"><xsl:value-of select="version"/></td>  
251    </tr>    </tr>
   <xsl:if test="@release!='unstable'">  
252    <tr class="normalrow">    <tr class="normalrow">
253    <td class="labelcell">Distribution</td>      <td class="labelcell">Latest version</td>
254    <td class="contentcell"><xsl:value-of select="@release"/></td>      <td class="contentcell"><xsl:value-of select="version"/></td>
255    </tr>    </tr>
256      <xsl:if test="@release!='unstable'">
257        <tr class="normalrow">
258          <td class="labelcell">Distribution</td>
259          <td class="contentcell"><xsl:value-of select="@release"/></td>
260        </tr>
261    </xsl:if>    </xsl:if>
262    <tr class="normalrow">    <tr class="normalrow">
263    <td class="labelcell">Maintainer</td>      <td class="labelcell">Maintainer</td>
264    <td class="contentcell">      <td class="contentcell">
265    <xsl:element name="a">        <xsl:element name="a">
266      <xsl:attribute name="href">          <xsl:attribute name="href">
267        <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>            <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
268        <xsl:call-template name="escape-name">            <xsl:call-template name="escape-name">
269          <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>
270              </xsl:call-template>
271            </xsl:attribute>
272            <xsl:value-of select="maintainer/name"/>
273          </xsl:element>
274          <xsl:text> </xsl:text>
275          <xsl:call-template name="maintainer-email">
276            <xsl:with-param name="email" select="maintainer/email" />
277        </xsl:call-template>        </xsl:call-template>
278      </xsl:attribute>      </td>
     <xsl:value-of select="maintainer/name"/>  
   </xsl:element>  
   [<a class="email" href="mailto:{maintainer/email}">mail</a>]  
   </td>  
279    </tr>    </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">  
280    <xsl:if test="uploaders">    <xsl:if test="uploaders">
281      <xsl:for-each select="uploaders/item">      <tr class="normalrow">
282        <a class="email" href="http://qa.debian.org/developer.php?login={email}"><xsl:value-of select="name"/></a> [<a class="email" href="mailto:{email}">mail</a>]<br/>        <td class="labelcell"><a href="http://www.debian.org/doc/manuals/developers-reference/ch-pkgs.en.html#s-collaborative-maint">Uploaders</a></td>
283      </xsl:for-each>        <td class="contentcell">
284    </xsl:if>          <xsl:for-each select="uploaders/item">
285    <xsl:if test="not(uploaders)">            <xsl:element name="a">
286      <a class="none" title="You should find some co-maintainers ..." name="fake">None</a>              <xsl:attribute name="href">
287                  <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
288                  <xsl:call-template name="escape-name">
289                    <xsl:with-param name="text"><xsl:value-of select="email"/></xsl:with-param>
290                  </xsl:call-template>
291                </xsl:attribute>
292                <xsl:value-of select="name"/>
293              </xsl:element>
294              <xsl:text> </xsl:text>
295              <xsl:call-template name="maintainer-email">
296                <xsl:with-param name="email" select="email" />
297              </xsl:call-template>
298              <br />
299            </xsl:for-each>
300            <xsl:call-template name='add-maintenance-info'>
301              <xsl:with-param name="email" select="maintainer/email" />
302            </xsl:call-template>
303        </td></tr>
304    </xsl:if>    </xsl:if>
   </td></tr>  
305    <tr class="normalrow">    <tr class="normalrow">
306    <td class="labelcell">Standards-Version</td>      <td class="labelcell">Standards version</td>
307    <td class="contentcell"><xsl:value-of select="standards-version"/></td>      <td class="contentcell"><xsl:value-of select="standards-version"/></td>
308    </tr>    </tr>
309    <tr class="normalrow">    <tr class="normalrow">
310    <td class="labelcell">Priority &amp; Section</td>      <td class="labelcell">Priority</td>
311    <td class="contentcell"><xsl:value-of select="priority"/> - <xsl:value-of select="section"/></td>      <td class="contentcell"> <xsl:value-of select="priority"/> </td>
312    </tr>    </tr>
   <xsl:if test="architecture!='any' and architecture!='all'">  
313    <tr class="normalrow">    <tr class="normalrow">
314    <td class="labelcell">Architecture</td>      <td class="labelcell">Section</td>
315    <td class="contentcell"><xsl:value-of select="architecture"/></td>      <td class="contentcell"> <xsl:value-of select="section"/> </td>
316    </tr>    </tr>
317      <xsl:call-template name='add-vcs-info' />
318      <xsl:if test="architecture!='any' and architecture!='all'">
319        <tr class="normalrow">
320          <td class="labelcell">Architecture</td>
321          <td class="contentcell"><xsl:value-of select="architecture"/></td>
322        </tr>
323    </xsl:if>    </xsl:if>
324    </xsl:template>
   <tr class="titlerow">  
   <td class="titlecell" colspan="2">  
   Bugs Count  
   </td></tr>  
   <tr class="normalrow">  
   <td class="labelcell">All bugs</td>  
   <td class="contentcell">  
   <xsl:element name="a">  
     <xsl:attribute name="href">  
       <xsl:text>http://bugs.debian.org/src:</xsl:text>  
       <xsl:call-template name="escape-name">  
         <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
       </xsl:call-template>  
     </xsl:attribute>  
     <xsl:if test="$hasother">  
       <xsl:value-of select="$other/bugs/@all"/>  
     </xsl:if>  
   </xsl:element>  
   </td>  
   </tr>  
   <tr class="normalrow">  
   <td class="labelcell">Release Critical</td>  
   <td class="contentcell">  
   <xsl:element name="a">  
     <xsl:attribute name="href">  
       <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>  
       <xsl:call-template name="escape-name">  
         <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
       </xsl:call-template>  
       <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=critical&amp;sev-inc=grave&amp;sev-inc=serious</xsl:text>  
     </xsl:attribute>  
     <xsl:if test="$hasother">  
       <xsl:value-of select="$other/bugs/@rc"/>  
     </xsl:if>  
   </xsl:element>  
   </td>  
   </tr>  
   <tr class="normalrow">  
   <td class="labelcell">Important and Normal</td>  
   <td class="contentcell">  
   <xsl:element name="a">  
     <xsl:attribute name="href">  
       <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>  
       <xsl:call-template name="escape-name">  
         <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
       </xsl:call-template>  
       <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=important&amp;sev-inc=normal</xsl:text>  
     </xsl:attribute>  
     <xsl:if test="$hasother">  
       <xsl:value-of select="$other/bugs/@normal"/>  
     </xsl:if>  
   </xsl:element>  
   </td>  
   </tr>  
   <tr class="normalrow">  
   <td class="labelcell">Minor and Wishlist</td>  
   <td class="contentcell">  
   <xsl:element name="a">  
     <xsl:attribute name="href">  
       <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>  
       <xsl:call-template name="escape-name">  
         <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
       </xsl:call-template>  
       <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=minor&amp;sev-inc=wishlist</xsl:text>  
     </xsl:attribute>  
     <xsl:if test="$hasother">  
       <xsl:value-of select="$other/bugs/@wishlist"/>  
     </xsl:if>  
   </xsl:element>  
   </td>  
   </tr>  
   <tr class="normalrow">  
   <td class="labelcell">Fixed and Pending</td>  
   <td class="contentcell">  
   <xsl:element name="a">  
     <xsl:attribute name="href">  
       <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>  
       <xsl:call-template name="escape-name">  
         <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
       </xsl:call-template>  
       <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>  
     </xsl:attribute>  
     <xsl:if test="$hasother">  
       <xsl:value-of select="$other/bugs/@fixed"/>  
     </xsl:if>  
   </xsl:element>  
   </td>  
   </tr>  
325    
326    <xsl:template name="bugs-count">
327    <tr class="titlerow">    <tr class="titlerow">
328    <td class="titlecell" colspan="2">      <td class="titlecell" colspan="2">
329    Subscription - <a class="titlelink" href="http://www.debian.org/doc/manuals/developers-reference/ch-resources.en.html#s-pkg-tracking-system">Package Tracking System</a>        Bugs count
330    </td></tr>      </td>
331    <tr class="normalrow">    </tr>
332    <td class="labelcell">Subscribers count</td>    <tr class="normalrow" id="bugs_all">
333    <td class="contentcell"><xsl:if test="$hasother">      <td class="labelcell">All bugs
334      <xsl:value-of select="$other/pts/@count"/>         (<xsl:element name="a">
335    </xsl:if></td>          <xsl:attribute name="href">
336    </tr>            <xsl:text>http://people.debian.org/~glandium/bts/</xsl:text>
337    <tr class="normalrow">            <xsl:value-of select="substring($package, 1, 1)"/>
338    <td class="contentcell" colspan="2">            <xsl:text>/</xsl:text>
339    <form method="post" action="/cgi-bin/pts.cgi">            <xsl:call-template name="escape-name">
340      <input type="hidden" name="package" value="{$package}"/>              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
341      <select name="what">            </xsl:call-template>
342        <option value="subscribe">Subscribe</option>            <xsl:text>.png</xsl:text>
343        <option value="unsubscribe">Unsubscribe</option>          </xsl:attribute>
344        <option value="advanced">Advanced mode</option>          <xsl:text>graph</xsl:text>
345      </select>        </xsl:element>
346      <input type="text" name="email" size="15" value="your email" onFocus="if(email.value=='your email'){{email.value=''}}"/>        <xsl:text>)</xsl:text>
347      <input type="submit" name="submit" value="Send"/>      </td>
348    </form>      <td class="contentcell">
349    </td>        <xsl:element name="a">
350            <xsl:attribute name="href">
351              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=no&amp;src=</xsl:text>
352              <xsl:call-template name="escape-name">
353                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
354              </xsl:call-template>
355            </xsl:attribute>
356            <xsl:if test="$hasother">
357              <xsl:value-of select="$other/bugs/@all"/>
358            </xsl:if>
359          </xsl:element>
360          <xsl:if test="$hasother and $other/bugs/@all_m">
361            (<xsl:element name="a">
362              <xsl:attribute name="href">
363                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=yes&amp;src=</xsl:text>
364                <xsl:call-template name="escape-name">
365                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
366                </xsl:call-template>
367              </xsl:attribute>
368              <xsl:value-of select="$other/bugs/@all_m"/>
369            </xsl:element>)
370          </xsl:if>
371        </td>
372    </tr>    </tr>
373      <tr class="normalrow" id="bugs_rc">
374    <tr class="titlerow">      <td class="labelcell"><span class="indented"><acronym title="Release Critical">RC</acronym> bugs</span></td>
375    <td class="titlecell" colspan="2">      <td class="contentcell">
   Binary Package(s)  
   </td></tr>  
   <tr class="normalrow">  
   <td class="normalcell" colspan="2" style="text-align: left">  
   <xsl:for-each select="binary/item">  
     <xsl:sort select="text()"/>  
     <xsl:variable name="pkg" select="text()"/>  
     <li>  
     <a href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>  
     <span style="font-size: 70%">  
     (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:  
   
376        <xsl:element name="a">        <xsl:element name="a">
         <xsl:attribute name="title">critical, grave and serious</xsl:attribute>  
377          <xsl:attribute name="href">          <xsl:attribute name="href">
378            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
379            <xsl:call-template name="escape-name">            <xsl:call-template name="escape-name">
380              <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
381            </xsl:call-template>            </xsl:call-template>
382            <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=critical&amp;sev-inc=grave&amp;sev-inc=serious</xsl:text>            <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=critical&amp;sev-inc=grave&amp;sev-inc=serious&amp;repeatmerged=no</xsl:text>
383          </xsl:attribute>          </xsl:attribute>
384          <xsl:value-of select="$other/bugs/item[@name=$pkg]/@rc"/>          <xsl:if test="$hasother">
385        </xsl:element>,            <xsl:value-of select="$other/bugs/@rc"/>
386            </xsl:if>
387          </xsl:element>
388          <xsl:if test="$hasother and $other/bugs/@rc_m">
389            (<xsl:element name="a">
390              <xsl:attribute name="href">
391                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
392                <xsl:call-template name="escape-name">
393                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
394                </xsl:call-template>
395                <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>
396              </xsl:attribute>
397              <xsl:value-of select="$other/bugs/@rc_m"/>
398            </xsl:element>)
399          </xsl:if>
400        </td>
401      </tr>
402      <tr class="normalrow" id="bugs_in">
403        <td class="labelcell"><span class="indented"><acronym title="Important and Normal">I&amp;N</acronym> bugs</span></td>
404        <td class="contentcell">
405        <xsl:element name="a">        <xsl:element name="a">
         <xsl:attribute name="title">important and normal</xsl:attribute>  
406          <xsl:attribute name="href">          <xsl:attribute name="href">
407          <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
408          <xsl:call-template name="escape-name">            <xsl:call-template name="escape-name">
409            <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
410          </xsl:call-template>            </xsl:call-template>
411          <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=important&amp;sev-inc=normal</xsl:text>            <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=important&amp;sev-inc=normal&amp;repeatmerged=no</xsl:text>
412          </xsl:attribute>          </xsl:attribute>
413          <xsl:value-of select="$other/bugs/item[@name=$pkg]/@normal"/>          <xsl:if test="$hasother">
414        </xsl:element>,            <xsl:value-of select="$other/bugs/@normal"/>
415            </xsl:if>
416          </xsl:element>
417          <xsl:if test="$hasother and $other/bugs/@normal_m">
418            (<xsl:element name="a">
419              <xsl:attribute name="href">
420                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
421                <xsl:call-template name="escape-name">
422                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
423                </xsl:call-template>
424                <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>
425              </xsl:attribute>
426              <xsl:value-of select="$other/bugs/@normal_m"/>
427            </xsl:element>)
428          </xsl:if>
429        </td>
430      </tr>
431      <tr class="normalrow" id="bugs_mw">
432        <td class="labelcell"><span class="indented"><acronym title="Minor and Wishlist">M&amp;W</acronym> bugs</span></td>
433        <td class="contentcell">
434        <xsl:element name="a">        <xsl:element name="a">
         <xsl:attribute name="title">wishlist and minor</xsl:attribute>  
435          <xsl:attribute name="href">          <xsl:attribute name="href">
436            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
437            <xsl:call-template name="escape-name">            <xsl:call-template name="escape-name">
438              <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
439            </xsl:call-template>            </xsl:call-template>
440            <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=minor&amp;sev-inc=wishlist</xsl:text>            <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=minor&amp;sev-inc=wishlist&amp;repeatmerged=no</xsl:text>
441          </xsl:attribute>          </xsl:attribute>
442          <xsl:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/>          <xsl:if test="$hasother">
443        </xsl:element>,            <xsl:value-of select="$other/bugs/@wishlist"/>
444            </xsl:if>
445          </xsl:element>
446          <xsl:if test="$hasother and $other/bugs/@wishlist_m">
447            (<xsl:element name="a">
448              <xsl:attribute name="href">
449                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
450                <xsl:call-template name="escape-name">
451                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
452                </xsl:call-template>
453                <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>
454              </xsl:attribute>
455              <xsl:value-of select="$other/bugs/@wishlist_m"/>
456            </xsl:element>)
457          </xsl:if>
458        </td>
459      </tr>
460      <tr class="normalrow" id="bugs_fp">
461        <td class="labelcell"><span class="indented"><acronym title="Fixed and Pending">F&amp;P</acronym> bugs</span></td>
462        <td class="contentcell">
463        <xsl:element name="a">        <xsl:element name="a">
         <xsl:attribute name="title">pending and fixed</xsl:attribute>  
464          <xsl:attribute name="href">          <xsl:attribute name="href">
465            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
466            <xsl:call-template name="escape-name">            <xsl:call-template name="escape-name">
467              <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
468            </xsl:call-template>            </xsl:call-template>
469            <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>            <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=no</xsl:text>
470          </xsl:attribute>          </xsl:attribute>
471          <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>          <xsl:if test="$hasother">
472        </xsl:element>)            <xsl:value-of select="$other/bugs/@fixed"/>
473      </span>          </xsl:if>
474      </li>        </xsl:element>
475    </xsl:for-each>        <xsl:if test="$hasother and $other/bugs/@fixed_m">
476    </td></tr>          (<xsl:element name="a">
477              <xsl:attribute name="href">
478                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
479                <xsl:call-template name="escape-name">
480                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
481                </xsl:call-template>
482                <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=yes</xsl:text>
483              </xsl:attribute>
484              <xsl:value-of select="$other/bugs/@fixed_m"/>
485            </xsl:element>)
486          </xsl:if>
487    
488        </td>
489      </tr>
490    </xsl:template>
491    
492    <xsl:template name="pts-subscription">
493    <tr class="titlerow">    <tr class="titlerow">
494    <td class="titlecell" colspan="2">      <td class="titlecell" colspan="2">
495    Other available versions        <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
496    </td></tr>    </td></tr>
   <xsl:if test="$hasexperimental">  
497    <tr class="normalrow">    <tr class="normalrow">
498    <td class="labelcell">Experimental</td>      <td class="labelcell">Subscribers count</td>
499    <td class="contentcell">      <td class="contentcell"><xsl:if test="$hasother">
500    <xsl:value-of select="document(concat('../base/', $dir, '/experimental.xml'))/source/version"/>          <xsl:value-of select="$other/pts/@count"/>
501    </td>      </xsl:if></td>
502      </tr>
503      <tr class="normalrow">
504        <td class="contentcell" colspan="2">
505          <form method="post" action="/cgi-bin/pts.cgi">
506            <p>
507              <input type="hidden" name="package" value="{$package}"/>
508              <select name="what">
509                <option value="subscribe">Subscribe</option>
510                <option value="unsubscribe">Unsubscribe</option>
511                <option value="advanced">Advanced mode</option>
512              </select>
513              <input type="text" name="email" size="15" value="your email" onFocus="if(email.value=='your email'){{email.value=''}}"/>
514              <input type="submit" name="submit" value="Send"/>
515            </p>
516          </form>
517        </td>
518    </tr>    </tr>
519    </xsl:template>
520    
521    <xsl:template name="binary-packages">
522      <tr class="titlerow">
523        <td class="titlecell" colspan="2">
524          Binary packages
525      </td></tr>
526      <tr class="normalrow">
527        <td class="normalcell" colspan="2" style="text-align: left">
528          <ul>
529            <xsl:for-each select="binary/item">
530              <xsl:sort select="text()"/>
531              <xsl:variable name="pkg" select="text()"/>
532              <li class="binpkg">
533                <a class="binpkg" href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>
534                <span style="font-size: 70%">
535                  (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:
536    
537                  <xsl:element name="a">
538                    <xsl:attribute name="title">critical, grave and serious</xsl:attribute>
539                    <xsl:attribute name="href">
540                      <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
541                      <xsl:call-template name="escape-name">
542                        <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
543                      </xsl:call-template>
544                      <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>
545                    </xsl:attribute>
546                    <xsl:value-of select="$other/bugs/item[@name=$pkg]/@rc"/>
547                  </xsl:element>,
548    
549                  <xsl:element name="a">
550                    <xsl:attribute name="title">important and normal</xsl:attribute>
551                    <xsl:attribute name="href">
552                      <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
553                      <xsl:call-template name="escape-name">
554                        <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
555                      </xsl:call-template>
556                      <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>
557                    </xsl:attribute>
558                    <xsl:value-of select="$other/bugs/item[@name=$pkg]/@normal"/>
559                  </xsl:element>,
560    
561                  <xsl:element name="a">
562                    <xsl:attribute name="title">wishlist and minor</xsl:attribute>
563                    <xsl:attribute name="href">
564                      <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
565                      <xsl:call-template name="escape-name">
566                        <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
567                      </xsl:call-template>
568                      <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>
569                    </xsl:attribute>
570                    <xsl:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/>
571                  </xsl:element>,
572    
573                  <xsl:element name="a">
574                    <xsl:attribute name="title">pending and fixed</xsl:attribute>
575                    <xsl:attribute name="href">
576                      <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
577                      <xsl:call-template name="escape-name">
578                        <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
579                      </xsl:call-template>
580                      <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
581                    </xsl:attribute>
582                    <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>
583                  </xsl:element>)
584                </span>
585              </li>
586            </xsl:for-each>
587      </ul></td></tr>
588    </xsl:template>
589    
590    <xsl:template name="available-versions">
591      <tr class="titlerow">
592        <td class="titlecell" colspan="2">
593          Available versions
594      </td></tr>
595    
596      <!-- oldstable -->
597      <xsl:if test="$hasoldstable">
598        <tr class="normalrow">
599          <td class="labelcell"><a href="http://www.debian.org/releases/sarge/">Oldstable</a></td>
600          <td class="contentcell">
601            <a href="http://packages.debian.org/source/oldstable/{$package}"><xsl:value-of
602                select="document(concat('../base/', $dir, '/oldstable.xml'))/source/version"/></a>
603          </td>
604        </tr>
605      </xsl:if>
606      <xsl:if test="$hasoldstable-security">
607        <tr class="normalrow">
608          <td class="labelcell"><small>Oldstable Security Updates</small></td>
609          <td class="contentcell">
610            <xsl:value-of select="document(concat('../base/', $dir, '/oldstable-security.xml'))/source/version"/>
611          </td>
612        </tr>
613      </xsl:if>
614    
615      <!-- stable -->
616      <xsl:if test="$hasstable">
617        <tr class="normalrow">
618          <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>
619          <td class="contentcell">
620            <a href="http://packages.debian.org/source/stable/{$package}"><xsl:value-of
621                select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/></a>
622          </td>
623        </tr>
624    </xsl:if>    </xsl:if>
625    <xsl:if test="$hasstable-security">    <xsl:if test="$hasstable-security">
626    <tr class="normalrow">      <tr class="normalrow">
627    <td class="labelcell">Security Updates (stable)</td>        <td class="labelcell"><small>Stable Security Updates</small></td>
628    <td class="contentcell">        <td class="contentcell">
629    <xsl:value-of select="document(concat('../base/', $dir, '/stable-security.xml'))/source/version"/>          <xsl:value-of select="document(concat('../base/', $dir, '/stable-security.xml'))/source/version"/>
630    </td>        </td>
631    </tr>      </tr>
632    </xsl:if>    </xsl:if>
633    <xsl:if test="$hastesting-security">    <xsl:if test="$hass-p-u">
634    <tr class="normalrow">      <tr class="normalrow">
635    <td class="labelcell">Security Updates (testing)</td>        <td class="labelcell"><small>Stable Proposed Updates</small></td>
636    <td class="contentcell">        <td class="contentcell">
637    <xsl:value-of select="document(concat('../base/', $dir, '/testing-security.xml'))/source/version"/>          <xsl:value-of select="document(concat('../base/', $dir, '/s-p-u.xml'))/source/version"/>
638    </td>        </td>
639    </tr>      </tr>
640    </xsl:if>    </xsl:if>
641    
642      <!-- testing -->
643    <xsl:if test="$hastesting">    <xsl:if test="$hastesting">
644    <tr class="normalrow">      <tr class="normalrow">
645    <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>
646    <td class="contentcell">        <td class="contentcell">
647    <xsl:value-of select="document(concat('../base/', $dir, '/testing.xml'))/source/version"/>          <a href="http://packages.debian.org/source/testing/{$package}"><xsl:value-of
648    </td>              select="document(concat('../base/', $dir, '/testing.xml'))/source/version"/></a>
649    </tr>        </td>
650        </tr>
651      </xsl:if>
652      <xsl:if test="$hastesting-security">
653        <tr class="normalrow">
654          <td class="labelcell"><small>Testing Security Updates</small></td>
655          <td class="contentcell">
656            <xsl:value-of select="document(concat('../base/', $dir, '/testing-security.xml'))/source/version"/>
657          </td>
658        </tr>
659    </xsl:if>    </xsl:if>
660    <xsl:if test="$hast-p-u">    <xsl:if test="$hast-p-u">
661    <tr class="normalrow">      <tr class="normalrow">
662    <td class="labelcell">Testing Proposed Updates</td>        <td class="labelcell"><small>Testing Proposed Updates</small></td>
663    <td class="contentcell">        <td class="contentcell">
664    <xsl:value-of select="document(concat('../base/', $dir, '/t-p-u.xml'))/source/version"/>          <xsl:value-of select="document(concat('../base/', $dir, '/t-p-u.xml'))/source/version"/>
665    </td>        </td>
666    </tr>      </tr>
667    </xsl:if>    </xsl:if>
668    <xsl:if test="$hasstable">  
669    <tr class="normalrow">    <!-- unstable -->
670    <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>    <xsl:if test="$hasunstable">
671    <td class="contentcell">      <tr class="normalrow">
672    <xsl:value-of select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/>        <td class="labelcell">Unstable</td>
673    </td>        <td class="contentcell">
674    </tr>          <a href="http://packages.debian.org/source/unstable/{$package}"><xsl:value-of
675                select="document(concat('../base/', $dir, '/unstable.xml'))/source/version"/></a>
676          </td>
677        </tr>
678    </xsl:if>    </xsl:if>
679    <xsl:if test="$hass-p-u">  
680    <tr class="normalrow">    <!-- experimental -->
681    <td class="labelcell">Stable Proposed Updates</td>    <xsl:if test="$hasexperimental">
682    <td class="contentcell">      <tr class="normalrow">
683    <xsl:value-of select="document(concat('../base/', $dir, '/s-p-u.xml'))/source/version"/>        <td class="labelcell">Experimental</td>
684    </td>        <td class="contentcell">
685    </tr>          <a href="http://packages.debian.org/source/experimental/{$package}"><xsl:value-of
686                select="document(concat('../base/', $dir, '/experimental.xml'))/source/version"/></a>
687          </td>
688        </tr>
689    </xsl:if>    </xsl:if>
690    
691      <!-- secure-testing -->
692      <xsl:if test="$hassecure-testing">
693        <tr class="normalrow">
694          <td class="labelcell">Secure testing</td>
695          <td class="contentcell">
696            <xsl:value-of select="document(concat('../base/', $dir, '/secure-testing.xml'))/source/version"/>
697          </td>
698        </tr>
699      </xsl:if>
700    
701      <!-- volatile -->
702      <xsl:if test="$hasvolatile">
703        <tr class="normalrow">
704          <td class="labelcell">Volatile</td>
705          <td class="contentcell">
706            <xsl:value-of select="document(concat('../base/', $dir, '/volatile.xml'))/source/version"/>
707          </td>
708        </tr>
709      </xsl:if>
710    </xsl:template>
711    
712    <xsl:template name="ubuntu">
713      <!-- Patches list [FG] -->
714      <xsl:if test="$other/@ubuntu='yes'">
715        <tr class="titlerow">
716          <td class="titlecell" colspan="2">
717            Ubuntu
718        </td></tr>
719        <tr>
720          <td class="contentcell" colspan="2" style="text-align: left">
721            <ul>
722                <li>
723                        Version: <a href="{$other/ubuntu/@url}"><xsl:value-of select="$other/ubuntu/@version"/></a>
724                </li>
725              <xsl:if test="$other/ubuntu/patch">
726                <li>
727                        <a href="{$other/ubuntu/patch/@url}">Patch for version <xsl:value-of select="$other/ubuntu/patch/@version"/></a>
728                </li>
729              </xsl:if>
730              <xsl:if test="$other/ubuntu/bugs">
731                <li>
732                        <a href="{$other/ubuntu/bugs/@url}"><xsl:value-of select="$other/ubuntu/bugs/@count"/> open bugs</a>
733                </li>
734              </xsl:if>
735            </ul>
736          </td>
737        </tr>
738      </xsl:if>
739    </xsl:template>
740    
741    <xsl:template name="other-links">
742    <tr class="titlerow">    <tr class="titlerow">
743    <td class="titlecell" colspan="2">      <td class="titlecell" colspan="2">
744    Other links        Other links
745    </td></tr>    </td></tr>
746    <tr>    <tr>
747    <td class="contentcell" colspan="2" style="text-align: left">      <td class="contentcell" colspan="2" style="text-align: left">
748    <xsl:if test="architecture!='all'">        <ul>
749      <li>          <xsl:if test="homepage">
750        <xsl:element name="a">            <li> <a href="{homepage}">Upstream homepage</a> </li>
751          <xsl:attribute name="href">          </xsl:if>
752            <xsl:text>http://buildd.debian.org/build.php?pkg=</xsl:text>          <li>
753            <xsl:call-template name="escape-name">            <xsl:element name="a">
754              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>              <xsl:attribute name="href">
755            </xsl:call-template>                <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
756          </xsl:attribute>                <xsl:value-of select="directory"/>
757          <xsl:text>Buildd logs</xsl:text>                <xsl:text>/current/changelog</xsl:text>
758        </xsl:element>              </xsl:attribute>
759      </li>              <xsl:text>Changelog</xsl:text>
760    </xsl:if>            </xsl:element>
761    <!-- DISABLED until ddtp.debian.org is back up            /
762      <li>            <xsl:element name="a">
763        <xsl:element name="a">              <xsl:attribute name="href">
764          <xsl:attribute name="href">                <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
765            <xsl:text>http://ddtp.debian.org/stats/pdesc/report.cgi?package=</xsl:text>                <xsl:value-of select="directory"/>
766            <xsl:call-template name="escape-name">                <xsl:text>/current/copyright</xsl:text>
767              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>              </xsl:attribute>
768            </xsl:call-template>              <xsl:text>Copyright</xsl:text>
769            <xsl:text>&amp;lang=all&amp;type=src-drvbin&amp;subword=0</xsl:text>            </xsl:element>
770          </xsl:attribute>          </li>
771          Description's translations (DDTP)          <xsl:if test="architecture!='all'">
772        </xsl:element>            <li>
773      </li>              <xsl:text>Buildd: </xsl:text>
774    <xsl:if test="$other/@debconf='yes'">              <a href="http://buildd.debian.org/pkg.cgi?pkg={$escaped-package}"
775      <li>                title="buildd.debian.org build logs">logs</a>
776        <xsl:element name="a">              <xsl:text>, </xsl:text>
777          <xsl:attribute name="href">              <!-- <a href="http://people.debian.org/~igloo/status.php?packages={$escaped-package}"
778            <xsl:text>http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&amp;package=</xsl:text>                title="igloo's build logs on people.debian.org">more</a> -->
779            <xsl:call-template name="escape-name">              <a href="http://buildd.debian.org/~jeroen/status/package.php?p={$escaped-package}"
780              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>                title="jeroen's build logs on buildd.debian.org">more</a>
781            </xsl:call-template>              <xsl:text>, </xsl:text>
782          </xsl:attribute>              <a href="http://experimental.debian.net/build.php?pkg={$escaped-package}"
783          Debconf templates's translations (DDTP)                title="experimental.debian.net build logs">exp</a>
784        </xsl:element>              <xsl:text>, </xsl:text>
785      </li>              <a href="http://buildd.debian-ports.org/status/package.php?p={$escaped-package}"
786    </xsl:if>                title="debian ports build logs">ports</a>
787    -->            </li>
788    <xsl:if test="$hasunstable and $other/debcheck/@unstable='yes'">          </xsl:if>
789      <li>          <!-- DISABLED until ddtp.debian.org is back up
790        <xsl:element name="a">          <li>
791          <xsl:attribute name="href">            <xsl:element name="a">
792            <xsl:text>http://qa.debian.org/debcheck.php?dist=unstable&amp;package=</xsl:text>              <xsl:attribute name="href">
793            <xsl:call-template name="escape-name">                <xsl:text>http://ddtp.debian.org/stats/pdesc/report.cgi?package=</xsl:text>
794              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>                <xsl:call-template name="escape-name">
795            </xsl:call-template>                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
796          </xsl:attribute>                </xsl:call-template>
797          <xsl:text>Debcheck on unstable</xsl:text>                <xsl:text>&amp;lang=all&amp;type=src-drvbin&amp;subword=0</xsl:text>
798        </xsl:element>              </xsl:attribute>
799      </li>              Description's translations (DDTP)
800    </xsl:if>            </xsl:element>
801    <xsl:if test="$hastesting and $other/debcheck/@testing='yes'">          </li>
802      <li>          <xsl:if test="$other/@debconf='yes'">
803        <xsl:element name="a">            <li>
804          <xsl:attribute name="href">              <xsl:element name="a">
805            <xsl:text>http://qa.debian.org/debcheck.php?dist=testing&amp;package=</xsl:text>                <xsl:attribute name="href">
806            <xsl:call-template name="escape-name">                  <xsl:text>http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&amp;package=</xsl:text>
807              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>                  <xsl:call-template name="escape-name">
808            </xsl:call-template>                    <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
809          </xsl:attribute>                  </xsl:call-template>
810          <xsl:text>Debcheck on testing</xsl:text>                </xsl:attribute>
811        </xsl:element>                Debconf templates's translations (DDTP)
812      </li>              </xsl:element>
813    </xsl:if>            </li>
814    <xsl:if test="$hasstable and $other/debcheck/@stable='yes'">          </xsl:if>
815      <li>          -->
816        <xsl:element name="a">          <xsl:if test="($hasunstable and $other/debcheck/@unstable='yes')
817          <xsl:attribute name="href">            or ($hastesting and $other/debcheck/@testing='yes')
818            <xsl:text>http://qa.debian.org/debcheck.php?dist=stable&amp;package=</xsl:text>            or ($hasstable and $other/debcheck/@stable='yes')">
819            <xsl:call-template name="escape-name">            <li>
820              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>              Debcheck on:
821            </xsl:call-template>              <xsl:if test="$hasunstable">
822          </xsl:attribute>                <xsl:text> </xsl:text>
823          <xsl:text>Debcheck on stable</xsl:text>                <a href="http://qa.debian.org/debcheck.php?dist=unstable&amp;package={$escaped-package}">unstable</a>
824        </xsl:element>              </xsl:if>
825      </li>              <xsl:if test="$hastesting">
826    </xsl:if>                <xsl:text> </xsl:text>
827    <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->                <a href="http://qa.debian.org/debcheck.php?dist=testing&amp;package={$escaped-package}">testing</a>
828                                <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-/()&#34; ', &quot;'&quot;)"/>              </xsl:if>
829    <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '____________________')"/>              <xsl:if test="$hasstable">
830      <li><a href="http://lintian.debian.org/reports/m{$_name}.html#{$package}">Lintian report</a></li>                <xsl:text> </xsl:text>
831                  <a href="http://qa.debian.org/debcheck.php?dist=stable&amp;package={$escaped-package}">stable</a>
832    </td>              </xsl:if>
833              </li>
834            </xsl:if>
835            <xsl:if test="$other/@lintian='yes'">
836              <xsl:variable name="lintian_url"><xsl:call-template name="mk_lintian_url" /></xsl:variable>
837              <li>
838                <a href="{$lintian_url}">Lintian report</a>
839                <xsl:if test="$lin_errs + $lin_warns > 0">
840                  <xsl:text> </xsl:text>
841                  <small><span title="(errors, warnings)">(<xsl:value-of select="$lin_errs" />,
842                      <xsl:value-of select="$lin_warns" />)</span></small>
843                </xsl:if>
844              </li>
845            </xsl:if>
846            <li>
847              <a href="http://qa.debian.org/developer.php?popcon={$escaped-package}">Popcon stats</a>
848            </li>
849            <xsl:if test="$other/@svnbuildstat='yes'">
850              <li>
851                <a href="http://svnbuildstat.debian.net/packages/info/{$escaped-package}">Svnbuildstat</a>
852              </li>
853            </xsl:if>
854          </ul>
855        </td>
856    </tr>    </tr>
857    </xsl:template>
858    
859    <xsl:template name="package-files">
860    <tr class="titlerow">    <tr class="titlerow">
861    <td class="titlecell" colspan="2">      <td class="titlecell" colspan="2">
862    <xsl:element name="a">        Source package
     <xsl:attribute name="class">  
       <xsl:text>titlelink</xsl:text>  
     </xsl:attribute>  
     <xsl:attribute name="href">  
       <xsl:call-template name="mirror"/>  
       <xsl:text>/</xsl:text>  
       <xsl:value-of select="directory"/>  
       <xsl:text>/</xsl:text>  
     </xsl:attribute>  
     <xsl:text>Source files</xsl:text>  
   </xsl:element>  
   </td></tr>  
   <tr class="normalrow">  
   <td class="normalcell" colspan="2" style="text-align: left">  
   <xsl:for-each select="files/item">  
     <li>  
     <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="size"/>  
         <xsl:text> bytes</xsl:text>  
       </xsl:attribute>  
       <xsl:value-of select="filename"/>  
     </xsl:element>  
     </li>  
   </xsl:for-each>  
863    </td></tr>    </td></tr>
864      <tr class="titlerow">
865    </table>      <td class="labelcell">
866    <!-- END LEFT SIDE -->        <xsl:element name="a">
867    </td><td class="containercell">          <xsl:attribute name="href">
868    <!-- RIGHT SIDE -->            <xsl:call-template name="mirror"/>
869    <table class="righttable">            <xsl:text>/</xsl:text>
870              <xsl:value-of select="directory"/>
871              <xsl:text>/</xsl:text>
872            </xsl:attribute>
873            <xsl:text>Files</xsl:text>
874          </xsl:element>
875        </td>
876        <td class="contentcell" id="src_files">
877          <ul>
878            <xsl:for-each select="files/item">
879              <xsl:variable name="filetype">
880                <xsl:call-template name="categorize-srcfile" />
881              </xsl:variable>
882              <xsl:element name="li">
883                <xsl:attribute name="class">srcfile</xsl:attribute>
884                <xsl:if test="string($filetype)!=''">
885                  <xsl:attribute name="id">
886                    <xsl:text>srcfile_</xsl:text>
887                    <xsl:value-of select="$filetype" />
888                  </xsl:attribute>
889                </xsl:if>
890                <xsl:element name="a">
891                  <xsl:attribute name="class">srcfile</xsl:attribute>
892                  <xsl:attribute name="href">
893                    <xsl:call-template name="mirror"/>
894                    <xsl:text>/</xsl:text>
895                    <xsl:value-of select="../../directory"/>
896                    <xsl:text>/</xsl:text>
897                    <xsl:value-of select="filename"/>
898                  </xsl:attribute>
899                  <xsl:attribute name="title">
900                    <xsl:value-of select="filename" />
901                    <xsl:text>: </xsl:text>
902                    <xsl:value-of select="size"/>
903                    <xsl:text> bytes</xsl:text>
904                  </xsl:attribute>
905                  <xsl:text>.</xsl:text>
906                  <xsl:value-of select="$filetype"/>
907                </xsl:element>
908              </xsl:element>
909            </xsl:for-each>
910          </ul>
911        </td>
912      </tr>
913    </xsl:template>
914    
915    <!-- Todo list -->  <xsl:template name="todo-list">
916    <xsl:variable name="todo">    <xsl:variable name="todo">
917      <xsl:if test="@nmu">      <xsl:if test="@nmu">
918        <li>Incorporate and acknowledge the changes from the non maintainer upload.</li>        <li>Incorporate and acknowledge the changes from the non maintainer upload.</li>
919      </xsl:if>      </xsl:if>
920        <xsl:if test="$lin_errs + $lin_warns > 0">
921          <li>
922            <xsl:variable name="lintian_url"><xsl:call-template name="mk_lintian_url" /></xsl:variable>
923            <a href="http://lintian.debian.org">Lintian</a><xsl:text> </xsl:text>
924            <xsl:text>reports </xsl:text>
925            <a href="{$lintian_url}">
926              <xsl:if test="$lin_errs > 0"><xsl:value-of select="$lin_errs" /> error<xsl:if test="$lin_errs > 1">s</xsl:if></xsl:if>
927              <xsl:if test="$lin_errs > 0 and $lin_warns > 0"> and </xsl:if>
928              <xsl:if test="$lin_warns > 0"><xsl:value-of select="$lin_warns" /> warning<xsl:if test="$lin_warns > 1">s</xsl:if></xsl:if>
929            </a>
930            about this package. You should make the package <em>lintian clean</em>
931            getting rid of <xsl:if test="$lin_errs + $lin_warns = 1">it</xsl:if>
932            <xsl:if test="$lin_errs + $lin_warns > 1">them</xsl:if>.
933          </li>
934        </xsl:if>
935        <xsl:if test="$hasmentors"> <!-- todo item about sponsoring mentors.d.n.  uploads -->
936          <xsl:variable name="mentors_version"
937            select="document(concat('../base/', $dir, '/mentors.xml'))/source/version" />
938          <li>
939            <a href="http://mentors.debian.net"><tt>mentors.debian.net</tt></a> has
940            <a href="http://mentors.debian.net/cgi-bin/sponsor-pkglist?action=details;package={$package}">version
941              <xsl:value-of select="$mentors_version" /></a> of this package, you
942            should consider sponsoring its upload.
943          </li>
944        </xsl:if>
945      <xsl:if test="not(uploaders)and(priority='standard' or priority='required' or priority='important')">      <xsl:if test="not(uploaders)and(priority='standard' or priority='required' or priority='important')">
946        <li>The package is of priority standard or higher, you should really find some co-maintainers.</li>        <li>The package is of priority standard or higher, you should really find some co-maintainers.</li>
947      </xsl:if>      </xsl:if>
948      <xsl:if test="not(starts-with(standards-version, $lastsv))">      <xsl:if test="standards-version!='' and not(starts-with(standards-version, $lastsv))">
949        <li>The package should be updated to follow the last version of        <li>The package should be updated to follow the last version of
950        <a href="http://www.debian.org/doc/debian-policy/">Debian Policy</a> (Standards-Version          <a href="http://www.debian.org/doc/debian-policy/">Debian Policy</a> (Standards-Version
951        <xsl:value-of select="$lastsv"/> instead of          <xsl:value-of select="$lastsv"/> instead of
952        <xsl:value-of select="standards-version"/>).</li>          <xsl:value-of select="standards-version"/>).</li>
953      </xsl:if>      </xsl:if>
954      <xsl:if test="$hasother">      <xsl:if test="$hasother">
955        <xsl:for-each select="$other/todo/item">        <xsl:for-each select="$other/todo/item">
956          <xsl:call-template name="outputitem"/>          <xsl:call-template name="outputitem"/>
957        </xsl:for-each>        </xsl:for-each>
958        <!-- new upstream version goes in todo [FG] -->        <xsl:if test="$other[dehs/@newer]">
959        <xsl:if test="$other/@watch='yes' and $other/watch/@new!='0'">          <li>A new upstream version is available:
960          <li>A new upstream version was found:            <a href="http://dehs.alioth.debian.org/maintainer.php?name={$escaped-package}"><xsl:value-of select="$other/dehs/@newer"/></a>,
961             (<xsl:value-of select="$other/watch/@new"/>). <a href="{$other/watch/@url}"><xsl:value-of select="$other/watch/@url"/></a></li>            you should consider packaging it.</li>
962          </xsl:if>
963          <xsl:if test="$other/bugs/@patch!='0'">
964            <li>The Bug Tracking System contains
965              <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?src={$escaped-package}&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done&amp;repeatmerged=no">patches fixing
966              <xsl:value-of select="$other/bugs/@patch"/> bug<xsl:if test="$other/bugs/@patch!='1'">s</xsl:if>
967              </a>
968              <xsl:if test="$other/bugs/@patch_m">
969                <xsl:text> (</xsl:text>
970                <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?src={$escaped-package}&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done&amp;repeatmerged=yes">
971                  <xsl:value-of select="$other/bugs/@patch_m"/>
972                </a>
973                <xsl:text> if counting merged bugs)</xsl:text>
974              </xsl:if>, consider including or untagging
975              <xsl:if test="$other/bugs/@patch!='1'">them</xsl:if>
976              <xsl:if test="$other/bugs/@patch='1'">it</xsl:if>.
977            </li>
978        </xsl:if>        </xsl:if>
979      </xsl:if>      </xsl:if>
980    </xsl:variable>    </xsl:variable>
981    <xsl:if test="count($todo)>0 and string($todo)!=''">    <xsl:if test="count($todo)>0 and string($todo)!=''">
982    <tr class="titlerow">      <tr class="titlerow">
983    <td class="titlecell" style="background-color: blue">        <td class="titlecell" id="todo">
984    Todo          Todo
985    </td></tr>      </td></tr>
986    <tr class="normalrow">      <tr class="normalrow">
987    <td class="contentcell2"><xsl:copy-of select="$todo"/>        <td class="contentcell2">
988    </td>          <ul>
989    </tr>            <xsl:copy-of select="$todo"/>
990            </ul>
991          </td>
992        </tr>
993    </xsl:if>    </xsl:if>
994    </xsl:template>
995    <!-- List of problems -->  
996    <xsl:template name="problems">
997    <xsl:variable name="problems">    <xsl:variable name="problems">
998      <xsl:if test="$hasexcuse and document(concat('../base/', $dir, '/excuse.xml'))/excuse/@problematic">      <xsl:if test="$hasexcuse and document(concat('../base/', $dir, '/excuse.xml'))/excuse/@problematic">
999        <li>The package has not yet entered <a        <li>The package has not yet entered <a
1000        href="http://ftp-master.debian.org/testing/update_excuses.html.gz#{$package}">testing</a>            href="http://ftp-master.debian.org/testing/update_excuses.html.gz#{$package}">testing</a>
1001        even though the <xsl:value-of select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/@limit"/>-day          even though the <xsl:value-of select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/@limit"/>-day
1002        delay is over.          delay is over.
1003        <xsl:element name="a">          <a href="http://release.debian.org/migration/testing.pl?package={$escaped-package}">Check why</a>.</li>
         <xsl:attribute name="href">  
           <xsl:text>http://bjorn.haxx.se/debian/testing.pl?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>  
         Check why  
       </xsl:element>  
       .</li>  
1004      </xsl:if>      </xsl:if>
1005      <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">      <xsl:if test="standards-version!='' and not(starts-with(standards-version, $lastmajorsv))">
1006        <li>The package is severly out of date with respect to the Debian        <li>The package is severly out of date with respect to the Debian
1007        Policy. Latest version is <xsl:value-of select="$lastsv"/>          Policy. Latest version is <xsl:value-of select="$lastsv"/>
1008        and your package only follows          and your package only follows
1009        <xsl:value-of select="standards-version"/>...</li>          <xsl:value-of select="standards-version"/>...</li>
1010        </xsl:if>
1011        <xsl:if test="@release!='unstable' and @release!='experimental'">
1012          <li>This package is neither part of unstable nor experimental. This
1013            probably means that the package <a
1014              href="http://ftp-master.debian.org/removals.txt">has been removed</a> (or
1015            has been renamed). Thus the information here is of little interest ...
1016            the package is going to disappear unless someone takes it over and
1017            reintroduces it into unstable.</li>
1018      </xsl:if>      </xsl:if>
1019      <xsl:if test="$hasother">      <xsl:if test="$hasother">
1020    
1021          <!-- Override disparity handling. [JvW] -->
1022          <xsl:if test="$other/@override='yes'">
1023            <xsl:for-each select="$other/override/group">
1024              <li>There were override disparities found in suite <xsl:value-of
1025                  select="@suite"/>:
1026                <ul>
1027                  <xsl:for-each select="disparity">
1028                    <li><xsl:value-of select="text()"/></li>
1029                  </xsl:for-each>
1030                </ul>
1031              </li>
1032            </xsl:for-each>
1033          </xsl:if>
1034    
1035        <!-- Wnpp handling. [PvR] -->        <!-- Wnpp handling. [PvR] -->
1036        <xsl:if test="$other/@wnpp='yes'">        <xsl:if test="$other/@wnpp='yes'">
1037        <li>          <li>
1038          <xsl:choose>            <xsl:choose>
1039            <xsl:when test="$other/wnpp/@type='O'">              <xsl:when test="$other/wnpp/@type='O'">
1040            <span style="font-weight: bold">This package has been orphaned</span>.                <xsl:choose>
1041            This means that it does not have a real maintainer at the                  <xsl:when test="@release!='unstable' and @release!='experimental'">
1042            moment. Please consider adopting this package if you are interested in it.                    The WNPP database contains an O (Orphaned) entry for
1043            </xsl:when>                    this package. This is probably an error, as it is neither part of
1044            <xsl:when test="$other/wnpp/@type='ITA'">                    unstable nor experimental.
1045            This package has been orphaned, but someone intends to maintain it.                  </xsl:when>
1046            </xsl:when>                  <xsl:otherwise>
1047            <xsl:when test="$other/wnpp/@type='RFA'">                    <span style="font-weight: bold">This package has been orphaned</span>.
1048            The current maintainer is looking for someone who can take over                    This means that it does not have a real maintainer at the
1049            maintenance of this package. If you are interested in this package,                    moment. Please consider adopting this package if you are interested in it.
1050            please consider taking it over. Alternatively you may                  </xsl:otherwise>
1051            want to be co-maintainer in order to help the actual maintainer.                </xsl:choose>
1052            </xsl:when>              </xsl:when>
1053            <xsl:when test="$other/wnpp/@type='RFH'">              <xsl:when test="$other/wnpp/@type='ITA'">
1054            The current maintainer is looking for someone who can help with the                <xsl:choose>
1055            maintenance of this package. If you are interested in this package,                  <xsl:when test="@release!='unstable' and @release!='experimental'">
1056            please consider helping out. One way you can help is offer to be a                    The WNPP database contains an ITA (Intent To Adopt) entry for
1057            co-maintainer or triage bugs in the bts.                    this package. This is probably an error, as it is neither part of
1058            </xsl:when>                    unstable nor experimental.
1059            <xsl:when test="$other/wnpp/@type='ITP'">                  </xsl:when>
1060            The WNPP database contains an ITP (Intent To Package) entry for                  <xsl:otherwise>
1061            this package. This is probably an error, as it has already been                    This package has been orphaned, but someone intends to maintain it.
1062            packaged.                  </xsl:otherwise>
1063            </xsl:when>                </xsl:choose>
1064            <xsl:when test="$other/wnpp/@type='RFP'">              </xsl:when>
1065            The WNPP database contains an RFP (Request For Package) entry              <xsl:when test="$other/wnpp/@type='RFA'">
1066            for this package.  This is probably an error, as it has already                <xsl:choose>
1067            been packaged.                  <xsl:when test="@release!='unstable' and @release!='experimental'">
1068            </xsl:when>                    The WNPP database contains an RFA (Request For Adoption) entry for
1069            <xsl:otherwise>                    this package. This is probably an error, as it is neither part of
1070            The WNPP database contains an entry for this package,                    unstable nor experimental.
1071            but it is unclear what kind of entry it is. This is probably an error.                  </xsl:when>
1072            </xsl:otherwise>                  <xsl:otherwise>
1073          </xsl:choose>                    The current maintainer is looking for someone who can take over
1074          <xsl:variable name="bn" select="$other/wnpp/@bugnumber"/>                    maintenance of this package. If you are interested in this package,
1075          Please see bug number <a href="http://bugs.debian.org/{$bn}">                    please consider taking it over. Alternatively you may
1076          #<xsl:value-of select="$bn"/></a> for more information.                    want to be co-maintainer in order to help the actual maintainer.
1077        </li>                  </xsl:otherwise>
1078                  </xsl:choose>
1079                </xsl:when>
1080                <xsl:when test="$other/wnpp/@type='RFH'">
1081                  <xsl:choose>
1082                    <xsl:when test="@release!='unstable' and @release!='experimental'">
1083                      The WNPP database contains an RFH (Request For Help) entry for
1084                      this package. This is probably an error, as it is neither part of
1085                      unstable nor experimental.
1086                    </xsl:when>
1087                    <xsl:otherwise>
1088                      The current maintainer is looking for someone who can help with the
1089                      maintenance of this package. If you are interested in this package,
1090                      please consider helping out. One way you can help is offer to be a
1091                      co-maintainer or triage bugs in the bts.
1092                    </xsl:otherwise>
1093                  </xsl:choose>
1094                </xsl:when>
1095                <xsl:when test="$other/wnpp/@type='ITP'">
1096                  <xsl:choose>
1097                    <xsl:when test="@release!='unstable' and @release!='experimental'">
1098                      The WNPP database contains an ITP (Intent To Package). This probably
1099                      means that somebody is going to reintroduce this package into unstable.
1100                    </xsl:when>
1101                    <xsl:otherwise>
1102                      The WNPP database contains an ITP (Intent To Package) entry for
1103                      this package. This is probably an error, as it has already been
1104                      packaged.
1105                    </xsl:otherwise>
1106                  </xsl:choose>
1107                </xsl:when>
1108                <xsl:when test="$other/wnpp/@type='RFP'">
1109                  <xsl:choose>
1110                    <xsl:when test="@release!='unstable' and @release!='experimental'">
1111                      The WNPP database contains an RFP (Request For Package). This probably
1112                      means that somebody would like to see this package reintroduced into
1113                      unstable by a volunteer.
1114                    </xsl:when>
1115                    <xsl:otherwise>
1116                      The WNPP database contains an RFP (Request For Package) entry
1117                      for this package.  This is probably an error, as it has already
1118                      been packaged.
1119                    </xsl:otherwise>
1120                  </xsl:choose>
1121                </xsl:when>
1122                <xsl:when test="$other/wnpp/@type='RM'">
1123                  <span style="font-weight: bold">This package has been requested to be
1124                    removed</span>.
1125                  This means that, when this request gets processed by an ftp-master, this
1126                  package will no longer be in unstable, and will automatically be removed
1127                  from testing too afterwards. If for some reason you want keep this
1128                  package in unstable, please discuss so in the bug.
1129                </xsl:when>
1130                <xsl:otherwise>
1131                  The WNPP database contains an entry for this package,
1132                  but it is unclear what kind of entry it is. This is probably an error.
1133                </xsl:otherwise>
1134              </xsl:choose>
1135              <xsl:variable name="bn" select="$other/wnpp/@bugnumber"/>
1136              Please see bug number <a href="http://bugs.debian.org/{$bn}">
1137                #<xsl:value-of select="$bn"/></a> for more information.
1138            </li>
1139        </xsl:if>        </xsl:if>
1140    
1141      <!-- uscan output if present [FG] -->        <!-- disable watch rendering, see above -->
1142      <xsl:if test="$other/@watch='yes'">        <!--
1143        <li>        <xsl:if test="$other/@watch='yes'">
1144        <xsl:if test="$other/watch/@warning!=''">          <li>
1145          uscan had problems while searching for a new upstream version: <xsl:value-of select="$other/watch/@warning"/>            <xsl:if test="$other/watch/@warning!=''">
1146                uscan had problems while searching for a new upstream version: <xsl:value-of select="$other/watch/@warning"/>
1147              </xsl:if>
1148            </li>
1149          </xsl:if>
1150          -->
1151          <xsl:if test="$other[dehs/@error]">
1152            <li>The package has a <kbd>debian/watch</kbd> file, but the last
1153              attempt to use it for checking for newer upstream versions failed
1154              with
1155              <a href="http://dehs.alioth.debian.org/maintainer.php?name={$escaped-package}">an
1156                error</a>.</li>
1157        </xsl:if>        </xsl:if>
       </li>  
     </xsl:if>  
1158    
1159        <!-- Misc problems reported -->        <!-- Misc problems reported -->
1160        <xsl:for-each select="$other/problems/item">        <xsl:for-each select="$other/problems/item">
         <xsl:call-template name="outputitem"/>  
       </xsl:for-each>  
     </xsl:if>  
   </xsl:variable>  
   <xsl:if test="count($problems)>0 and string($problems)!=''">  
   <tr class="titlerow">  
   <td class="titlecell" style="background-color: red">  
   Problems  
   </td></tr>  
   <tr class="normalrow">  
   <td class="contentcell2"><xsl:copy-of select="$problems"/>  
   </td>  
   </tr>  
   </xsl:if>  
   
   <xsl:if test="$hasexcuse">  
   <tr class="titlerow">  
   <td class="titlecell">  
   Testing Status  
   </td></tr>  
   <tr class="normalrow">  
   <td class="contentcell2" style="text-align: left">  
   <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">  
     <xsl:call-template name="outputitem"/>  
   </xsl:for-each>  
   </td>  
   </tr>  
   </xsl:if>  
   
   
   <xsl:variable name="static">  
     <xsl:if test="$hasnews">  
       <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">  
1161          <xsl:call-template name="outputitem"/>          <xsl:call-template name="outputitem"/>
1162        </xsl:for-each>        </xsl:for-each>
1163      </xsl:if>      </xsl:if>
1164    </xsl:variable>    </xsl:variable>
1165    <xsl:if test="count($static)>0 and string($static)!=''">    <xsl:if test="count($problems)>0 and string($problems)!=''">
1166      <tr class="titlerow">      <tr class="titlerow">
1167      <td class="titlecell">        <td class="titlecell" id="problems">
1168      Static Information          Problems
1169      </td></tr>      </td></tr>
1170      <tr class="normalrow">      <tr class="normalrow">
1171      <td class="contentcell2"><xsl:copy-of select="$static"/></td>        <td class="contentcell2">
1172            <ul><xsl:copy-of select="$problems"/></ul>
1173          </td>
1174      </tr>      </tr>
1175    </xsl:if>    </xsl:if>
1176    </xsl:template>
1177    <xsl:variable name="news">  
1178      <xsl:if test="$hasnews">  <xsl:template name="testing-status">
1179        <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">    <xsl:if test="$hasexcuse or $other/@transitions='yes'">
         <xsl:call-template name="outputitem"/>  
       </xsl:for-each>  
     </xsl:if>  
   </xsl:variable>  
   <xsl:if test="count($news)>0 and string($news)!=''">  
1180      <tr class="titlerow">      <tr class="titlerow">
1181      <td class="titlecell">        <td class="titlecell">
1182      Latest News          Testing status
1183      </td></tr>      </td></tr>
1184      </xsl:if>
1185      <xsl:if test="$other/@transitions='yes'">
1186        <xsl:variable name="translist">
1187          <xsl:for-each select="$other/transitions/transition">
1188            <xsl:value-of select="@name" />
1189            <xsl:if test="position() != last()">
1190              <xsl:text> </xsl:text>
1191            </xsl:if>
1192          </xsl:for-each>
1193        </xsl:variable>
1194        <xsl:variable name="transno" select="count($other/transitions/transition)" />
1195        <tr class="normalrow">
1196          <td class="contentcell2" style="text-align: left">
1197            <ul>
1198              <!-- XXX unappropriate <ul>, just to make the text looks like other
1199                boxes, should be fixed on the CSS side (getting rid of <ul>) -->
1200            <li>This package is part of <em><xsl:value-of select="$transno" />
1201                ongoing testing transition<xsl:if test="$transno != '1'">s</xsl:if>
1202              </em> (namely: <tt><xsl:value-of select="$translist" /></tt>). For
1203              more information see the
1204              <a href="http://ftp-master.debian.org/transitions.yaml">transition
1205                status file</a>.<br />
1206              <em>Uploads to unstable will be rejected</em> while transitions are
1207              ongoing; you might want to upload to experimental in the
1208              meantime, or contact <tt><a href="mailto:debian-release@lists.debian.org">debian-release</a></tt>
1209              if an upload is really necessary.
1210            </li>
1211            </ul>
1212          </td>
1213        </tr>
1214      </xsl:if>
1215      <xsl:if test="$hasexcuse">
1216      <tr class="normalrow">      <tr class="normalrow">
1217      <td class="contentcell2"><xsl:copy-of select="$news"/></td>        <td class="contentcell2" style="text-align: left">
1218            <ul>
1219              <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
1220                <xsl:call-template name="outputitem"/>
1221              </xsl:for-each>
1222            </ul>
1223          </td>
1224      </tr>      </tr>
1225    </xsl:if>    </xsl:if>
1226    </xsl:template>
1227    
1228    <xsl:template name="static-info">
1229      <xsl:call-template name="output-static">
1230        <xsl:with-param name="static" select="$static" />
1231      </xsl:call-template>
1232    </xsl:template>
1233    
1234    <xsl:template name="latest-news">
1235      <xsl:call-template name="output-news">
1236        <xsl:with-param name="news" select="$news" />
1237      </xsl:call-template>
1238    </xsl:template>
1239    
1240    <xsl:variable name="static">
1241      <xsl:if test="$hasnews">
1242        <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">
1243          <xsl:call-template name="outputitem"/>
1244        </xsl:for-each>
1245      </xsl:if>
1246    </xsl:variable>
1247    
1248    <xsl:variable name="news">
1249      <xsl:if test="$hasnews">
1250        <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">
1251          <xsl:call-template name="outputitem"/>
1252        </xsl:for-each>
1253      </xsl:if>
1254    </xsl:variable>
1255    
1256    <!-- All the work is done in a single template -->
1257    <xsl:template match="source">
1258    
1259      <!-- Start of html -->
1260      <xsl:text disable-output-escaping="yes">
1261      &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;
1262      </xsl:text>
1263      <html>
1264      <head>
1265      <meta name="ROBOTS" content="NOFOLLOW"/>
1266      <link type="text/css" title="User selected" rel="stylesheet" href="../common/default.css"/>
1267      <link type="text/css" title="Official" rel="alternate stylesheet" href="../common/revamp.css"/>
1268      <link type="text/css" title="Legacy PTS" rel="alternate stylesheet" href="../common/pts.css"/>
1269      <link type="text/css" title="Compact rendering" rel="alternate stylesheet" href="../common/compact.css"/>
1270      <script type="text/javascript" src="../common/pts.js"></script>
1271      <xsl:if test="count($news)>0 and string($news)!=''">
1272        <link rel="alternate" type="application/rss+xml" title="RSS"
1273          href="{$package}/news.rss20.xml" />
1274      </xsl:if>
1275      <title>Overview of <xsl:value-of select="$package"/> source package</title>
1276      </head>
1277      <body onload="javascript:onLoad();">
1278    
1279      <div id="quickforms" style="float: right;">
1280      <form method="get" action="/common/index.html">
1281      <p><span title="Jump to package">Go:</span>
1282      <input type="text" name="src" value=""/></p>
1283      </form>
1284      <form id="csspref-form" method="get" action="/common/set-csspref.php">
1285      <p>Switch style: <select name="csspref" onchange="javascript:onChangeStyle();">
1286      <option value="revamp.css">Default</option>
1287      <option value="compact.css">Compact</option>
1288      <option value="pts.css">Legacy</option>
1289      </select></p>
1290      </form>
1291    
1292      </div>
1293      <h1>Overview of
1294      <xsl:element name="a">
1295        <xsl:attribute name="href">
1296          <xsl:text>http://packages.debian.org/src:</xsl:text>
1297           <xsl:value-of select="$package"/>
1298        </xsl:attribute>
1299       <xsl:value-of select="$package"/>
1300      </xsl:element>
1301      source package</h1>
1302    
1303      <div id="body">
1304      <xsl:choose>
1305      <xsl:when test="$removed='yes'">
1306      <!-- REMOVED PACKAGE -->
1307      <p>This package is not part of any Debian distribution. Thus you won't
1308      find much information here. The package is either very new and hasn't
1309      appeared on mirrors yet, or it's an old package that eventually got removed.
1310      The old news are kept for historic purpose only.</p>
1311    
1312      <table class="righttable">
1313        <xsl:call-template name="static-info" />
1314        <xsl:call-template name="latest-news" />
1315      </table>
1316    
1317      <!-- END REMOVED PACKAGE -->
1318      </xsl:when>
1319      <xsl:otherwise>
1320      <!-- NON REMOVED PACKAGE -->
1321    
1322      <table class="containertable">
1323      <tr class="containerrow" valign="top">
1324      <td class="containercell">
1325      <!-- LEFT SIDE -->
1326      <table class="lefttable">
1327        <xsl:call-template name="general-information" />
1328        <xsl:call-template name="available-versions" />
1329      </table>
1330      <table class="lefttable">
1331        <xsl:call-template name="package-files" />
1332        <xsl:call-template name="binary-packages" />
1333      </table>
1334      <!-- END LEFT SIDE -->
1335      </td><td class="containercell">
1336      <!-- RIGHT SIDE -->
1337      <table class="righttable">
1338        <xsl:call-template name="todo-list" />
1339        <xsl:call-template name="problems" />
1340      </table>
1341      <table class="righttable">
1342        <xsl:call-template name="testing-status" />
1343        <xsl:call-template name="static-info" />
1344        <xsl:call-template name="latest-news" />
1345    </table>    </table>
1346    <!-- END RIGHT SIDE -->    <!-- END RIGHT SIDE -->
1347      </td><td class="containercell">
1348      <table class="lefttable">
1349        <xsl:call-template name="bugs-count" />
1350        <xsl:call-template name="pts-subscription" />
1351      </table>
1352      <table class="lefttable">
1353        <xsl:call-template name="other-links" />
1354      </table>
1355      <table class="lefttable" id="ubuntubox">
1356        <xsl:call-template name="ubuntu" />
1357      </table>
1358    </td></tr>    </td></tr>
1359    </table>    </table>
1360    
1361      <!-- END NON REMOVED PACKAGE -->
1362      </xsl:otherwise>
1363      </xsl:choose>
1364    
1365    <hr/>    <hr/>
1366    Debian Package Tracking System - Copyright 2002-2004 Raphaël Hertzog<br/>    <div class="footer">
1367    Last modified : <xsl:value-of select="$date"/>      <p>
1368          <a href="http://www.debian.org">Debian</a> Package Tracking System -
1369          Copyright 2002-2008 Raphaël Hertzog and others.<br/>
1370          Report problems to the <a href="http://bugs.debian.org/qa.debian.org"
1371            ><tt>qa.debian.org</tt> pseudopackage</a> in the <a
1372            href="http://bugs.debian.org">Debian <acronym
1373            title="Bug Tracking System">BTS</acronym></a>.<br/>
1374          Last modified: <xsl:value-of select="$date"/>.
1375        </p>
1376      </div>
1377      </div>
1378    </body>    </body>
1379    </html>    </html>
1380  </xsl:template>  </xsl:template>

Legend:
Removed from v.903  
changed lines
  Added in v.1938

  ViewVC Help
Powered by ViewVC 1.1.5