/[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 949 by jeroen, Sun Feb 13 18:29:50 2005 UTC revision 1712 by hertzog, Sun Sep 2 15:58:06 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 13  Line 13 
13  <xsl:param name="package"/>  <xsl:param name="package"/>
14  <xsl:param name="dir"/>  <xsl:param name="dir"/>
15  <xsl:param name="date"/>  <xsl:param name="date"/>
16    <xsl:param name="hasoldstable" select="''"/>
17  <xsl:param name="hasstable" select="''"/>  <xsl:param name="hasstable" select="''"/>
18  <xsl:param name="hastesting" select="''"/>  <xsl:param name="hastesting" select="''"/>
19  <xsl:param name="hasunstable" select="''"/>  <xsl:param name="hasunstable" select="''"/>
# Line 20  Line 21 
21  <xsl:param name="hasother" select="''"/>  <xsl:param name="hasother" select="''"/>
22  <xsl:param name="hass-p-u" select="''"/>  <xsl:param name="hass-p-u" select="''"/>
23  <xsl:param name="hast-p-u" select="''"/>  <xsl:param name="hast-p-u" select="''"/>
24    <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 29  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.1'"/>  <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 -->
40  <xsl:template name="mirror">  <xsl:template name="mirror">
41    <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>  
42  </xsl:template>  </xsl:template>
43    
44  <xsl:template name="outputitem">  <xsl:template name="outputitem">
# Line 67  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 82  Line 80 
80    </xsl:if>    </xsl:if>
81  </xsl:template>  </xsl:template>
82    
83    <!-- Strip epoch -->
84    <xsl:template name="strip-epoch">
85      <xsl:param name="version"/>
86      <xsl:if test="contains($version,':')">
87        <xsl:value-of select="substring-after($version,':')"/>
88      </xsl:if>
89      <xsl:if test="not(contains($version,':'))">
90        <xsl:value-of select="$version"/>
91      </xsl:if>
92    </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  <!-- All the work is done in a single template -->  <!-- All the work is done in a single template -->
125  <xsl:template match="source">  <xsl:template match="source">
126    
127    <!-- Start of html -->    <!-- Start of html -->
128      <xsl:text disable-output-escaping="yes">
129      &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;
130      </xsl:text>
131    <html>    <html>
132    <head>    <head>
133    <meta name="ROBOTS" content="NOFOLLOW"/>    <meta name="ROBOTS" content="NOFOLLOW"/>
134    <link title="Default" rel="stylesheet" href="../common/pts.css"/>    <link type="text/css" title="Default" rel="stylesheet" href="../common/pts.css"/>
135    <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"/>
136    <title>Overview of <xsl:value-of select="$package"/> source package</title>    <title>Overview of <xsl:value-of select="$package"/> source package</title>
137    </head>    </head>
138    <body>    <body>
139    
140    <form method="get" action="/common/index.html" style="float: right;">    <form method="get" action="/common/index.html" style="float: right;">
141    <!-- this link should make lynx/links happy [FG] -->    <!-- this link should make lynx/links happy [FG] -->
142    Jump to package (<a href="/">home page</a>): <br/>    <p>Jump to package (<a href="/">home page</a>): <br/>
143    <input type="text" name="src" value=""/>    <input type="text" name="src" value=""/></p>
144    </form>    </form>
145    <h1>Overview of <xsl:value-of select="$package"/> source package</h1>    <h1>Overview of
146      <xsl:element name="a">
147        <xsl:attribute name="href">
148          <xsl:text>http://packages.debian.org/src:</xsl:text>
149           <xsl:value-of select="$package"/>
150        </xsl:attribute>
151       <xsl:value-of select="$package"/>
152      </xsl:element>
153      source package</h1>
154    
155      <xsl:choose>
156      <xsl:when test="$removed='yes'">
157      <!-- REMOVED PACKAGE -->
158      <p>This package is not part of any Debian distribution. Thus you won't
159      find much information here. The package is either very new and hasn't
160      appeared on mirrors yet, or it's an old package that eventually got removed.
161      The old news are kept for historic purpose only.</p>
162    
163      <table class="righttable">
164      <xsl:variable name="static">
165        <xsl:if test="$hasnews">
166          <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">
167            <xsl:call-template name="outputitem"/>
168          </xsl:for-each>
169        </xsl:if>
170      </xsl:variable>
171      <xsl:if test="count($static)>0 and string($static)!=''">
172        <tr class="titlerow">
173        <td class="titlecell">
174        Static Information
175        </td></tr>
176        <tr class="normalrow">
177        <td class="contentcell2">
178        <ul><xsl:copy-of select="$static"/></ul>
179        </td>
180        </tr>
181      </xsl:if>
182    
183      <xsl:variable name="news">
184        <xsl:if test="$hasnews">
185          <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">
186            <xsl:call-template name="outputitem"/>
187          </xsl:for-each>
188        </xsl:if>
189      </xsl:variable>
190      <xsl:if test="count($news)>0 and string($news)!=''">
191        <tr class="titlerow">
192        <td class="titlecell">
193        Latest News
194        </td></tr>
195        <tr class="normalrow">
196        <td class="contentcell2">
197        <ul><xsl:copy-of select="$news"/></ul>
198        </td>
199        </tr>
200      </xsl:if>
201      </table>
202    
203      <!-- END REMOVED PACKAGE -->
204      </xsl:when>
205      <xsl:otherwise>
206      <!-- NON REMOVED PACKAGE -->
207    
208    <table class="containertable">    <table class="containertable">
209    <tr class="containerrow" valign="top">    <tr class="containerrow" valign="top">
210    <td class="containercell">    <td class="containercell">
# Line 113  Line 215 
215    General Information    General Information
216    </td></tr>    </td></tr>
217    <tr class="normalrow">    <tr class="normalrow">
218    <td class="labelcell">Last version</td>    <td class="labelcell">Latest version</td>
219    <td class="contentcell"><xsl:value-of select="version"/></td>    <td class="contentcell"><xsl:value-of select="version"/></td>
220    </tr>    </tr>
221    <xsl:if test="@release!='unstable'">    <xsl:if test="@release!='unstable'">
# Line 142  Line 244 
244    <td class="contentcell">    <td class="contentcell">
245    <xsl:if test="uploaders">    <xsl:if test="uploaders">
246      <xsl:for-each select="uploaders/item">      <xsl:for-each select="uploaders/item">
247        <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">
248            <xsl:attribute name="href">
249              <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
250              <xsl:call-template name="escape-name">
251                <xsl:with-param name="text"><xsl:value-of select="email"/></xsl:with-param>
252              </xsl:call-template>
253            </xsl:attribute>
254            <xsl:value-of select="name"/>
255          </xsl:element>
256          [<a class="email" href="mailto:{email}">mail</a>]<br/>
257      </xsl:for-each>      </xsl:for-each>
258    </xsl:if>    </xsl:if>
259    <xsl:if test="not(uploaders)">    <xsl:if test="not(uploaders)">
# Line 157  Line 268 
268    <td class="labelcell">Priority &amp; Section</td>    <td class="labelcell">Priority &amp; Section</td>
269    <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>
270    </tr>    </tr>
271      <xsl:call-template name='add-vcs-info' />
272    <xsl:if test="architecture!='any' and architecture!='all'">    <xsl:if test="architecture!='any' and architecture!='all'">
273    <tr class="normalrow">    <tr class="normalrow">
274    <td class="labelcell">Architecture</td>    <td class="labelcell">Architecture</td>
# Line 266  Line 378 
378    <tr class="normalrow">    <tr class="normalrow">
379    <td class="contentcell" colspan="2">    <td class="contentcell" colspan="2">
380    <form method="post" action="/cgi-bin/pts.cgi">    <form method="post" action="/cgi-bin/pts.cgi">
381        <p>
382      <input type="hidden" name="package" value="{$package}"/>      <input type="hidden" name="package" value="{$package}"/>
383      <select name="what">      <select name="what">
384        <option value="subscribe">Subscribe</option>        <option value="subscribe">Subscribe</option>
# Line 274  Line 387 
387      </select>      </select>
388      <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=''}}"/>
389      <input type="submit" name="submit" value="Send"/>      <input type="submit" name="submit" value="Send"/>
390        </p>
391    </form>    </form>
392    </td>    </td>
393    </tr>    </tr>
# Line 284  Line 398 
398    </td></tr>    </td></tr>
399    <tr class="normalrow">    <tr class="normalrow">
400    <td class="normalcell" colspan="2" style="text-align: left">    <td class="normalcell" colspan="2" style="text-align: left">
401      <ul>
402    <xsl:for-each select="binary/item">    <xsl:for-each select="binary/item">
403      <xsl:sort select="text()"/>      <xsl:sort select="text()"/>
404      <xsl:variable name="pkg" select="text()"/>      <xsl:variable name="pkg" select="text()"/>
# Line 342  Line 457 
457      </span>      </span>
458      </li>      </li>
459    </xsl:for-each>    </xsl:for-each>
460    </td></tr>    </ul></td></tr>
461    
462    <tr class="titlerow">    <tr class="titlerow">
463    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
464    Other available versions    Available versions
465    </td></tr>    </td></tr>
466    <xsl:if test="$hasexperimental">  
467      <!-- oldstable -->
468      <xsl:if test="$hasoldstable">
469    <tr class="normalrow">    <tr class="normalrow">
470    <td class="labelcell">Experimental</td>    <td class="labelcell"><a href="http://www.debian.org/releases/sarge/">Oldstable</a></td>
471    <td class="contentcell">    <td class="contentcell">
472    <xsl:value-of select="document(concat('../base/', $dir, '/experimental.xml'))/source/version"/>    <xsl:value-of select="document(concat('../base/', $dir, '/oldstable.xml'))/source/version"/>
473      </td>
474      </tr>
475      </xsl:if>
476      <xsl:if test="$hasoldstable-security">
477      <tr class="normalrow">
478      <td class="labelcell"><small>Oldstable Security Updates</small></td>
479      <td class="contentcell">
480      <xsl:value-of select="document(concat('../base/', $dir, '/oldstable-security.xml'))/source/version"/>
481      </td>
482      </tr>
483      </xsl:if>
484    
485      <!-- stable -->
486      <xsl:if test="$hasstable">
487      <tr class="normalrow">
488      <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>
489      <td class="contentcell">
490      <xsl:value-of select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/>
491    </td>    </td>
492    </tr>    </tr>
493    </xsl:if>    </xsl:if>
494    <xsl:if test="$hasstable-security">    <xsl:if test="$hasstable-security">
495    <tr class="normalrow">    <tr class="normalrow">
496    <td class="labelcell">Security Updates (stable)</td>    <td class="labelcell"><small>Stable Security Updates</small></td>
497    <td class="contentcell">    <td class="contentcell">
498    <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"/>
499    </td>    </td>
500    </tr>    </tr>
501    </xsl:if>    </xsl:if>
502    <xsl:if test="$hastesting-security">    <xsl:if test="$hass-p-u">
503    <tr class="normalrow">    <tr class="normalrow">
504    <td class="labelcell">Security Updates (testing)</td>    <td class="labelcell"><small>Stable Proposed Updates</small></td>
505    <td class="contentcell">    <td class="contentcell">
506    <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"/>
507    </td>    </td>
508    </tr>    </tr>
509    </xsl:if>    </xsl:if>
510    
511      <!-- testing -->
512    <xsl:if test="$hastesting">    <xsl:if test="$hastesting">
513    <tr class="normalrow">    <tr class="normalrow">
514    <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>
# Line 380  Line 517 
517    </td>    </td>
518    </tr>    </tr>
519    </xsl:if>    </xsl:if>
520      <xsl:if test="$hastesting-security">
521      <tr class="normalrow">
522      <td class="labelcell"><small>Testing Security Updates</small></td>
523      <td class="contentcell">
524      <xsl:value-of select="document(concat('../base/', $dir, '/testing-security.xml'))/source/version"/>
525      </td>
526      </tr>
527      </xsl:if>
528    <xsl:if test="$hast-p-u">    <xsl:if test="$hast-p-u">
529    <tr class="normalrow">    <tr class="normalrow">
530    <td class="labelcell">Testing Proposed Updates</td>    <td class="labelcell"><small>Testing Proposed Updates</small></td>
531    <td class="contentcell">    <td class="contentcell">
532    <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"/>
533    </td>    </td>
534    </tr>    </tr>
535    </xsl:if>    </xsl:if>
536    <xsl:if test="$hasstable">  
537      <!-- unstable -->
538      <xsl:if test="$hasunstable">
539    <tr class="normalrow">    <tr class="normalrow">
540    <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>    <td class="labelcell">Unstable</td>
541    <td class="contentcell">    <td class="contentcell">
542    <xsl:value-of select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/>    <xsl:value-of select="document(concat('../base/', $dir, '/unstable.xml'))/source/version"/>
543    </td>    </td>
544    </tr>    </tr>
545    </xsl:if>    </xsl:if>
546    <xsl:if test="$hass-p-u">  
547      <!-- experimental -->
548      <xsl:if test="$hasexperimental">
549    <tr class="normalrow">    <tr class="normalrow">
550    <td class="labelcell">Stable Proposed Updates</td>    <td class="labelcell">Experimental</td>
551    <td class="contentcell">    <td class="contentcell">
552    <xsl:value-of select="document(concat('../base/', $dir, '/s-p-u.xml'))/source/version"/>    <xsl:value-of select="document(concat('../base/', $dir, '/experimental.xml'))/source/version"/>
553    </td>    </td>
554    </tr>    </tr>
555    </xsl:if>    </xsl:if>
556    
557      <!-- secure-testing -->
558      <xsl:if test="$hassecure-testing">
559      <tr class="normalrow">
560      <td class="labelcell">Secure testing</td>
561      <td class="contentcell">
562      <xsl:value-of select="document(concat('../base/', $dir, '/secure-testing.xml'))/source/version"/>
563      </td>
564      </tr>
565      </xsl:if>
566    
567      <!-- volatile -->
568      <xsl:if test="$hasvolatile">
569      <tr class="normalrow">
570      <td class="labelcell">Volatile</td>
571      <td class="contentcell">
572      <xsl:value-of select="document(concat('../base/', $dir, '/volatile.xml'))/source/version"/>
573      </td>
574      </tr>
575      </xsl:if>
576    
577      <!-- Patches list [FG] -->
578      <xsl:if test="$other/@patches='yes'">
579        <tr class="titlerow">
580        <td class="titlecell" colspan="2">
581        Patches
582        </td></tr>
583        <tr>
584        <td class="contentcell" colspan="2" style="text-align: left">
585        <ul>
586        <xsl:for-each select="$other/patches/item">
587          <li>
588            <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>
589          </li>
590        </xsl:for-each>
591        <xsl:if test="$other/bugs/@patch!='0'">
592          <li>
593            <xsl:element name="a">
594              <xsl:attribute name="href">
595                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
596                <xsl:call-template name="escape-name">
597                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
598                </xsl:call-template>
599                <xsl:text>&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done</xsl:text>
600              </xsl:attribute>
601              Patches from BTS (<xsl:value-of select="$other/bugs/@patch"/>)
602            </xsl:element>
603          </li>
604        </xsl:if>
605        </ul>
606        </td>
607        </tr>
608      </xsl:if>
609    
610    
611    <tr class="titlerow">    <tr class="titlerow">
612    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
613    Other links    Other links
614    </td></tr>    </td></tr>
615    <tr>    <tr>
616    <td class="contentcell" colspan="2" style="text-align: left">    <td class="contentcell" colspan="2" style="text-align: left">
617      <ul>
618      <li>
619        <xsl:element name="a">
620          <xsl:attribute name="href">
621            <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
622            <xsl:value-of select="directory"/>
623            <xsl:text>/current/changelog</xsl:text>
624          </xsl:attribute>
625          <xsl:text>Changelog</xsl:text>
626        </xsl:element>
627        /
628        <xsl:element name="a">
629          <xsl:attribute name="href">
630            <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
631            <xsl:value-of select="directory"/>
632            <xsl:text>/current/copyright</xsl:text>
633          </xsl:attribute>
634          <xsl:text>Copyright</xsl:text>
635        </xsl:element>
636      </li>
637    <xsl:if test="architecture!='all'">    <xsl:if test="architecture!='all'">
638      <li>      <li>
639        <xsl:element name="a">        <xsl:element name="a">
640          <xsl:attribute name="href">          <xsl:attribute name="href">
641            <xsl:text>http://buildd.debian.org/build.php?pkg=</xsl:text>            <xsl:text>http://buildd.debian.org/pkg.cgi?pkg=</xsl:text>
642            <xsl:call-template name="escape-name">            <xsl:call-template name="escape-name">
643              <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>
644            </xsl:call-template>            </xsl:call-template>
645          </xsl:attribute>          </xsl:attribute>
646          <xsl:text>Buildd logs</xsl:text>          <xsl:text>Buildd logs</xsl:text>
647        </xsl:element>        </xsl:element>
648          <xsl:text> (</xsl:text>
649          <xsl:element name="a">
650            <xsl:attribute name="href">
651              <xsl:text>http://experimental.debian.net/build.php?pkg=</xsl:text>
652              <xsl:call-template name="escape-name">
653                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
654              </xsl:call-template>
655            </xsl:attribute>
656            <xsl:text>more</xsl:text>
657          </xsl:element>
658          <xsl:text>)</xsl:text>
659      </li>      </li>
660    </xsl:if>    </xsl:if>
661    <!-- DISABLED until ddtp.debian.org is back up    <!-- DISABLED until ddtp.debian.org is back up
# Line 491  Line 725 
725      </li>      </li>
726    </xsl:if>    </xsl:if>
727    <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->    <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->
728                                <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-/()&#34; ', &quot;'&quot;)"/>                                <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-~/()&#34; ', &quot;'&quot;)"/>
729    <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '____________________')"/>    <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '_____________________')"/>
730      <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>
731      <li>
732        <xsl:element name="a">
733          <xsl:attribute name="href">
734            <xsl:text>http://qa.debian.org/developer.php?popcon=</xsl:text>
735            <xsl:call-template name="escape-name">
736              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
737            </xsl:call-template>
738          </xsl:attribute>
739          <xsl:text>Popcon stats</xsl:text>
740        </xsl:element>
741      </li>
742      </ul>
743    </td>    </td>
744    </tr>    </tr>
745    
# Line 515  Line 760 
760    </td></tr>    </td></tr>
761    <tr class="normalrow">    <tr class="normalrow">
762    <td class="normalcell" colspan="2" style="text-align: left">    <td class="normalcell" colspan="2" style="text-align: left">
763      <ul>
764    <xsl:for-each select="files/item">    <xsl:for-each select="files/item">
765      <li>      <li>
766      <xsl:element name="a">      <xsl:element name="a">
# Line 534  Line 780 
780      </xsl:element>      </xsl:element>
781      </li>      </li>
782    </xsl:for-each>    </xsl:for-each>
783    </td></tr>    </ul></td></tr>
784    
785    </table>    </table>
786    <!-- END LEFT SIDE -->    <!-- END LEFT SIDE -->
# Line 566  Line 812 
812          <li>A new upstream version was found:          <li>A new upstream version was found:
813             (<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>
814        </xsl:if>        </xsl:if>
815          <xsl:if test="$other/bugs/@patch!='0'">
816            <li>The Bug Tracking System contains
817            <xsl:element name="a">
818              <xsl:attribute name="href">
819                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
820                <xsl:call-template name="escape-name">
821                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
822                </xsl:call-template>
823                <xsl:text>&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done</xsl:text>
824              </xsl:attribute>
825              <xsl:value-of select="$other/bugs/@patch"/> patch<xsl:if test="$other/bugs/@patch!='1'">es</xsl:if>
826            </xsl:element>, you should include
827            <xsl:if test="$other/bugs/@patch!='1'">them</xsl:if>
828            <xsl:if test="$other/bugs/@patch='1'">it</xsl:if>.
829            </li>
830          </xsl:if>
831      </xsl:if>      </xsl:if>
832    </xsl:variable>    </xsl:variable>
833    <xsl:if test="count($todo)>0 and string($todo)!=''">    <xsl:if test="count($todo)>0 and string($todo)!=''">
# Line 574  Line 836 
836    Todo    Todo
837    </td></tr>    </td></tr>
838    <tr class="normalrow">    <tr class="normalrow">
839    <td class="contentcell2"><xsl:copy-of select="$todo"/>    <td class="contentcell2">
840      <ul>
841      <xsl:copy-of select="$todo"/>
842      </ul>
843    </td>    </td>
844    </tr>    </tr>
845    </xsl:if>    </xsl:if>
# Line 603  Line 868 
868        and your package only follows        and your package only follows
869        <xsl:value-of select="standards-version"/>...</li>        <xsl:value-of select="standards-version"/>...</li>
870      </xsl:if>      </xsl:if>
871        <xsl:if test="@release!='unstable' and @release!='experimental'">
872          <li>This package is neither part of unstable nor experimental. This
873          probably means that the package <a
874          href="http://ftp-master.debian.org/removals.txt">has been removed</a> (or
875          has been renamed). Thus the information here is of little interest ...
876          the package is going to disappear unless someone takes it over and
877          reintroduces it into unstable.</li>
878        </xsl:if>
879      <xsl:if test="$hasother">      <xsl:if test="$hasother">
880    
881        <!-- Override disparity handling. [JvW] -->        <!-- Override disparity handling. [JvW] -->
# Line 624  Line 897 
897        <li>        <li>
898          <xsl:choose>          <xsl:choose>
899            <xsl:when test="$other/wnpp/@type='O'">            <xsl:when test="$other/wnpp/@type='O'">
900              <xsl:choose>
901              <xsl:when test="@release!='unstable' and @release!='experimental'">
902              The WNPP database contains an O (Orphaned) entry for
903              this package. This is probably an error, as it is neither part of
904              unstable nor experimental.
905              </xsl:when>
906              <xsl:otherwise>
907            <span style="font-weight: bold">This package has been orphaned</span>.            <span style="font-weight: bold">This package has been orphaned</span>.
908            This means that it does not have a real maintainer at the            This means that it does not have a real maintainer at the
909            moment. Please consider adopting this package if you are interested in it.            moment. Please consider adopting this package if you are interested in it.
910              </xsl:otherwise>
911              </xsl:choose>
912            </xsl:when>            </xsl:when>
913            <xsl:when test="$other/wnpp/@type='ITA'">            <xsl:when test="$other/wnpp/@type='ITA'">
914              <xsl:choose>
915              <xsl:when test="@release!='unstable' and @release!='experimental'">
916              The WNPP database contains an ITA (Intent To Adopt) entry for
917              this package. This is probably an error, as it is neither part of
918              unstable nor experimental.
919              </xsl:when>
920              <xsl:otherwise>
921            This package has been orphaned, but someone intends to maintain it.            This package has been orphaned, but someone intends to maintain it.
922              </xsl:otherwise>
923              </xsl:choose>
924            </xsl:when>            </xsl:when>
925            <xsl:when test="$other/wnpp/@type='RFA'">            <xsl:when test="$other/wnpp/@type='RFA'">
926              <xsl:choose>
927              <xsl:when test="@release!='unstable' and @release!='experimental'">
928              The WNPP database contains an RFA (Request For Adoption) entry for
929              this package. This is probably an error, as it is neither part of
930              unstable nor experimental.
931              </xsl:when>
932              <xsl:otherwise>
933            The current maintainer is looking for someone who can take over            The current maintainer is looking for someone who can take over
934            maintenance of this package. If you are interested in this package,            maintenance of this package. If you are interested in this package,
935            please consider taking it over. Alternatively you may            please consider taking it over. Alternatively you may
936            want to be co-maintainer in order to help the actual maintainer.            want to be co-maintainer in order to help the actual maintainer.
937              </xsl:otherwise>
938              </xsl:choose>
939            </xsl:when>            </xsl:when>
940            <xsl:when test="$other/wnpp/@type='RFH'">            <xsl:when test="$other/wnpp/@type='RFH'">
941              <xsl:choose>
942              <xsl:when test="@release!='unstable' and @release!='experimental'">
943              The WNPP database contains an RFH (Request For Help) entry for
944              this package. This is probably an error, as it is neither part of
945              unstable nor experimental.
946              </xsl:when>
947              <xsl:otherwise>
948            The current maintainer is looking for someone who can help with the            The current maintainer is looking for someone who can help with the
949            maintenance of this package. If you are interested in this package,            maintenance of this package. If you are interested in this package,
950            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
951            co-maintainer or triage bugs in the bts.            co-maintainer or triage bugs in the bts.
952              </xsl:otherwise>
953              </xsl:choose>
954            </xsl:when>            </xsl:when>
955            <xsl:when test="$other/wnpp/@type='ITP'">            <xsl:when test="$other/wnpp/@type='ITP'">
956              <xsl:choose>
957              <xsl:when test="@release!='unstable' and @release!='experimental'">
958              The WNPP database contains an ITP (Intent To Package). This probably
959              means that somebody is going to reintroduce this package into unstable.
960              </xsl:when>
961              <xsl:otherwise>
962            The WNPP database contains an ITP (Intent To Package) entry for            The WNPP database contains an ITP (Intent To Package) entry for
963            this package. This is probably an error, as it has already been            this package. This is probably an error, as it has already been
964            packaged.            packaged.
965              </xsl:otherwise>
966              </xsl:choose>
967            </xsl:when>            </xsl:when>
968            <xsl:when test="$other/wnpp/@type='RFP'">            <xsl:when test="$other/wnpp/@type='RFP'">
969              <xsl:choose>
970              <xsl:when test="@release!='unstable' and @release!='experimental'">
971              The WNPP database contains an RFP (Request For Package). This probably
972              means that somebody would like to see this package reintroduced into
973              unstable by a volunteer.
974              </xsl:when>
975              <xsl:otherwise>
976            The WNPP database contains an RFP (Request For Package) entry            The WNPP database contains an RFP (Request For Package) entry
977            for this package.  This is probably an error, as it has already            for this package.  This is probably an error, as it has already
978            been packaged.            been packaged.
979              </xsl:otherwise>
980              </xsl:choose>
981            </xsl:when>            </xsl:when>
982            <xsl:when test="$other/wnpp/@type='RM'">            <xsl:when test="$other/wnpp/@type='RM'">
983            <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 693  Line 1019 
1019    Problems    Problems
1020    </td></tr>    </td></tr>
1021    <tr class="normalrow">    <tr class="normalrow">
1022    <td class="contentcell2"><xsl:copy-of select="$problems"/>    <td class="contentcell2">
1023      <ul><xsl:copy-of select="$problems"/></ul>
1024    </td>    </td>
1025    </tr>    </tr>
1026    </xsl:if>    </xsl:if>
# Line 705  Line 1032 
1032    </td></tr>    </td></tr>
1033    <tr class="normalrow">    <tr class="normalrow">
1034    <td class="contentcell2" style="text-align: left">    <td class="contentcell2" style="text-align: left">
1035      <ul>
1036    <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">    <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
1037      <xsl:call-template name="outputitem"/>      <xsl:call-template name="outputitem"/>
1038    </xsl:for-each>    </xsl:for-each>
1039      </ul>
1040    </td>    </td>
1041    </tr>    </tr>
1042    </xsl:if>    </xsl:if>
# Line 726  Line 1055 
1055      Static Information      Static Information
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="$static"/></ul>
1060        </td>
1061      </tr>      </tr>
1062    </xsl:if>    </xsl:if>
1063    
# Line 743  Line 1074 
1074      Latest News      Latest News
1075      </td></tr>      </td></tr>
1076      <tr class="normalrow">      <tr class="normalrow">
1077      <td class="contentcell2"><xsl:copy-of select="$news"/></td>      <td class="contentcell2">
1078        <ul><xsl:copy-of select="$news"/></ul>
1079        </td>
1080      </tr>      </tr>
1081    </xsl:if>    </xsl:if>
1082    
# Line 751  Line 1084 
1084    <!-- END RIGHT SIDE -->    <!-- END RIGHT SIDE -->
1085    </td></tr>    </td></tr>
1086    </table>    </table>
1087    
1088      <!-- END NON REMOVED PACKAGE -->
1089      </xsl:otherwise>
1090      </xsl:choose>
1091    
1092    <hr/>    <hr/>
1093    Debian Package Tracking System - Copyright 2002-2004 Raphaël Hertzog<br/>    <p>
1094      Debian Package Tracking System - Copyright 2002-2006 Raphaël Hertzog and
1095      others<br/>
1096      Report problems to the <a href="http://bugs.debian.org/qa.debian.org"
1097      >qa.debian.org pseudopackage</a><br/>
1098    Last modified : <xsl:value-of select="$date"/>    Last modified : <xsl:value-of select="$date"/>
1099      </p>
1100    </body>    </body>
1101    </html>    </html>
1102  </xsl:template>  </xsl:template>

Legend:
Removed from v.949  
changed lines
  Added in v.1712

  ViewVC Help
Powered by ViewVC 1.1.5