/[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 1049 by hertzog, Fri Jul 22 08:40:10 2005 UTC revision 1760 by zack, Fri Nov 30 19:14:08 2007 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-2005 Raphaël Hertzog and others
5  # This file is distributed under the terms of the General Public License  # This file is distributed under the terms of the General Public License
6  # version 2 or (at your option) any later version.  # version 2 or (at your option) any later version.
7  -->  -->
# Line 24  Line 24 
24  <xsl:param name="hasoldstable-security" select="''"/>  <xsl:param name="hasoldstable-security" select="''"/>
25  <xsl:param name="hasstable-security" select="''"/>  <xsl:param name="hasstable-security" select="''"/>
26  <xsl:param name="hastesting-security" select="''"/>  <xsl:param name="hastesting-security" select="''"/>
27    <xsl:param name="hassecure-testing" select="''"/>
28    <xsl:param name="hasvolatile" select="''"/>
29  <xsl:param name="hasnews" select="''"/>  <xsl:param name="hasnews" select="''"/>
30  <xsl:param name="hasexcuse" select="''"/>  <xsl:param name="hasexcuse" select="''"/>
31    
# Line 31  Line 33 
33    
34  <!-- Those variables controls the todo and problem item concerning  <!-- Those variables controls the todo and problem item concerning
35       standards-version not being up to date -->       standards-version not being up to date -->
36  <xsl:variable name="lastsv" select="'3.6.2'"/>  <xsl:variable name="lastsv" select="'3.7.2'"/>
37  <xsl:variable name="lastmajorsv" select="'3.'"/>  <xsl:variable name="lastmajorsv" select="'3.'"/>
38    
39  <!-- Named templates aka functions -->  <!-- Named templates aka functions -->
# Line 62  Line 64 
64    </xsl:choose>    </xsl:choose>
65  </xsl:template>  </xsl:template>
66    
67  <!-- Convert + in %2b for URL escaping ... -->  <!-- Convert + in %2b for URL escaping. Should actually first also do
68    other-to-%xx, especially % to %25... Fortunately, that's rare -->
69  <xsl:template name="escape-name">  <xsl:template name="escape-name">
70    <xsl:param name="text"/>    <xsl:param name="text"/>
71    <xsl:if test="contains($text,'+')">    <xsl:if test="contains($text,'+')">
# Line 88  Line 91 
91    </xsl:if>    </xsl:if>
92  </xsl:template>  </xsl:template>
93    
94    <xsl:template name="add-vcs-info">
95      <xsl:if test="repository">
96        <tr>
97          <td class="labelcell">
98            <xsl:text>Version Control</xsl:text>
99          </td>
100          <td class="contentcell">
101            <xsl:if test="repository/vcs[@kind='browser']">
102              <a href="{repository/vcs[@kind='browser']/@url}">
103                <xsl:text>browser</xsl:text>
104              </a>
105              <br />
106            </xsl:if>
107            <xsl:if test="repository/vcs[@kind!='browser']">
108              <xsl:text>raw: </xsl:text>
109              <xsl:for-each select="repository/vcs[@kind!='browser']">
110                <xsl:sort select="@kind" />
111                <a href="{@url}">
112                  <xsl:value-of select="@kind" />
113                </a>
114                <xsl:if test="position()!=last()">
115                  <xsl:text>, </xsl:text>
116                </xsl:if>
117              </xsl:for-each>
118            </xsl:if>
119          </td>
120        </tr>
121      </xsl:if>
122    </xsl:template>
123    
124    <xsl:template name="add-maintenance-info">
125      <xsl:variable name="dm">
126        <xsl:if test="dm-upload-allowed and string(dm-upload-allowed)='yes'">
127          <xsl:text>true</xsl:text>
128        </xsl:if>
129      </xsl:variable>
130      <xsl:variable name="lownmu">
131        <xsl:if test="maintainer/low-threshold-nmu
132            and string(maintainer/low-threshold-nmu)='yes'">
133          <xsl:text>true</xsl:text>
134        </xsl:if>
135      </xsl:variable>
136    
137      <xsl:if test="string($dm)!='' or string($lownmu)!=''">
138        <tr>
139          <td class="labelcell">
140            <xsl:text>Maintenance info</xsl:text>
141          </td>
142          <td class="contentcell">
143    
144            <xsl:if test="string($dm)!=''">
145              <span class="dm-tag">
146                <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>
147              </span>
148            </xsl:if>
149    
150            <xsl:if test="string($lownmu)!=''">
151              <span class="lownmu-tag">
152                <a href="http://wiki.debian.org/LowThresholdNmu"><acronym
153                    title="maintainer agrees with Low Threshold NMU, see wiki page for details">LowNMU</acronym></a>
154              </span>
155            </xsl:if>
156          </td>
157        </tr>
158      </xsl:if>
159    </xsl:template>
160    
161    <xsl:template name="output-news">
162      <xsl:param name="news" />
163    
164      <xsl:if test="count($news)>0 and string($news)!=''">
165        <tr class="titlerow">
166        <td class="titlecell">
167          Latest News <a class="feedlink" href="{$package}/news.rss20.xml">RSS</a>
168        </td></tr>
169        <tr class="normalrow">
170        <td class="contentcell2">
171        <ul><xsl:copy-of select="$news"/></ul>
172        </td>
173        </tr>
174      </xsl:if>
175    </xsl:template>
176    
177    <xsl:template name="output-static">
178      <xsl:param name="static" />
179    
180      <xsl:if test="count($static)>0 and string($static)!=''">
181        <tr class="titlerow">
182        <td class="titlecell">
183        Static Information
184        </td></tr>
185        <tr class="normalrow">
186        <td class="contentcell2">
187        <ul><xsl:copy-of select="$static"/></ul>
188        </td>
189        </tr>
190      </xsl:if>
191    </xsl:template>
192    
193    <xsl:template name="categorize-srcfile">
194      <!-- used to recognize (and tag afterwards) well-known type of source package
195        components: dsc, diff, orig -->
196      <xsl:choose>
197        <xsl:when test="substring(filename,string-length(filename)-2, 3)='dsc'">
198          <xsl:text>dsc</xsl:text>
199        </xsl:when>
200        <xsl:when test="substring(filename,string-length(filename)-6, 7)='diff.gz'">
201          <xsl:text>diff</xsl:text>
202        </xsl:when>
203        <xsl:when test="substring(filename,string-length(filename)-10, 8)='orig.tar'">
204          <xsl:text>orig</xsl:text>
205        </xsl:when>
206        <xsl:otherwise><xsl:text></xsl:text></xsl:otherwise>
207      </xsl:choose>
208    </xsl:template>
209    
210    <xsl:variable name="static">
211      <xsl:if test="$hasnews">
212        <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">
213          <xsl:call-template name="outputitem"/>
214        </xsl:for-each>
215      </xsl:if>
216    </xsl:variable>
217    
218    <xsl:variable name="news">
219      <xsl:if test="$hasnews">
220        <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">
221          <xsl:call-template name="outputitem"/>
222        </xsl:for-each>
223      </xsl:if>
224    </xsl:variable>
225    
226  <!-- All the work is done in a single template -->  <!-- All the work is done in a single template -->
227  <xsl:template match="source">  <xsl:template match="source">
228    
229    <!-- Start of html -->    <!-- Start of html -->
230      <xsl:text disable-output-escaping="yes">
231      &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;
232      </xsl:text>
233    <html>    <html>
234    <head>    <head>
235    <meta name="ROBOTS" content="NOFOLLOW"/>    <meta name="ROBOTS" content="NOFOLLOW"/>
236    <link title="Default" rel="stylesheet" href="../common/pts.css"/>    <link type="text/css" title="Default" rel="stylesheet" href="../common/pts.css"/>
237    <link title="Standard link rendering" rel="alternate stylesheet" href="../common/pts2.css"/>    <link type="text/css" title="Standard link rendering" rel="alternate stylesheet" href="../common/pts2.css"/>
238      <link type="text/css" title="Compact rendering" rel="alternate stylesheet" href="../common/compact.css"/>
239      <xsl:if test="count($news)>0 and string($news)!=''">
240        <link rel="alternate" type="application/rss+xml" title="RSS"
241          href="{$package}/news.rss20.xml" />
242      </xsl:if>
243    <title>Overview of <xsl:value-of select="$package"/> source package</title>    <title>Overview of <xsl:value-of select="$package"/> source package</title>
244    </head>    </head>
245    <body>    <body>
246    
247    <form method="get" action="/common/index.html" style="float: right;">    <form method="get" action="/common/index.html" style="float: right;">
248    <!-- this link should make lynx/links happy [FG] -->    <!-- this link should make lynx/links happy [FG] -->
249    Jump to package (<a href="/">home page</a>): <br/>    <p>Jump to package (<a href="/">home page</a>): <br/>
250    <input type="text" name="src" value=""/>    <input type="text" name="src" value=""/></p>
251    </form>    </form>
252    <h1>Overview of <xsl:value-of select="$package"/> source package</h1>    <h1>Overview of
253      <xsl:element name="a">
254        <xsl:attribute name="href">
255          <xsl:text>http://packages.debian.org/src:</xsl:text>
256           <xsl:value-of select="$package"/>
257        </xsl:attribute>
258       <xsl:value-of select="$package"/>
259      </xsl:element>
260      source package</h1>
261    
262      <xsl:choose>
263      <xsl:when test="$removed='yes'">
264      <!-- REMOVED PACKAGE -->
265      <p>This package is not part of any Debian distribution. Thus you won't
266      find much information here. The package is either very new and hasn't
267      appeared on mirrors yet, or it's an old package that eventually got removed.
268      The old news are kept for historic purpose only.</p>
269    
270      <table class="righttable">
271        <xsl:call-template name="output-static">
272          <xsl:with-param name="static" select="$static" />
273        </xsl:call-template>
274        <xsl:call-template name="output-news">
275          <xsl:with-param name="news" select="$news" />
276        </xsl:call-template>
277      </table>
278    
279      <!-- END REMOVED PACKAGE -->
280      </xsl:when>
281      <xsl:otherwise>
282      <!-- NON REMOVED PACKAGE -->
283    
284    <table class="containertable">    <table class="containertable">
285    <tr class="containerrow" valign="top">    <tr class="containerrow" valign="top">
286    <td class="containercell">    <td class="containercell">
# Line 116  Line 288 
288    <table class="lefttable">    <table class="lefttable">
289    <tr class="titlerow">    <tr class="titlerow">
290    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
291    General Information    General information
292    </td></tr>    </td></tr>
293    <tr class="normalrow">    <tr class="normalrow">
294    <td class="labelcell">Last version</td>    <td class="labelcell">Latest version</td>
295    <td class="contentcell"><xsl:value-of select="version"/></td>    <td class="contentcell"><xsl:value-of select="version"/></td>
296    </tr>    </tr>
297    <xsl:if test="@release!='unstable'">    <xsl:if test="@release!='unstable'">
# Line 148  Line 320 
320    <td class="contentcell">    <td class="contentcell">
321    <xsl:if test="uploaders">    <xsl:if test="uploaders">
322      <xsl:for-each select="uploaders/item">      <xsl:for-each select="uploaders/item">
323        <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:element name="a">
324            <xsl:attribute name="href">
325              <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
326              <xsl:call-template name="escape-name">
327                <xsl:with-param name="text"><xsl:value-of select="email"/></xsl:with-param>
328              </xsl:call-template>
329            </xsl:attribute>
330            <xsl:value-of select="name"/>
331          </xsl:element>
332          [<a class="email" href="mailto:{email}">mail</a>]<br/>
333      </xsl:for-each>      </xsl:for-each>
334    </xsl:if>    </xsl:if>
335    <xsl:if test="not(uploaders)">    <xsl:if test="not(uploaders)">
336      <a class="none" title="You should find some co-maintainers ..." name="fake">None</a>      <a class="none" title="You should find some co-maintainers ..." name="fake">None</a>
337    </xsl:if>    </xsl:if>
338      <xsl:call-template name='add-maintenance-info' />
339    </td></tr>    </td></tr>
340    <tr class="normalrow">    <tr class="normalrow">
341    <td class="labelcell">Standards-Version</td>    <td class="labelcell">Standards-Version</td>
# Line 163  Line 345 
345    <td class="labelcell">Priority &amp; Section</td>    <td class="labelcell">Priority &amp; Section</td>
346    <td class="contentcell"><xsl:value-of select="priority"/> - <xsl:value-of select="section"/></td>    <td class="contentcell"><xsl:value-of select="priority"/> - <xsl:value-of select="section"/></td>
347    </tr>    </tr>
348      <xsl:call-template name='add-vcs-info' />
349    <xsl:if test="architecture!='any' and architecture!='all'">    <xsl:if test="architecture!='any' and architecture!='all'">
350    <tr class="normalrow">    <tr class="normalrow">
351    <td class="labelcell">Architecture</td>    <td class="labelcell">Architecture</td>
# Line 172  Line 355 
355    
356    <tr class="titlerow">    <tr class="titlerow">
357    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
358    Bugs Count    Bugs count
359    </td></tr>    </td></tr>
360    <tr class="normalrow">    <tr class="normalrow" id="bugs_all">
361    <td class="labelcell">All bugs</td>    <td class="labelcell">All bugs</td>
362    <td class="contentcell">    <td class="contentcell">
363    <xsl:element name="a">    <xsl:element name="a">
# Line 190  Line 373 
373    </xsl:element>    </xsl:element>
374    </td>    </td>
375    </tr>    </tr>
376    <tr class="normalrow">    <tr class="normalrow" id="bugs_rc">
377    <td class="labelcell">Release Critical</td>    <td class="labelcell"><span class="indented">Release Critical</span></td>
378    <td class="contentcell">    <td class="contentcell">
379    <xsl:element name="a">    <xsl:element name="a">
380      <xsl:attribute name="href">      <xsl:attribute name="href">
# Line 207  Line 390 
390    </xsl:element>    </xsl:element>
391    </td>    </td>
392    </tr>    </tr>
393    <tr class="normalrow">    <tr class="normalrow" id="bugs_in">
394    <td class="labelcell">Important and Normal</td>    <td class="labelcell"><span class="indented">Important and Normal</span></td>
395    <td class="contentcell">    <td class="contentcell">
396    <xsl:element name="a">    <xsl:element name="a">
397      <xsl:attribute name="href">      <xsl:attribute name="href">
# Line 224  Line 407 
407    </xsl:element>    </xsl:element>
408    </td>    </td>
409    </tr>    </tr>
410    <tr class="normalrow">    <tr class="normalrow" id="bugs_mw">
411    <td class="labelcell">Minor and Wishlist</td>    <td class="labelcell"><span class="indented">Minor and Wishlist</span></td>
412    <td class="contentcell">    <td class="contentcell">
413    <xsl:element name="a">    <xsl:element name="a">
414      <xsl:attribute name="href">      <xsl:attribute name="href">
# Line 241  Line 424 
424    </xsl:element>    </xsl:element>
425    </td>    </td>
426    </tr>    </tr>
427    <tr class="normalrow">    <tr class="normalrow" id="bugs_fp">
428    <td class="labelcell">Fixed and Pending</td>    <td class="labelcell"><span class="indented">Fixed and Pending</span></td>
429    <td class="contentcell">    <td class="contentcell">
430    <xsl:element name="a">    <xsl:element name="a">
431      <xsl:attribute name="href">      <xsl:attribute name="href">
# Line 261  Line 444 
444    
445    <tr class="titlerow">    <tr class="titlerow">
446    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
447    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>      <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
448    </td></tr>    </td></tr>
449    <tr class="normalrow">    <tr class="normalrow">
450    <td class="labelcell">Subscribers count</td>    <td class="labelcell">Subscribers count</td>
# Line 272  Line 455 
455    <tr class="normalrow">    <tr class="normalrow">
456    <td class="contentcell" colspan="2">    <td class="contentcell" colspan="2">
457    <form method="post" action="/cgi-bin/pts.cgi">    <form method="post" action="/cgi-bin/pts.cgi">
458        <p>
459      <input type="hidden" name="package" value="{$package}"/>      <input type="hidden" name="package" value="{$package}"/>
460      <select name="what">      <select name="what">
461        <option value="subscribe">Subscribe</option>        <option value="subscribe">Subscribe</option>
# Line 280  Line 464 
464      </select>      </select>
465      <input type="text" name="email" size="15" value="your email" onFocus="if(email.value=='your email'){{email.value=''}}"/>      <input type="text" name="email" size="15" value="your email" onFocus="if(email.value=='your email'){{email.value=''}}"/>
466      <input type="submit" name="submit" value="Send"/>      <input type="submit" name="submit" value="Send"/>
467        </p>
468    </form>    </form>
469    </td>    </td>
470    </tr>    </tr>
471    
472    <tr class="titlerow">    <tr class="titlerow">
473    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
474    Binary Package(s)    Binary package(s)
475    </td></tr>    </td></tr>
476    <tr class="normalrow">    <tr class="normalrow">
477    <td class="normalcell" colspan="2" style="text-align: left">    <td class="normalcell" colspan="2" style="text-align: left">
478      <ul>
479    <xsl:for-each select="binary/item">    <xsl:for-each select="binary/item">
480      <xsl:sort select="text()"/>      <xsl:sort select="text()"/>
481      <xsl:variable name="pkg" select="text()"/>      <xsl:variable name="pkg" select="text()"/>
482      <li>      <li class="binpkg">
483      <a href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>      <a class="binpkg" href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>
484      <span style="font-size: 70%">      <span style="font-size: 70%">
485      (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:      (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:
486    
# Line 348  Line 534 
534      </span>      </span>
535      </li>      </li>
536    </xsl:for-each>    </xsl:for-each>
537    </td></tr>    </ul></td></tr>
538    
539    <tr class="titlerow">    <tr class="titlerow">
540    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
# Line 358  Line 544 
544    <!-- oldstable -->    <!-- oldstable -->
545    <xsl:if test="$hasoldstable">    <xsl:if test="$hasoldstable">
546    <tr class="normalrow">    <tr class="normalrow">
547    <td class="labelcell"><a href="http://www.debian.org/releases/woody/">Oldstable</a></td>    <td class="labelcell"><a href="http://www.debian.org/releases/sarge/">Oldstable</a></td>
548    <td class="contentcell">    <td class="contentcell">
549    <xsl:value-of select="document(concat('../base/', $dir, '/oldstable.xml'))/source/version"/>    <xsl:value-of select="document(concat('../base/', $dir, '/oldstable.xml'))/source/version"/>
550    </td>    </td>
# Line 445  Line 631 
631    </tr>    </tr>
632    </xsl:if>    </xsl:if>
633    
634      <!-- secure-testing -->
635      <xsl:if test="$hassecure-testing">
636      <tr class="normalrow">
637      <td class="labelcell">Secure testing</td>
638      <td class="contentcell">
639      <xsl:value-of select="document(concat('../base/', $dir, '/secure-testing.xml'))/source/version"/>
640      </td>
641      </tr>
642      </xsl:if>
643    
644      <!-- volatile -->
645      <xsl:if test="$hasvolatile">
646      <tr class="normalrow">
647      <td class="labelcell">Volatile</td>
648      <td class="contentcell">
649      <xsl:value-of select="document(concat('../base/', $dir, '/volatile.xml'))/source/version"/>
650      </td>
651      </tr>
652      </xsl:if>
653    
654    <!-- Patches list [FG] -->    <!-- Patches list [FG] -->
655    <xsl:if test="$other/@patches='yes'">    <xsl:if test="$other/@patches='yes'">
656      <tr class="titlerow">      <tr class="titlerow">
# Line 453  Line 659 
659      </td></tr>      </td></tr>
660      <tr>      <tr>
661      <td class="contentcell" colspan="2" style="text-align: left">      <td class="contentcell" colspan="2" style="text-align: left">
662        <ul>
663      <xsl:for-each select="$other/patches/item">      <xsl:for-each select="$other/patches/item">
664        <li>        <li>
665          <a href="{$other/patches/item/@url}">Patch from <xsl:value-of select="$other/patches/item/@distro"/> for version <xsl:value-of select="$other/patches/item/@version"/></a>          <a href="{$other/patches/item/@url}">Patch from <xsl:value-of select="$other/patches/item/@distro"/> for version <xsl:value-of select="$other/patches/item/@version"/></a>
# Line 460  Line 667 
667      </xsl:for-each>      </xsl:for-each>
668      <xsl:if test="$other/bugs/@patch!='0'">      <xsl:if test="$other/bugs/@patch!='0'">
669        <li>        <li>
670          <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data={$package}&amp;include=patch&amp;exclude=pending">Patches from BTS (<xsl:value-of select="$other/bugs/@patch"/>)</a>          <xsl:element name="a">
671              <xsl:attribute name="href">
672                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
673                <xsl:call-template name="escape-name">
674                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
675                </xsl:call-template>
676                <xsl:text>&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done</xsl:text>
677              </xsl:attribute>
678              Patches from BTS (<xsl:value-of select="$other/bugs/@patch"/>)
679            </xsl:element>
680        </li>        </li>
681      </xsl:if>      </xsl:if>
682        </ul>
683      </td>      </td>
684      </tr>      </tr>
685    </xsl:if>    </xsl:if>
# Line 474  Line 691 
691    </td></tr>    </td></tr>
692    <tr>    <tr>
693    <td class="contentcell" colspan="2" style="text-align: left">    <td class="contentcell" colspan="2" style="text-align: left">
694      <ul>
695    <li>    <li>
696      <xsl:element name="a">      <xsl:element name="a">
697        <xsl:attribute name="href">        <xsl:attribute name="href">
698          <xsl:text>http://packages.debian.org/changelogs/</xsl:text>          <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
699          <xsl:value-of select="directory"/>          <xsl:value-of select="directory"/>
700          <xsl:text>/</xsl:text>          <xsl:text>/current/changelog</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>_</xsl:text>  
         <xsl:call-template name="escape-name">  
           <xsl:with-param name="text">  
             <xsl:call-template name="strip-epoch">  
               <xsl:with-param name="version">  
                 <xsl:value-of select="version"/>  
               </xsl:with-param>  
             </xsl:call-template>  
           </xsl:with-param>  
         </xsl:call-template>  
         <xsl:text>/changelog</xsl:text>  
701        </xsl:attribute>        </xsl:attribute>
702        <xsl:text>Changelog</xsl:text>        <xsl:text>Changelog</xsl:text>
703      </xsl:element>      </xsl:element>
704        /
705        <xsl:element name="a">
706          <xsl:attribute name="href">
707            <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
708            <xsl:value-of select="directory"/>
709            <xsl:text>/current/copyright</xsl:text>
710          </xsl:attribute>
711          <xsl:text>Copyright</xsl:text>
712        </xsl:element>
713    </li>    </li>
714    <xsl:if test="architecture!='all'">    <xsl:if test="architecture!='all'">
715      <li>      <li>
716        <xsl:element name="a">        <xsl:element name="a">
717          <xsl:attribute name="href">          <xsl:attribute name="href">
718            <xsl:text>http://buildd.debian.org/build.php?pkg=</xsl:text>            <xsl:text>http://buildd.debian.org/pkg.cgi?pkg=</xsl:text>
719            <xsl:call-template name="escape-name">            <xsl:call-template name="escape-name">
720              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
721            </xsl:call-template>            </xsl:call-template>
722          </xsl:attribute>          </xsl:attribute>
723          <xsl:text>Buildd logs</xsl:text>          <xsl:text>Buildd logs</xsl:text>
724        </xsl:element>        </xsl:element>
725          <xsl:text> (</xsl:text>
726          <xsl:element name="a">
727            <xsl:attribute name="href">
728              <xsl:text>http://experimental.debian.net/build.php?pkg=</xsl:text>
729              <xsl:call-template name="escape-name">
730                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
731              </xsl:call-template>
732            </xsl:attribute>
733            <xsl:text>more</xsl:text>
734          </xsl:element>
735          <xsl:text>)</xsl:text>
736      </li>      </li>
737    </xsl:if>    </xsl:if>
738    <!-- DISABLED until ddtp.debian.org is back up    <!-- DISABLED until ddtp.debian.org is back up
# Line 538  Line 762 
762      </li>      </li>
763    </xsl:if>    </xsl:if>
764    -->    -->
765    <xsl:if test="$hasunstable and $other/debcheck/@unstable='yes'">    <xsl:if test="($hasunstable and $other/debcheck/@unstable='yes')
766      <li>        or ($hastesting and $other/debcheck/@testing='yes')
767        <xsl:element name="a">        or ($hasstable and $other/debcheck/@stable='yes')">
         <xsl:attribute name="href">  
           <xsl:text>http://qa.debian.org/debcheck.php?dist=unstable&amp;package=</xsl:text>  
           <xsl:call-template name="escape-name">  
             <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
           </xsl:call-template>  
         </xsl:attribute>  
         <xsl:text>Debcheck on unstable</xsl:text>  
       </xsl:element>  
     </li>  
   </xsl:if>  
   <xsl:if test="$hastesting and $other/debcheck/@testing='yes'">  
     <li>  
       <xsl:element name="a">  
         <xsl:attribute name="href">  
           <xsl:text>http://qa.debian.org/debcheck.php?dist=testing&amp;package=</xsl:text>  
           <xsl:call-template name="escape-name">  
             <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
           </xsl:call-template>  
         </xsl:attribute>  
         <xsl:text>Debcheck on testing</xsl:text>  
       </xsl:element>  
     </li>  
   </xsl:if>  
   <xsl:if test="$hasstable and $other/debcheck/@stable='yes'">  
768      <li>      <li>
769        <xsl:element name="a">        Debcheck on:
770          <xsl:attribute name="href">        <xsl:if test="$hasunstable">
771            <xsl:text>http://qa.debian.org/debcheck.php?dist=stable&amp;package=</xsl:text>          <xsl:text> </xsl:text>
772            <xsl:call-template name="escape-name">          <xsl:element name="a">
773              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>            <xsl:attribute name="href">
774            </xsl:call-template>              <xsl:text>http://qa.debian.org/debcheck.php?dist=unstable&amp;package=</xsl:text>
775          </xsl:attribute>              <xsl:call-template name="escape-name">
776          <xsl:text>Debcheck on stable</xsl:text>                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
777        </xsl:element>              </xsl:call-template>
778              </xsl:attribute>
779              <xsl:text>unstable</xsl:text>
780            </xsl:element>
781          </xsl:if>
782          <xsl:if test="$hastesting">
783            <xsl:text> </xsl:text>
784            <xsl:element name="a">
785              <xsl:attribute name="href">
786                <xsl:text>http://qa.debian.org/debcheck.php?dist=testing&amp;package=</xsl:text>
787                <xsl:call-template name="escape-name">
788                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
789                </xsl:call-template>
790              </xsl:attribute>
791              <xsl:text>testing</xsl:text>
792            </xsl:element>
793          </xsl:if>
794          <xsl:if test="$hasstable">
795            <xsl:element name="a">
796              <xsl:attribute name="href">
797                <xsl:text>http://qa.debian.org/debcheck.php?dist=stable&amp;package=</xsl:text>
798                <xsl:call-template name="escape-name">
799                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
800                </xsl:call-template>
801              </xsl:attribute>
802              <xsl:text>stable</xsl:text>
803            </xsl:element>
804          </xsl:if>
805      </li>      </li>
806    </xsl:if>    </xsl:if>
807    <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->    <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->
808                                <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-/()&#34; ', &quot;'&quot;)"/>                                <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-~/()&#34; ', &quot;'&quot;)"/>
809    <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '____________________')"/>    <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '_____________________')"/>
810      <li><a href="http://lintian.debian.org/reports/m{$_name}.html#{$package}">Lintian report</a></li>      <li><a href="http://lintian.debian.org/reports/m{$_name}.html#{$package}">Lintian report</a></li>
811    <li>    <li>
812      <xsl:element name="a">      <xsl:element name="a">
# Line 592  Line 819 
819        <xsl:text>Popcon stats</xsl:text>        <xsl:text>Popcon stats</xsl:text>
820      </xsl:element>      </xsl:element>
821    </li>    </li>
822      <li>
823        <xsl:element name="a">
824          <xsl:attribute name="href">
825            <xsl:text>http://svnbuildstat.debian.net/packages/info/</xsl:text>
826            <xsl:call-template name="escape-name">
827              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
828            </xsl:call-template>
829          </xsl:attribute>
830          <xsl:text>Svnbuildstat</xsl:text>
831        </xsl:element>
832      </li>
833      </ul>
834    </td>    </td>
835    </tr>    </tr>
836    
837    <tr class="titlerow">    <tr class="titlerow">
838    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
839    <xsl:element name="a">    Package files
     <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>  
840    </td></tr>    </td></tr>
841    <tr class="normalrow">    <tr class="titlerow">
842    <td class="normalcell" colspan="2" style="text-align: left">    <td class="labelcell">
   <xsl:for-each select="files/item">  
     <li>  
843      <xsl:element name="a">      <xsl:element name="a">
       <xsl:attribute name="class">srcfile</xsl:attribute>  
844        <xsl:attribute name="href">        <xsl:attribute name="href">
845          <xsl:call-template name="mirror"/>          <xsl:call-template name="mirror"/>
846          <xsl:text>/</xsl:text>          <xsl:text>/</xsl:text>
847          <xsl:value-of select="../../directory"/>          <xsl:value-of select="directory"/>
848          <xsl:text>/</xsl:text>          <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>  
849        </xsl:attribute>        </xsl:attribute>
850        <xsl:value-of select="filename"/>        <xsl:text>Source files</xsl:text>
851      </xsl:element>      </xsl:element>
852      </li>    </td>
853    </xsl:for-each>    <td class="contentcell" id="src_files">
854    </td></tr>      <ul>
855        <xsl:for-each select="files/item">
856          <xsl:variable name="filetype">
857            <xsl:call-template name="categorize-srcfile" />
858          </xsl:variable>
859          <xsl:element name="li">
860            <xsl:attribute name="class">srcfile</xsl:attribute>
861            <xsl:if test="string($filetype)!=''">
862              <xsl:attribute name="id">
863                <xsl:text>srcfile_</xsl:text>
864                <xsl:value-of select="$filetype" />
865              </xsl:attribute>
866            </xsl:if>
867            <xsl:element name="a">
868              <xsl:attribute name="class">srcfile</xsl:attribute>
869              <xsl:attribute name="href">
870                <xsl:call-template name="mirror"/>
871                <xsl:text>/</xsl:text>
872                <xsl:value-of select="../../directory"/>
873                <xsl:text>/</xsl:text>
874                <xsl:value-of select="filename"/>
875              </xsl:attribute>
876              <xsl:attribute name="title">
877                <xsl:value-of select="filename" />
878                <xsl:text>: </xsl:text>
879                <xsl:value-of select="size"/>
880                <xsl:text> bytes</xsl:text>
881              </xsl:attribute>
882              <xsl:text>.</xsl:text>
883              <xsl:value-of select="$filetype"/>
884            </xsl:element>
885          </xsl:element>
886        </xsl:for-each>
887        </ul>
888      </td>
889      </tr>
890    
891    </table>    </table>
892    <!-- END LEFT SIDE -->    <!-- END LEFT SIDE -->
# Line 664  Line 919 
919             (<xsl:value-of select="$other/watch/@new"/>). <a href="{$other/watch/@url}"><xsl:value-of select="$other/watch/@url"/></a></li>             (<xsl:value-of select="$other/watch/@new"/>). <a href="{$other/watch/@url}"><xsl:value-of select="$other/watch/@url"/></a></li>
920        </xsl:if>        </xsl:if>
921        <xsl:if test="$other/bugs/@patch!='0'">        <xsl:if test="$other/bugs/@patch!='0'">
922          <li>The Bug Tracking System contains <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data={$package}&amp;include=patch&amp;exclude=pending"><xsl:value-of select="$other/bugs/@patch"/> patch(es)</a>, you should include it(them).</li>          <li>The Bug Tracking System contains
923            <xsl:element name="a">
924              <xsl:attribute name="href">
925                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
926                <xsl:call-template name="escape-name">
927                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
928                </xsl:call-template>
929                <xsl:text>&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done</xsl:text>
930              </xsl:attribute>
931              <xsl:value-of select="$other/bugs/@patch"/> patch<xsl:if test="$other/bugs/@patch!='1'">es</xsl:if>
932            </xsl:element>, you should include
933            <xsl:if test="$other/bugs/@patch!='1'">them</xsl:if>
934            <xsl:if test="$other/bugs/@patch='1'">it</xsl:if>.
935            </li>
936        </xsl:if>        </xsl:if>
937      </xsl:if>      </xsl:if>
938    </xsl:variable>    </xsl:variable>
# Line 674  Line 942 
942    Todo    Todo
943    </td></tr>    </td></tr>
944    <tr class="normalrow">    <tr class="normalrow">
945    <td class="contentcell2"><xsl:copy-of select="$todo"/>    <td class="contentcell2">
946      <ul>
947      <xsl:copy-of select="$todo"/>
948      </ul>
949    </td>    </td>
950    </tr>    </tr>
951    </xsl:if>    </xsl:if>
# Line 703  Line 974 
974        and your package only follows        and your package only follows
975        <xsl:value-of select="standards-version"/>...</li>        <xsl:value-of select="standards-version"/>...</li>
976      </xsl:if>      </xsl:if>
977        <xsl:if test="@release!='unstable' and @release!='experimental'">
978          <li>This package is neither part of unstable nor experimental. This
979          probably means that the package <a
980          href="http://ftp-master.debian.org/removals.txt">has been removed</a> (or
981          has been renamed). Thus the information here is of little interest ...
982          the package is going to disappear unless someone takes it over and
983          reintroduces it into unstable.</li>
984        </xsl:if>
985      <xsl:if test="$hasother">      <xsl:if test="$hasother">
986    
987        <!-- Override disparity handling. [JvW] -->        <!-- Override disparity handling. [JvW] -->
# Line 724  Line 1003 
1003        <li>        <li>
1004          <xsl:choose>          <xsl:choose>
1005            <xsl:when test="$other/wnpp/@type='O'">            <xsl:when test="$other/wnpp/@type='O'">
1006              <xsl:choose>
1007              <xsl:when test="@release!='unstable' and @release!='experimental'">
1008              The WNPP database contains an O (Orphaned) entry for
1009              this package. This is probably an error, as it is neither part of
1010              unstable nor experimental.
1011              </xsl:when>
1012              <xsl:otherwise>
1013            <span style="font-weight: bold">This package has been orphaned</span>.            <span style="font-weight: bold">This package has been orphaned</span>.
1014            This means that it does not have a real maintainer at the            This means that it does not have a real maintainer at the
1015            moment. Please consider adopting this package if you are interested in it.            moment. Please consider adopting this package if you are interested in it.
1016              </xsl:otherwise>
1017              </xsl:choose>
1018            </xsl:when>            </xsl:when>
1019            <xsl:when test="$other/wnpp/@type='ITA'">            <xsl:when test="$other/wnpp/@type='ITA'">
1020              <xsl:choose>
1021              <xsl:when test="@release!='unstable' and @release!='experimental'">
1022              The WNPP database contains an ITA (Intent To Adopt) entry for
1023              this package. This is probably an error, as it is neither part of
1024              unstable nor experimental.
1025              </xsl:when>
1026              <xsl:otherwise>
1027            This package has been orphaned, but someone intends to maintain it.            This package has been orphaned, but someone intends to maintain it.
1028              </xsl:otherwise>
1029              </xsl:choose>
1030            </xsl:when>            </xsl:when>
1031            <xsl:when test="$other/wnpp/@type='RFA'">            <xsl:when test="$other/wnpp/@type='RFA'">
1032              <xsl:choose>
1033              <xsl:when test="@release!='unstable' and @release!='experimental'">
1034              The WNPP database contains an RFA (Request For Adoption) entry for
1035              this package. This is probably an error, as it is neither part of
1036              unstable nor experimental.
1037              </xsl:when>
1038              <xsl:otherwise>
1039            The current maintainer is looking for someone who can take over            The current maintainer is looking for someone who can take over
1040            maintenance of this package. If you are interested in this package,            maintenance of this package. If you are interested in this package,
1041            please consider taking it over. Alternatively you may            please consider taking it over. Alternatively you may
1042            want to be co-maintainer in order to help the actual maintainer.            want to be co-maintainer in order to help the actual maintainer.
1043              </xsl:otherwise>
1044              </xsl:choose>
1045            </xsl:when>            </xsl:when>
1046            <xsl:when test="$other/wnpp/@type='RFH'">            <xsl:when test="$other/wnpp/@type='RFH'">
1047              <xsl:choose>
1048              <xsl:when test="@release!='unstable' and @release!='experimental'">
1049              The WNPP database contains an RFH (Request For Help) entry for
1050              this package. This is probably an error, as it is neither part of
1051              unstable nor experimental.
1052              </xsl:when>
1053              <xsl:otherwise>
1054            The current maintainer is looking for someone who can help with the            The current maintainer is looking for someone who can help with the
1055            maintenance of this package. If you are interested in this package,            maintenance of this package. If you are interested in this package,
1056            please consider helping out. One way you can help is offer to be a            please consider helping out. One way you can help is offer to be a
1057            co-maintainer or triage bugs in the bts.            co-maintainer or triage bugs in the bts.
1058              </xsl:otherwise>
1059              </xsl:choose>
1060            </xsl:when>            </xsl:when>
1061            <xsl:when test="$other/wnpp/@type='ITP'">            <xsl:when test="$other/wnpp/@type='ITP'">
1062              <xsl:choose>
1063              <xsl:when test="@release!='unstable' and @release!='experimental'">
1064              The WNPP database contains an ITP (Intent To Package). This probably
1065              means that somebody is going to reintroduce this package into unstable.
1066              </xsl:when>
1067              <xsl:otherwise>
1068            The WNPP database contains an ITP (Intent To Package) entry for            The WNPP database contains an ITP (Intent To Package) entry for
1069            this package. This is probably an error, as it has already been            this package. This is probably an error, as it has already been
1070            packaged.            packaged.
1071              </xsl:otherwise>
1072              </xsl:choose>
1073            </xsl:when>            </xsl:when>
1074            <xsl:when test="$other/wnpp/@type='RFP'">            <xsl:when test="$other/wnpp/@type='RFP'">
1075              <xsl:choose>
1076              <xsl:when test="@release!='unstable' and @release!='experimental'">
1077              The WNPP database contains an RFP (Request For Package). This probably
1078              means that somebody would like to see this package reintroduced into
1079              unstable by a volunteer.
1080              </xsl:when>
1081              <xsl:otherwise>
1082            The WNPP database contains an RFP (Request For Package) entry            The WNPP database contains an RFP (Request For Package) entry
1083            for this package.  This is probably an error, as it has already            for this package.  This is probably an error, as it has already
1084            been packaged.            been packaged.
1085              </xsl:otherwise>
1086              </xsl:choose>
1087            </xsl:when>            </xsl:when>
1088            <xsl:when test="$other/wnpp/@type='RM'">            <xsl:when test="$other/wnpp/@type='RM'">
1089            <span style="font-weight: bold">This package has been requested to be            <span style="font-weight: bold">This package has been requested to be
# Line 793  Line 1125 
1125    Problems    Problems
1126    </td></tr>    </td></tr>
1127    <tr class="normalrow">    <tr class="normalrow">
1128    <td class="contentcell2"><xsl:copy-of select="$problems"/>    <td class="contentcell2">
1129      <ul><xsl:copy-of select="$problems"/></ul>
1130    </td>    </td>
1131    </tr>    </tr>
1132    </xsl:if>    </xsl:if>
# Line 805  Line 1138 
1138    </td></tr>    </td></tr>
1139    <tr class="normalrow">    <tr class="normalrow">
1140    <td class="contentcell2" style="text-align: left">    <td class="contentcell2" style="text-align: left">
1141      <ul>
1142    <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">    <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
1143      <xsl:call-template name="outputitem"/>      <xsl:call-template name="outputitem"/>
1144    </xsl:for-each>    </xsl:for-each>
1145      </ul>
1146    </td>    </td>
1147    </tr>    </tr>
1148    </xsl:if>    </xsl:if>
   
   
   <xsl:variable name="static">  
     <xsl:if test="$hasnews">  
       <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">  
         <xsl:call-template name="outputitem"/>  
       </xsl:for-each>  
     </xsl:if>  
   </xsl:variable>  
   <xsl:if test="count($static)>0 and string($static)!=''">  
     <tr class="titlerow">  
     <td class="titlecell">  
     Static Information  
     </td></tr>  
     <tr class="normalrow">  
     <td class="contentcell2"><xsl:copy-of select="$static"/></td>  
     </tr>  
   </xsl:if>  
1149    
1150    <xsl:variable name="news">    <xsl:call-template name="output-static">
1151      <xsl:if test="$hasnews">      <xsl:with-param name="static" select="$static" />
1152        <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">    </xsl:call-template>
1153          <xsl:call-template name="outputitem"/>    <xsl:call-template name="output-news">
1154        </xsl:for-each>      <xsl:with-param name="news" select="$news" />
1155      </xsl:if>    </xsl:call-template>
   </xsl:variable>  
   <xsl:if test="count($news)>0 and string($news)!=''">  
     <tr class="titlerow">  
     <td class="titlecell">  
     Latest News  
     </td></tr>  
     <tr class="normalrow">  
     <td class="contentcell2"><xsl:copy-of select="$news"/></td>  
     </tr>  
   </xsl:if>  
1156    
1157    </table>    </table>
1158    <!-- END RIGHT SIDE -->    <!-- END RIGHT SIDE -->
1159    </td></tr>    </td></tr>
1160    </table>    </table>
1161    
1162      <!-- END NON REMOVED PACKAGE -->
1163      </xsl:otherwise>
1164      </xsl:choose>
1165    
1166    <hr/>    <hr/>
1167    Debian Package Tracking System - Copyright 2002-2004 Raphaël Hertzog<br/>    <p>
1168      Debian Package Tracking System - Copyright 2002-2006 Raphaël Hertzog and
1169      others<br/>
1170      Report problems to the <a href="http://bugs.debian.org/qa.debian.org"
1171      >qa.debian.org pseudopackage</a><br/>
1172    Last modified : <xsl:value-of select="$date"/>    Last modified : <xsl:value-of select="$date"/>
1173      </p>
1174    </body>    </body>
1175    </html>    </html>
1176  </xsl:template>  </xsl:template>

Legend:
Removed from v.1049  
changed lines
  Added in v.1760

  ViewVC Help
Powered by ViewVC 1.1.5