/[qa]/trunk/pts/www/xsl/pts.xsl
ViewVC logotype

Contents of /trunk/pts/www/xsl/pts.xsl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 352 - (hide annotations) (download) (as text)
Sun Aug 25 21:48:43 2002 UTC (10 years, 9 months ago) by hertzog
File MIME type: application/xml
File size: 16455 byte(s)
* Enhancement to the update_excuses transcription.
* Add a link in "Co-maintainers" field.
* Fix bin/do_all.sh with xargs -r
* Added the licence blurb in common.py.
* Added the TODO list for the web interface.
1 hertzog 347 <?xml version="1.0" encoding="ISO-8859-1" ?>
2 hertzog 351
3     <!--
4     # Copyright 2002 Raphaël Hertzog
5     # This file is distributed under the terms of the General Public License
6     # version 2 or (at your option) any later version.
7     -->
8    
9 hertzog 347 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
10    
11     <xsl:output encoding="ISO-8859-1" method="html"/>
12    
13     <xsl:param name="package"/>
14     <xsl:param name="dir"/>
15     <xsl:param name="date"/>
16     <xsl:param name="hasstable" select="''"/>
17     <xsl:param name="hastesting" select="''"/>
18     <xsl:param name="hasunstable" select="''"/>
19     <xsl:param name="hasexperimental" select="''"/>
20     <xsl:param name="hasother" select="''"/>
21 hertzog 351 <xsl:param name="hass-p-u" select="''"/>
22     <xsl:param name="hast-p-u" select="''"/>
23     <xsl:param name="hasstable-security" select="''"/>
24     <xsl:param name="hastesting-security" select="''"/>
25 hertzog 347
26     <xsl:variable name="exc" select="document('../base/update_excuses.xml')/excuses"/>
27     <xsl:variable name="other" select="document(concat('../base/', $dir, '/other.xml'))/other"/>
28    
29     <!-- Those variables controls the todo and problem item concerning
30     standards-version not being up to date -->
31     <xsl:variable name="lastsv" select="'3.5.6'"/>
32     <xsl:variable name="lastmajorsv" select="'3.'"/>
33     <!-- More variables -->
34     <xsl:variable name="ptsurl" select="'http://pts.debian.net'"/>
35    
36     <!-- Named templates aka functions -->
37     <xsl:template name="mirror">
38     <xsl:choose>
39     <xsl:when test="contains(source/section, 'non-US')">
40     <xsl:text>http://non-us.debian.org/debian-non-US</xsl:text>
41     </xsl:when>
42     <xsl:otherwise>
43     <xsl:text>http://http.us.debian.org/debian</xsl:text>
44     </xsl:otherwise>
45     </xsl:choose>
46     </xsl:template>
47    
48     <xsl:template name="outputitem">
49     <xsl:choose>
50     <xsl:when test="@url">
51     <li><xsl:if test="@date">
52     <xsl:text>[</xsl:text>
53     <xsl:value-of select="@date"/>
54     <xsl:text>] </xsl:text>
55     </xsl:if><a href="{@url}"><xsl:value-of select="text()"/></a></li>
56     </xsl:when>
57     <xsl:otherwise>
58     <li><xsl:if test="@date">
59     <xsl:text>[</xsl:text>
60     <xsl:value-of select="@date"/>
61     <xsl:text>] </xsl:text>
62     </xsl:if><xsl:value-of select="text()"/></li>
63     </xsl:otherwise>
64     </xsl:choose>
65     </xsl:template>
66    
67     <!-- All the work is done in a single template -->
68     <xsl:template match="source">
69    
70     <!-- Start of html -->
71     <html>
72     <head>
73 hertzog 350 <meta name="ROBOTS" content="NOFOLLOW"/>
74 hertzog 347 <link rel="stylesheet" href="../common/pts.css"/>
75     <title>Overview of <xsl:value-of select="$package"/> source package</title>
76     </head>
77     <body>
78     <h1>Overview of <xsl:value-of select="$package"/> source package</h1>
79     <table class="containertable">
80     <tr class="containerrow" valign="top">
81     <td class="containercell">
82     <!-- LEFT SIDE -->
83     <table class="lefttable">
84     <tr class="titlerow">
85     <td class="titlecell" colspan="2">
86     General Information
87     </td></tr>
88     <tr class="normalrow">
89     <td class="labelcell">Last version</td>
90     <td class="contentcell"><xsl:value-of select="version"/></td>
91     </tr>
92     <xsl:if test="@release!='unstable'">
93     <tr class="normalrow">
94     <td class="labelcell">Distribution</td>
95     <td class="contentcell"><xsl:value-of select="@release"/></td>
96     </tr>
97     </xsl:if>
98     <tr class="normalrow">
99     <td class="labelcell">Maintainer</td>
100     <td class="contentcell"><a class="email" href="mailto:{maintainer/email}">
101     <xsl:value-of select="maintainer/name"/></a></td>
102     </tr>
103     <tr class="normalrow">
104 hertzog 352 <td class="labelcell"><a href="http://www.debian.org/doc/manuals/developers-reference/ch-pkgs.en.html#s-collaborative-maint">Co-Maintainers</a></td>
105 hertzog 347 <td class="contentcell">
106     <xsl:if test="uploaders">
107     <xsl:for-each select="uploaders/item">
108     <a class="email" href="mailto:{email}"><xsl:value-of select="name"/></a><br/>
109     </xsl:for-each>
110     </xsl:if>
111     <xsl:if test="not(uploaders)">
112     <a class="none" title="You should find some co-maintainers ..." name="fake">None</a>
113     </xsl:if>
114     </td></tr>
115     <tr class="normalrow">
116     <td class="labelcell">Standards-Version</td>
117     <td class="contentcell"><xsl:value-of select="standards-version"/></td>
118     </tr>
119    
120     <tr class="titlerow">
121     <td class="titlecell" colspan="2">
122     Bugs Count
123     </td></tr>
124     <tr class="normalrow">
125     <td class="labelcell">All bugs</td>
126     <td class="contentcell">
127     <a href="http://bugs.debian.org/src:{$package}"><xsl:if test="$hasother">
128     <xsl:value-of select="$other/bugs/@all"/>
129     </xsl:if></a>
130     </td>
131     </tr>
132     <tr class="normalrow">
133     <td class="labelcell">Release Critical</td>
134     <td class="contentcell">
135     <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data={$package}&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:if test="$hasother">
136     <xsl:value-of select="$other/bugs/@rc"/>
137     </xsl:if></a>
138     </td>
139     </tr>
140     <tr class="normalrow">
141     <td class="labelcell">Important and Normal</td>
142     <td class="contentcell">
143     <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data={$package}&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:if test="$hasother">
144     <xsl:value-of select="$other/bugs/@normal"/>
145     </xsl:if></a>
146     </td>
147     </tr>
148     <tr class="normalrow">
149     <td class="labelcell">Minor and Wishlist</td>
150     <td class="contentcell">
151     <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data={$package}&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:if test="$hasother">
152     <xsl:value-of select="$other/bugs/@wishlist"/>
153     </xsl:if></a>
154     </td>
155     </tr>
156     <tr class="normalrow">
157     <td class="labelcell">Fixed and Pending</td>
158     <td class="contentcell">
159     <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data={$package}&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed"><xsl:if test="$hasother">
160     <xsl:value-of select="$other/bugs/@fixed"/>
161     </xsl:if></a>
162     </td>
163     </tr>
164    
165     <tr class="titlerow">
166     <td class="titlecell" colspan="2">
167     Subcription - <a class="titlelink" href="http://www.debian.org/doc/manuals/developers-reference/ch-resources.en.html#s-pkg-tracking-system">Package Tracking System</a>
168     </td></tr>
169     <tr class="normalrow">
170     <td class="labelcell">Subscribers count</td>
171     <td class="contentcell"><xsl:if test="$hasother">
172     <xsl:value-of select="$other/pts/@count"/>
173     </xsl:if></td>
174     </tr>
175     <tr class="normalrow">
176     <td class="contentcell" colspan="2">
177     <form method="post" action="{$ptsurl}/common/pts.cgi">
178     <input type="hidden" name="package" value="{$package}"/>
179     <select name="what">
180     <option value="subscribe">Subscribe</option>
181     <option value="unsubscribe">Unsubscribe</option>
182     <option value="advanced">Advanced mode</option>
183     </select>
184     <input type="text" name="email" size="15" value="your email" onFocus="if(email.value=='your email'){{email.value=''}}"/>
185     <input type="submit" name="submit" value="Send"/>
186     </form>
187     </td>
188     </tr>
189    
190     <tr class="titlerow">
191     <td class="titlecell" colspan="2">
192     Binary Package(s)
193     </td></tr>
194     <tr class="normalrow">
195     <td class="normalcell" colspan="2" style="text-align: left">
196     <xsl:for-each select="binary/item">
197     <xsl:sort select="text()"/>
198     <xsl:variable name="pkg" select="text()"/>
199     <li>
200     <a href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>
201     <span style="font-size: 70%">
202     (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:
203     <a title="critical, grave and serious" href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data={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:value-of select="$other/bugs/item[@name=$pkg]/@rc"/></a>,
204     <a title="important and normal" href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data={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:value-of select="$other/bugs/item[@name=$pkg]/@normal"/></a>,
205     <a title="wishlist and minor" href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data={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:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/></a>,
206     <a title="pending and fixed" href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data={text()}&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/></a>)
207     </span>
208     </li>
209     </xsl:for-each>
210     </td></tr>
211    
212     <tr class="titlerow">
213     <td class="titlecell" colspan="2">
214     Other available versions
215     </td></tr>
216     <xsl:if test="$hasexperimental">
217     <tr class="normalrow">
218     <td class="labelcell">Experimental</td>
219     <td class="contentcell">
220     <xsl:value-of select="document(concat('../base/', $dir, '/experimental.xml'))/source/version"/>
221     </td>
222     </tr>
223     </xsl:if>
224 hertzog 351 <xsl:if test="$hasstable-security">
225     <tr class="normalrow">
226     <td class="labelcell">Security Updates (stable)</td>
227     <td class="contentcell">
228     <xsl:value-of select="document(concat('../base/', $dir, '/stable-security.xml'))/source/version"/>
229     </td>
230     </tr>
231     </xsl:if>
232     <xsl:if test="$hastesting-security">
233     <tr class="normalrow">
234     <td class="labelcell">Security Updates (testing)</td>
235     <td class="contentcell">
236     <xsl:value-of select="document(concat('../base/', $dir, '/testing-security.xml'))/source/version"/>
237     </td>
238     </tr>
239     </xsl:if>
240 hertzog 347 <xsl:if test="$hastesting">
241     <tr class="normalrow">
242     <td class="labelcell">Testing</td>
243     <td class="contentcell">
244     <xsl:value-of select="document(concat('../base/', $dir, '/testing.xml'))/source/version"/>
245     </td>
246     </tr>
247     </xsl:if>
248 hertzog 351 <xsl:if test="$hast-p-u">
249     <tr class="normalrow">
250     <td class="labelcell">Testing Proposed Updates</td>
251     <td class="contentcell">
252     <xsl:value-of select="document(concat('../base/', $dir, '/t-p-u.xml'))/source/version"/>
253     </td>
254     </tr>
255     </xsl:if>
256 hertzog 347 <xsl:if test="$hasstable">
257     <tr class="normalrow">
258     <td class="labelcell">Stable</td>
259     <td class="contentcell">
260     <xsl:value-of select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/>
261     </td>
262     </tr>
263     </xsl:if>
264 hertzog 351 <xsl:if test="$hass-p-u">
265     <tr class="normalrow">
266     <td class="labelcell">Stable Proposed Updates</td>
267     <td class="contentcell">
268     <xsl:value-of select="document(concat('../base/', $dir, '/s-p-u.xml'))/source/version"/>
269     </td>
270     </tr>
271     </xsl:if>
272    
273 hertzog 347 <tr class="titlerow">
274     <td class="titlecell" colspan="2">
275     Other links
276     </td></tr>
277     <tr>
278     <td class="contentcell" colspan="2" style="text-align: left">
279     <xsl:if test="architecture!='all'">
280     <li><a href="http://buildd.debian.org/build.php?pkg={$package}">Buildd logs</a></li>
281     </xsl:if>
282     <xsl:if test="$hasunstable">
283     <li><a href="http://qa.debian.org/debcheck.php?dist=unstable&amp;package={$package}">Debcheck on unstable</a></li>
284     </xsl:if>
285     <xsl:if test="$hastesting">
286     <li><a href="http://qa.debian.org/debcheck.php?dist=testing&amp;package={$package}">Debcheck on testing</a></li>
287     </xsl:if>
288     <xsl:if test="$hasstable">
289     <li><a href="http://qa.debian.org/debcheck.php?dist=stable&amp;package={$package}">Debcheck on stable</a></li>
290     </xsl:if>
291     </td>
292     </tr>
293    
294     <tr class="titlerow">
295     <td class="titlecell" colspan="2">
296     <xsl:element name="a">
297     <xsl:attribute name="class">
298     <xsl:text>titlelink</xsl:text>
299     </xsl:attribute>
300     <xsl:attribute name="href">
301     <xsl:call-template name="mirror"/>
302     <xsl:text>/</xsl:text>
303     <xsl:value-of select="directory"/>
304     <xsl:text>/</xsl:text>
305     </xsl:attribute>
306     <xsl:text>Source files</xsl:text>
307     </xsl:element>
308     </td></tr>
309     <tr class="normalrow">
310     <td class="normalcell" colspan="2" style="text-align: left">
311     <xsl:for-each select="files/item">
312     <li>
313     <xsl:element name="a">
314     <xsl:attribute name="class">srcfile</xsl:attribute>
315     <xsl:attribute name="href">
316     <xsl:call-template name="mirror"/>
317     <xsl:text>/</xsl:text>
318     <xsl:value-of select="../../directory"/>
319     <xsl:text>/</xsl:text>
320     <xsl:value-of select="filename"/>
321     </xsl:attribute>
322     <xsl:attribute name="title">
323     <xsl:value-of select="size"/>
324     <xsl:text> bytes</xsl:text>
325     </xsl:attribute>
326     <xsl:value-of select="filename"/>
327     </xsl:element>
328     </li>
329     </xsl:for-each>
330     </td></tr>
331    
332     </table>
333     <!-- END LEFT SIDE -->
334     </td><td class="containercell">
335     <!-- RIGHT SIDE -->
336     <table class="righttable">
337    
338    
339     <!-- Todo list -->
340     <xsl:variable name="todo">
341     <xsl:if test="@nmu">
342     <li>Incorporate and acknowledge the changes from the non maintainer upload.</li>
343     </xsl:if>
344     <xsl:if test="not(uploaders)and(priority='standard' or priority='required' or priority='important')">
345     <li>The package is of priority standard or higher, you should really find some co-maintainers.</li>
346     </xsl:if>
347     <xsl:if test="not(starts-with(standards-version, $lastsv))">
348     <li>You should update the package to follow the last version of
349     Debian Policy (Standards-Version
350     <xsl:value-of select="$lastsv"/> instead of
351     <xsl:value-of select="standards-version"/>).</li>
352     </xsl:if>
353     <xsl:if test="$hasother">
354     <xsl:for-each select="$other/todo/item">
355     <xsl:call-template name="outputitem"/>
356     </xsl:for-each>
357     </xsl:if>
358     </xsl:variable>
359     <xsl:if test="count($todo)>0">
360     <tr class="titlerow">
361 hertzog 352 <td class="titlecell" style="background-color: blue">
362 hertzog 347 Todo
363     </td></tr>
364     <tr class="normalrow">
365     <td class="contentcell2"><xsl:copy-of select="$todo"/>
366     </td>
367     </tr>
368     </xsl:if>
369    
370     <!-- List of problems -->
371     <xsl:variable name="problems">
372     <xsl:if test="$exc/excuse[@name=$package]/@problematic">
373     <li>The package has not yet entered <a
374     href="http://ftp-master.debian.org/testing/update_excuses.html#{$package}">testing</a>
375     even if the <xsl:value-of select="$exc/excuse[@name=$package]/@limit"/>-day
376     delay is over.</li>
377     </xsl:if>
378     <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">
379     <li>The package is severly out of date with respect to the Debian
380     Policy. Latest version is <xsl:value-of select="$lastsv"/>
381     and your package only follows
382     <xsl:value-of select="standards-version"/>...</li>
383     </xsl:if>
384     <xsl:if test="$hasother">
385     <xsl:for-each select="$other/problems/item">
386     <xsl:call-template name="outputitem"/>
387     </xsl:for-each>
388     </xsl:if>
389     </xsl:variable>
390     <xsl:if test="count($problems)>0">
391     <tr class="titlerow">
392 hertzog 352 <td class="titlecell" style="background-color: red">
393 hertzog 347 Problems
394     </td></tr>
395     <tr class="normalrow">
396     <td class="contentcell2"><xsl:copy-of select="$problems"/>
397     </td>
398     </tr>
399     </xsl:if>
400    
401     <xsl:if test="$exc/excuse[@name=$package]">
402     <tr class="titlerow">
403     <td class="titlecell">
404     Testing Status
405     </td></tr>
406     <tr class="normalrow">
407     <td class="contentcell2" style="text-align: left">
408     <xsl:for-each select="$exc/excuse[@name=$package]/item">
409     <xsl:call-template name="outputitem"/>
410     </xsl:for-each>
411     </td>
412     </tr>
413     </xsl:if>
414    
415    
416     <xsl:variable name="static">
417     <xsl:if test="$hasother">
418     <xsl:for-each select="$other/static/item">
419     <xsl:call-template name="outputitem"/>
420     </xsl:for-each>
421     </xsl:if>
422     </xsl:variable>
423     <xsl:if test="count($static)>0">
424     <tr class="titlerow">
425     <td class="titlecell">
426     Static Information
427     </td></tr>
428     <tr class="normalrow">
429     <td class="contentcell2"><xsl:copy-of select="$static"/></td>
430     </tr>
431     </xsl:if>
432    
433     <xsl:variable name="news">
434     <xsl:if test="$hasother">
435     <xsl:for-each select="$other/news/item">
436     <xsl:call-template name="outputitem"/>
437     </xsl:for-each>
438     </xsl:if>
439     </xsl:variable>
440     <xsl:if test="count($news)>0">
441     <tr class="titlerow">
442     <td class="titlecell">
443     Latest News
444     </td></tr>
445     <tr class="normalrow">
446     <td class="contentcell2"><xsl:copy-of select="$news"/></td>
447     </tr>
448     </xsl:if>
449    
450     </table>
451     <!-- END RIGHT SIDE -->
452     </td></tr>
453     </table>
454     <hr/>
455     Debian Package Tracking System - Copyright 2002 Raphaël Hertzog<br/>
456     Last modified : <xsl:value-of select="$date"/>
457     </body>
458     </html>
459     </xsl:template>
460    
461     </xsl:stylesheet>

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.5