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

Legend:
Removed from v.600  
changed lines
  Added in v.1889

  ViewVC Help
Powered by ViewVC 1.1.5