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

Legend:
Removed from v.1090  
changed lines
  Added in v.1810

  ViewVC Help
Powered by ViewVC 1.1.5