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

Legend:
Removed from v.1426  
changed lines
  Added in v.1909

  ViewVC Help
Powered by ViewVC 1.1.5