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

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

  ViewVC Help
Powered by ViewVC 1.1.5