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