Pull from web CVS
[terminatorX.git] / website / tX.xsl
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3   <xsl:template match="section">
4     <html>
5       <head>
6         <meta content="Alexander Koenig" name="Author"/>
7         <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"/>
8         <link href="favicon.ico" rel="icon" type="image/x-icon"/>
9         <link href="favicon.ico" rel="shortcut icon" type="image/x-icon"/>
10         <title>terminatorX: <xsl:value-of select="@name"/>
11         </title>
12         <script language="Javascript" src="script.js" type="text/javascript"/>
13         <style type="text/css"> A:hover {text-decoration: none; color: #ff4444} A:active
14           {text-decoration: none; color: #ff4444} body {font-family: vera-sans, Verdana, sans-serif;} p.plain
15           {text-align: left} p.fancy {text-align: justify} p.screen {text-align: left; font-family: monospace} </style>
16       </head>
17       <body alink="#FF0000" bgcolor="#555555" link="#FFFF99"
18         onload="load('main','pix/vinyl-hover.gif','pix/vinyl.png');load('download','pix/vinyl-hover.gif','pix/vinyl.png');load('changelog','pix/vinyl-hover.gif','pix/vinyl.png');load('screenshots','pix/vinyl-hover.gif','pix/vinyl.png');load('faq','pix/vinyl-hover.gif','pix/vinyl.png');load('docs','pix/vinyl-hover.gif','pix/vinyl.png');load('turntable','pix/vinyl-hover.gif','pix/vinyl.png');load('scratches','pix/vinyl-hover.gif','pix/vinyl.png');load('links','pix/vinyl-hover.gif','pix/vinyl.png');load('bugs','pix/vinyl-hover.gif','pix/vinyl.png');load('aseqjoy','pix/vinyl-hover.gif','pix/vinyl.png');"
19         text="#FFFFFF" vlink="#FFCC33">
20         <!--new-->
21         <table border="0" cellpadding="0" cellspacing="0" width="100%">
22           <tr>
23             <td bgcolor="#000000" colspan="2">
24               <table border="0" cellspacing="5px" width="100%">
25                 <tr>
26                   <td>
27                     <center>
28                       <img ALT="terminatorX" src="pix/tX_logo.jpg"/>
29                     </center>
30                   </td>
31                 </tr>
32               </table>
33             </td>
34           </tr>
35           <tr>
36             <td align="left" bgcolor="#ffffff">
37               <font color="#ffffff" size="+2"> menu</font>
38             </td>
39             <td bgcolor="#ffffff" width="100%">
40               <table border="0" cellpadding="4px" cellspacing="0" width="100%">
41                 <tr>
42                   <td align="right" bgcolor="#ffffff" width="100%">
43                     <font color="#000000" size="+2">
44                       <b>
45                         <xsl:value-of select="@name"/>
46                       </b>
47                     </font>
48                   </td>
49                 </tr>
50               </table>
51             </td>
52           </tr>
53           <tr>
54             <!--menu-->
55             <td valign="top">
56               <table border="0" cellpadding="2px" cellspacing="0">
57                 <tr>
58                   <xsl:if test="@name='main'">
59                     <td bgcolor="#777777">
60                       <img alt="-" border="0" src="pix/vinyl-highlight.png" vspace="0"/>
61                     </td>
62                     <td bgcolor="#777777">main</td>
63                     <td bgcolor="#777777">
64                       <img alt="-" border="0" src="pix/vinyl-spacer.png" vspace="0"/>
65                     </td>
66                   </xsl:if>
67                   <xsl:if test="@name!='main'">
68                     <td>
69                       <img alt="-" border="0" name="main" src="pix/vinyl.png" vspace="0"/>
70                     </td>
71                     <td>
72                       <a href="./" onMouseOut="off('main');" onMouseOver="on('main');">main</a>
73                     </td>
74                     <td/>
75                   </xsl:if>
76                 </tr>
77                 <tr>
78                   <xsl:if test="@name='download'">
79                     <td bgcolor="#777777">
80                       <img alt="-" border="0" src="pix/vinyl-highlight.png" vspace="0"/>
81                     </td>
82                     <td bgcolor="#777777">download</td>
83                     <td bgcolor="#777777">
84                       <img alt="-" border="0" src="pix/vinyl-spacer.png" vspace="0"/>
85                     </td>
86                   </xsl:if>
87                   <xsl:if test="@name!='download'">
88                     <td>
89                       <img alt="-" border="0" name="download" src="pix/vinyl.png" vspace="0"/>
90                     </td>
91                     <td>
92                       <a href="download.html" onMouseOut="off('download');" onMouseOver="on('download');">download</a>
93                     </td>
94                     <td/>
95                   </xsl:if>
96                 </tr>
97                 <tr>
98                   <xsl:if test="@name='screenshots'">
99                     <td bgcolor="#777777">
100                       <img alt="-" border="0" src="pix/vinyl-highlight.png" vspace="0"/>
101                     </td>
102                     <td bgcolor="#777777">screenshots</td>
103                     <td bgcolor="#777777">
104                       <img alt="-" border="0" src="pix/vinyl-spacer.png" vspace="0"/>
105                     </td>
106                   </xsl:if>
107                   <xsl:if test="@name!='screenshots'">
108                     <td>
109                       <img alt="-" border="0" name="screenshots" src="pix/vinyl.png" vspace="0"/>
110                     </td>
111                     <td>
112                       <a href="screenshots.html" onMouseOut="off('screenshots');" onMouseOver="on('screenshots');">screenshots</a>
113                     </td>
114                     <td/>
115                   </xsl:if>
116                 </tr>
117                 <tr>
118                   <xsl:if test="@name='changelog'">
119                     <td bgcolor="#777777">
120                       <img alt="-" border="0" src="pix/vinyl-highlight.png" vspace="0"/>
121                     </td>
122                     <td bgcolor="#777777">changelog</td>
123                     <td bgcolor="#777777">
124                       <img alt="-" border="0" src="pix/vinyl-spacer.png" vspace="0"/>
125                     </td>
126                   </xsl:if>
127                   <xsl:if test="@name!='changelog'">
128                     <td>
129                       <img alt="-" border="0" name="changelog" src="pix/vinyl.png" vspace="0"/>
130                     </td>
131                     <td>
132                       <a href="changelog.html" onMouseOut="off('changelog');" onMouseOver="on('changelog');">changelog</a>
133                     </td>
134                     <td/>
135                   </xsl:if>
136                 </tr>
137                 <tr>
138                   <xsl:if test="@name='bugs'">
139                     <td bgcolor="#777777">
140                       <img alt="-" border="0" src="pix/vinyl-highlight.png" vspace="0"/>
141                     </td>
142                     <td bgcolor="#777777">bugs</td>
143                     <td bgcolor="#777777">
144                       <img alt="-" border="0" src="pix/vinyl-spacer.png" vspace="0"/>
145                     </td>
146                   </xsl:if>
147                   <xsl:if test="@name!='bugs'">
148                     <td>
149                       <img alt="-" border="0" name="bugs" src="pix/vinyl.png" vspace="0"/>
150                     </td>
151                     <td>
152                       <a href="bugs.html" onMouseOut="off('bugs');" onMouseOver="on('bugs');">bugs</a>
153                     </td>
154                     <td/>
155                   </xsl:if>
156                 </tr>                
157                 <tr>
158                   <xsl:if test="@name='faq'">
159                     <td bgcolor="#777777">
160                       <img alt="-" border="0" src="pix/vinyl-highlight.png" vspace="0"/>
161                     </td>
162                     <td bgcolor="#777777">faq</td>
163                     <td bgcolor="#777777">
164                       <img alt="-" border="0" src="pix/vinyl-spacer.png" vspace="0"/>
165                     </td>
166                   </xsl:if>
167                   <xsl:if test="@name!='faq'">
168                     <td>
169                       <img alt="-" border="0" name="faq" src="pix/vinyl.png" vspace="0"/>
170                     </td>
171                     <td>
172                       <a href="faq.html" onMouseOut="off('faq');" onMouseOver="on('faq');">faq</a>
173                     </td>
174                     <td/>
175                   </xsl:if>
176                 </tr>                 
177                 <tr>
178                   <xsl:if test="@name='docs'">
179                     <td bgcolor="#777777">
180                       <img alt="-" border="0" src="pix/vinyl-highlight.png" vspace="0"/>
181                     </td>
182                     <td bgcolor="#777777">docs</td>
183                     <td bgcolor="#777777">
184                       <img alt="-" border="0" src="pix/vinyl-spacer.png" vspace="0"/>
185                     </td>
186                   </xsl:if>
187                   <xsl:if test="@name!='docs'">
188                     <td>
189                       <img alt="-" border="0" name="docs" src="pix/vinyl.png" vspace="0"/>
190                     </td>
191                     <td>
192                       <a href="docs.html" onMouseOut="off('docs');"
193                         onMouseOver="on('docs');"> docs</a>
194                     </td>
195                     <td/>
196                   </xsl:if>
197                 </tr>
198                 <tr>
199                   <xsl:if test="@name='scratches'">
200                     <td bgcolor="#777777">
201                       <img alt="-" border="0" src="pix/vinyl-highlight.png" vspace="0"/>
202                     </td>
203                     <td bgcolor="#777777">scratches</td>
204                     <td bgcolor="#777777">
205                       <img alt="-" border="0" src="pix/vinyl-spacer.png" vspace="0"/>
206                     </td>
207                   </xsl:if>
208                   <xsl:if test="@name!='scratches'">
209                     <td>
210                       <img alt="-" border="0" name="scratches" src="pix/vinyl.png" vspace="0"/>
211                     </td>
212                     <td>
213                       <a href="scratches.html" onMouseOut="off('scratches');" onMouseOver="on('scratches');">scratches</a>
214                     </td>
215                     <td/>
216                   </xsl:if>
217                 </tr>
218                 <tr>
219                   <xsl:if test="@name='turntable gallery'">
220                     <td bgcolor="#777777">
221                       <img alt="-" border="0" src="pix/vinyl-highlight.png" vspace="0"/>
222                     </td>
223                     <td bgcolor="#777777">turntables</td>
224                     <td bgcolor="#777777">
225                       <img alt="-" border="0" src="pix/vinyl-spacer.png" vspace="0"/>
226                     </td>
227                   </xsl:if>
228                   <xsl:if test="@name!='turntable gallery'">
229                     <td>
230                       <img alt="-" border="0" name="turntable" src="pix/vinyl.png" vspace="0"/>
231                     </td>
232                     <td>
233                       <a href="turntable.html" onMouseOut="off('turntable');" onMouseOver="on('turntable');">turntables</a>
234                     </td>
235                     <td/>
236                   </xsl:if>
237                 </tr>
238                 <tr>
239                   <xsl:if test="@name='aseqjoy'">
240                     <td bgcolor="#777777">
241                       <img alt="-" border="0" src="pix/vinyl-highlight.png" vspace="0"/>
242                     </td>
243                     <td bgcolor="#777777">aseqjoy</td>
244                     <td bgcolor="#777777">
245                       <img alt="-" border="0" src="pix/vinyl-spacer.png" vspace="0"/>
246                     </td>
247                   </xsl:if>
248                   <xsl:if test="@name!='aseqjoy'">
249                     <td>
250                       <img alt="-" border="0" name="aseqjoy" src="pix/vinyl.png" vspace="0"/>
251                     </td>
252                     <td>
253                       <a href="aseqjoy.html" onMouseOut="off('aseqjoy');"
254                         onMouseOver="on('aseqjoy');"> aseqjoy</a>
255                     </td>
256                     <td/>
257                   </xsl:if>
258                 </tr>
259                 <tr>
260                   <xsl:if test="@name='links'">
261                     <td bgcolor="#777777">
262                       <img alt="-" border="0" src="pix/vinyl-highlight.png" vspace="0"/>
263                     </td>
264                     <td bgcolor="#777777">links</td>
265                     <td bgcolor="#777777">
266                       <img alt="-" border="0" src="pix/vinyl-spacer.png" vspace="0"/>
267                     </td>
268                   </xsl:if>
269                   <xsl:if test="@name!='links'">
270                     <td>
271                       <img alt="-" border="0" name="links" src="pix/vinyl.png" vspace="0"/>
272                     </td>
273                     <td>
274                       <a href="links.html" onMouseOut="off('links');"
275                         onMouseOver="on('links');"> links</a>
276                     </td>
277                     <td/>
278                   </xsl:if>
279                 </tr>
280               </table>
281             </td>
282             <!--contents-->
283             <td valign="top">
284               <table border="0" cellpadding="10px" cellspacing="0" width="100%">
285                 <tr>
286                   <td bgcolor="#777777" width="100%">
287                     <xsl:apply-templates/>
288                   </td>
289                 </tr>
290               </table>
291             </td>
292           </tr>
293         </table>
294         <!-- bottom -->
295         <HR width="100%"/>
296         <table width="100%">
297           <tr>
298             <td align="left" valign="top" width="100%">
299               <font size="-1">Copyright (C) 1999-2005 by <A HREF="mailto:alex@lisas.de">Alexander KMAKE_THIS_MYOUMLnig</A>
300               </font>
301             </td>
302             <td>
303               <a href="http://validator.w3.org/check/referer">
304                 <img alt="Valid HTML 4.01!" border="0" height="31" src="pix/valid-html401.png" width="88"/>
305               </a>
306             </td>
307           </tr>
308         </table>
309       </body>
310     </html>
311   </xsl:template>
312   <xsl:template match="heading">
313     <font size="+2">
314       <xsl:apply-templates/>
315     </font>
316     <br/>
317   </xsl:template>
318   <xsl:template match="subtitle">
319     <font size="-2">
320       <xsl:apply-templates/>
321     </font>
322   </xsl:template>
323   <xsl:template match="para">
324     <xsl:if test="@class='fancy'">
325       <p class="fancy">
326         <xsl:apply-templates/>
327       </p>
328     </xsl:if>
329     <xsl:if test="@class='plain'">
330       <p class="plain">
331         <xsl:apply-templates/>
332       </p>
333     </xsl:if>
334     <xsl:if test="@class='screen'">
335       <p class="screen">
336         <xsl:apply-templates/>
337       </p>
338     </xsl:if>
339   </xsl:template>
340   <xsl:template match="italic">
341     <i>
342       <xsl:apply-templates/>
343     </i>
344   </xsl:template>
345   <xsl:template match="red">
346     <font color="#FF0000">
347       <xsl:apply-templates/>
348     </font>
349   </xsl:template>
350   <xsl:template match="bold">
351     <b>
352       <xsl:apply-templates/>
353     </b>
354   </xsl:template>
355   <xsl:template match="newsheader"/>
356   <xsl:template match="newsitem">
357     <table border="0" cellpadding="0" cellspacing="0">
358       <!-- header -->
359       <tr>
360         <td bgcolor="#999999">
361           <xsl:for-each select="newsheader">
362             <table border="0" cellpadding="2px" cellspacing="0">
363               <tr>
364                 <td>
365                   <img alt="new:" src="pix/new.png"/>
366                 </td>
367                 <td align="left" valign="middle" width="100%">
368                   <font size="+1">
369                     <xsl:apply-templates/>
370                   </font>
371                   <font color="#DDDDDD" size="+1"> [<xsl:value-of select="@date"/>]</font>
372                 </td>
373               </tr>
374             </table>
375           </xsl:for-each>
376         </td>
377       </tr>
378       <!-- contents -->
379       <tr>
380         <td>
381           <xsl:apply-templates/>
382         </td>
383       </tr>
384     </table>
385   </xsl:template>
386   <xsl:template match="link">
387     <a>
388       <xsl:attribute name="href">
389         <xsl:value-of select="@ref"/>
390       </xsl:attribute>
391       <xsl:apply-templates/>
392     </a>
393   </xsl:template>
394   <xsl:template match="dblink">
395     <xsl:variable name="search" select="@id"/>
396     <a>
397       <xsl:attribute name="href">
398         <xsl:value-of select="//dlink[@id=$search]/@url"/>
399       </xsl:attribute>
400       <xsl:choose>
401         <xsl:when test="./text()">
402           <xsl:apply-templates/>
403         </xsl:when>
404         <xsl:otherwise>
405           <xsl:value-of select="//dlink[@id=$search]/@text"/>
406         </xsl:otherwise>
407       </xsl:choose>
408     </a>
409     <xsl:if test="sum(//dlink[@id=$search])=0">
410       <font color="#FF0000">
411         <blink>broken dblink &quot;<xsl:value-of select="$search"/>&quot;</blink>
412       </font>
413     </xsl:if>
414   </xsl:template>
415   <xsl:template match="newline">
416     <br/>
417   </xsl:template>
418   <xsl:template match="itemizedlist">CLOSE_DA_P <ul>
419       <xsl:apply-templates/>
420     </ul>OPEN_DA_P</xsl:template>
421   <xsl:template match="listitem">
422     <li>
423       <xsl:apply-templates/>
424     </li>
425   </xsl:template>
426   <xsl:template match="person">
427     <a>
428       <xsl:attribute name="href">mailto:<xsl:if test="email='alex@lisas.de'">alex@lisas.de</xsl:if>
429         <xsl:if test="email!='alex@lisas.de'">NOSPAM_<xsl:value-of
430             select="substring-before(email, '@')"/>_AT_<xsl:value-of select="substring-after(email, '@')"/>_NOSPAM</xsl:if>
431       </xsl:attribute>
432       <xsl:value-of select="name"/>
433     </a>
434   </xsl:template>
435   <xsl:template match="index">
436     <p>
437       <font size="+2">
438         <b><xsl:value-of select="title"/></b>
439       </font>
440     </p>
441     <ul>
442       <xsl:for-each select="//subsection">
443         <li>
444           <a>
445             <xsl:attribute name="href">#<xsl:value-of select="title"/>
446             </xsl:attribute>
447             <xsl:value-of select="title"/>
448           </a>
449         </li>
450       </xsl:for-each>
451     </ul>
452     <p/>
453   </xsl:template>
454   <xsl:template match="subsection">
455     <p>
456       <font size="+1"><b>
457         <a>
458           <xsl:attribute name="name">
459             <xsl:value-of select="title"/>
460           </xsl:attribute>
461           <xsl:value-of select="title"/>
462         </a>
463       </b></font>
464     </p>
465     <xsl:apply-templates/>
466   </xsl:template>
467   <xsl:template match="title"/>
468   <xsl:template match="tarfiles">
469     <ul>
470       <xsl:for-each select="tar">
471         <xsl:if test="@version!=//current/@version">
472           <li>Old version <xsl:value-of select="@version"/>: <a>
473               <xsl:attribute name="href">dist/terminatorX-<xsl:value-of
474                 select="@version"/>.tar.gz</xsl:attribute>terminatorX-<xsl:value-of select="@version"/>.tar.gz</a>
475             <xsl:if test="@havebz2='yes'"> (<a>
476                 <xsl:attribute name="href">dist/terminatorX-<xsl:value-of select="@version"/>.tar.bz2</xsl:attribute>bz2</a>)</xsl:if>
477           </li>
478         </xsl:if>
479       </xsl:for-each>
480     </ul>
481   </xsl:template>
482   <xsl:template match="rpm" name="rpm">
483     <li>
484       <xsl:if test="@type='src'">Old source RPM: </xsl:if>
485       <xsl:if test="@type!='src'">
486         Old <xsl:value-of select="@type"/>-binary RPM: </xsl:if>
487       <a>
488         <xsl:attribute name="href">rpms/terminatorX-<xsl:value-of select="@version"/>-<xsl:value-of
489             select="@rpmsubversion"/>.<xsl:value-of select="@type"/>.<xsl:if test="@ext">
490             <xsl:value-of select="@ext"/>.</xsl:if>rpm</xsl:attribute> terminatorX-<xsl:value-of
491           select="@version"/>-<xsl:value-of select="@rpmsubversion"/>.<xsl:value-of
492           select="@type"/>.<xsl:if test="@ext">
493           <xsl:value-of select="@ext"/>.</xsl:if>rpm</a>
494       <xsl:if test="@distribution"> built for: <i>
495           <xsl:value-of select="@distribution"/>
496         </i>
497       </xsl:if>
498       <xsl:if test="@note">
499         <b> note: </b>
500         <xsl:value-of select="@note"/>
501       </xsl:if>
502     </li>
503   </xsl:template>
504   <xsl:template match="rpmfiles">
505     <ul>
506       <xsl:for-each select="rpm[@version!=//current/@version]">
507         <xsl:call-template name="rpm"/>
508       </xsl:for-each>
509     </ul>
510   </xsl:template>
511   <xsl:template match="currentversion">
512     <p>The current terminatorX release is Version <xsl:value-of select="//current/@version"/>.
513       <br/>Download as:</p>
514     <ul>
515       <li>tar file: <a>
516           <xsl:attribute name="href">dist/terminatorX-<xsl:value-of
517             select="//current/@version"/>.tar.gz</xsl:attribute>terminatorX-<xsl:value-of select="//current/@version"/>.tar.gz</a>
518         <xsl:if test="//current/@havebz2='yes'"> (<a>
519             <xsl:attribute name="href">dist/terminatorX-<xsl:value-of select="//current/@version"/>.tar.bz2</xsl:attribute>bz2</a>)</xsl:if>
520       </li>
521       <xsl:for-each select="//rpm[@version=//current/@version]">
522         <xsl:call-template name="rpm"/>
523       </xsl:for-each>
524     </ul>
525     <!-- <xsl:if test="sum(//rpm[@version=//current/@version])=0">Sorry, no RPMs available for the
526       current release, yet. Stay tuned.</xsl:if> -->
527   </xsl:template>
528   <xsl:template match="filelist">
529     <ul>
530       <xsl:for-each select="file">
531         <li>
532           <xsl:call-template name="file"/>
533         </li>
534       </xsl:for-each>
535     </ul>
536   </xsl:template>
537   <xsl:template match="file" name="file">
538     <a>
539       <xsl:attribute name="href">files/<xsl:apply-templates/>
540       </xsl:attribute>
541       <xsl:apply-templates/>
542     </a>
543   </xsl:template>
544   <xsl:template match="faq">
545     <a name="index">
546       <font size="+1">Question-Index:</font>
547     </a>
548     <ul>
549       <xsl:for-each select="qa">
550         <li>
551           <a>
552             <xsl:attribute name="href">#<xsl:value-of select="position()"/>
553             </xsl:attribute>
554             <xsl:value-of select="question"/>
555           </a>
556         </li>
557       </xsl:for-each>
558     </ul>
559     <p>
560       <font size="+1">Answers:</font>
561     </p>
562     <xsl:apply-templates/>
563   </xsl:template>
564   <xsl:template match="qa">
565     <table border="0" cellpadding="0" cellspacing="0" width="100%">
566       <tr>
567         <td bgcolor="#999999">
568           <table border="0" cellpadding="3px" cellspacing="0" width="100%">
569             <tr>
570               <td>
571                 <a>
572                   <xsl:attribute name="name">
573                     <xsl:value-of select="position() div 2"/>
574                   </xsl:attribute>
575                   <font color="#FFEE88" size="+1">
576                     <xsl:value-of select="question"/>
577                   </font>
578                 </a>
579               </td>
580             </tr>
581           </table>
582         </td>
583       </tr>
584       <tr>
585         <td>
586           <xsl:apply-templates/>
587         </td>
588       </tr>
589     </table>
590     <p>
591       <font size="-1">
592         <a href="#index">(back to index)</a>
593       </font>
594     </p>
595   </xsl:template>
596   <xsl:template match="question"/>
597   <xsl:template match="answer">
598     <xsl:apply-templates/>
599   </xsl:template>
600   <xsl:template match="turntabletable">
601     <table border="2" cellpadding="2px" width="100%">
602       <!--
603   
604 <tr bgcolor="#FFFF99">
605 <td width="100%" colspan="2">
606 <font face="Arial,Helvetica" color="#000000" size="+2">
607 <b>Users' Turntables
608 </b>
609 </font>
610 </td>
611 </tr>
612   -->
613       <xsl:apply-templates/>
614     </table>
615   </xsl:template>
616   <xsl:template match="tt">
617     <tr bgcolor="#FFFF99">
618       <td align="left" colspan="2" width="100%">
619         <font color="#000000" face="Arial,Helvetica" size="+1">
620           <b>
621             <xsl:value-of select="@title"/>
622           </b>
623         </font>
624       </td>
625     </tr>
626     <tr>
627       <td valign="top" width="50%">
628         <xsl:for-each select="author">
629           <b>Creator:</b>
630           <xsl:apply-templates/>
631           <br/>
632         </xsl:for-each>
633         <xsl:for-each select="text">
634           <xsl:apply-templates/>
635         </xsl:for-each>
636       </td>
637       <td width="50%">
638         <table width="100%">
639           <tr>
640             <xsl:for-each select="ttimages">
641               <xsl:apply-templates/>
642             </xsl:for-each>
643           </tr>
644         </table>
645       </td>
646     </tr>
647   </xsl:template>
648   <xsl:template match="scratchtable">
649     <table border="2" width="100%">
650       <tr bgcolor="#FFFF99">
651         <td>
652           <font color="#000000" face="Arial,Helvetica" size="+1">
653             <b>Scratch</b>
654           </font>
655         </td>
656         <td>
657           <font color="#000000" face="Arial,Helvetica" size="+1">
658             <b>Author</b>
659           </font>
660         </td>
661         <td>
662           <font color="#000000" face="Arial,Helvetica" size="+1">
663             <b>Description</b>
664           </font>
665         </td>
666       </tr>
667       <xsl:apply-templates/>
668     </table>
669   </xsl:template>
670   <xsl:template match="scratch">
671     <tr>
672       <xsl:apply-templates/>
673     </tr>
674   </xsl:template>
675   <xsl:template match="mp3file|author|comment">
676     <td valign="top">
677       <xsl:apply-templates/>
678     </td>
679   </xsl:template>
680   <xsl:template match="tinycomment|filesize">
681     <br/>
682     <font size="-1">
683       <xsl:apply-templates/>
684     </font>
685   </xsl:template>
686   <xsl:template match="screen">
687     <span style="font-family: monospace; color: #DDFFDD">
688       <xsl:apply-templates/>
689     </span>
690   </xsl:template>
691
692   <xsl:template match="changelog">
693     <p><font size="+2">ChangeLog</font></p>
694       <xsl:apply-templates/>
695   </xsl:template>
696
697   <xsl:template match="version">
698     <p><font size="+1">Version <xsl:value-of select="@name"/> <xsl:if 
699         test="@unreleased='true'"><i> unreleased </i></xsl:if></font>
700         </p>
701         <ul>
702       <xsl:apply-templates/>
703          </ul>
704   </xsl:template>
705   
706   <xsl:template match="screenshot">
707     <xsl:if test="name(.)='screenshot'">CLOSE_DA_P</xsl:if>
708     <center>
709       <table border="0" width="100%">
710         <tr>
711           <td>
712             <center>
713               <a>
714                 <xsl:attribute name="href">pix/<xsl:value-of select="@filename"/>
715                 </xsl:attribute>
716                 <img border="0">
717                   <xsl:attribute name="alt">
718                     <xsl:value-of select="name(.)"/>
719                   </xsl:attribute>
720                   <xsl:attribute name="src">pix/pre_<xsl:value-of select="@filename"/>
721                   </xsl:attribute>
722                 </img>
723               </a>
724             </center>
725           </td>
726         </tr>
727         <tr>
728           <td>
729             <center>
730               <xsl:apply-templates/>
731             </center>
732           </td>
733         </tr>
734       </table>
735     </center>
736     <xsl:if test="name(.)='screenshot'">OPEN_DA_P</xsl:if>
737   </xsl:template>
738   
739   <xsl:template match="img">
740         <img border="0" alt="deco image" hspace="10">
741                 <xsl:attribute name="src">pix/<xsl:value-of select="@filename"/></xsl:attribute>
742                 <xsl:attribute name="align"><xsl:value-of select="@align"></xsl:value-of></xsl:attribute>
743         </img>
744   </xsl:template>
745   
746   <xsl:template match="image">
747     <xsl:if test="position()&gt;3">
748       <xsl:if test="(position() div 2) mod 3=1">NEW_TT_ROW</xsl:if>
749     </xsl:if>
750     <td align="center" valign="top" width="33%">
751       <table border="0">
752         <tr>
753           <td>
754             <center>
755               <a>
756                 <xsl:attribute name="href">pix/<xsl:value-of select="@filename"/>
757                 </xsl:attribute>
758                 <img border="0">
759                   <xsl:attribute name="alt">
760                     <xsl:value-of select="name(.)"/>
761                   </xsl:attribute>
762                   <xsl:attribute name="src">pix/pre_<xsl:value-of select="@filename"/>
763                   </xsl:attribute>
764                 </img>
765               </a>
766             </center>
767           </td>
768         </tr>
769         <tr>
770           <td>
771             <center>
772               <xsl:apply-templates/>
773             </center>
774           </td>
775         </tr>
776       </table>
777     </td>
778   </xsl:template>
779   <xsl:template match="ilink">
780     <table bgcolor="#999999" border="0" cellspacing="5px" width="100%">
781       <tr>
782         <xsl:if test="banner">
783           <td align="center" valign="top" width="90px">
784             <a>
785               <xsl:attribute name="href">
786                 <xsl:if test="link">
787                   <xsl:value-of select="link/@ref"/>
788                 </xsl:if>
789                 <xsl:if test="dblink">
790                   <xsl:variable name="search" select="dblink/@id"/>
791                   <xsl:value-of select="//dlink[@id=$search]/@url"/>
792                 </xsl:if>
793               </xsl:attribute>
794               <img border="0">
795                 <xsl:attribute name="alt">
796                   <xsl:value-of select="logo"/>
797                 </xsl:attribute>
798                 <xsl:attribute name="src">pix/banner/<xsl:value-of select="banner/@filename"/>
799                 </xsl:attribute>
800               </img>
801             </a>
802           </td>
803         </xsl:if>
804         <td valign="top">
805           <xsl:for-each select="para">
806             <xsl:apply-templates/>
807           </xsl:for-each>
808         </td>
809       </tr>
810     </table>
811     <xsl:if test="following-sibling::ilink">
812       <hr/>
813     </xsl:if>
814   </xsl:template>
815 </xsl:stylesheet>