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">
6 <meta content="Alexander Koenig" name="Author"/>
7 <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"/>
8 <title><xsl:value-of select="@name"/></title>
11 <xsl:apply-templates/>
15 <xsl:template match="heading">
17 <xsl:apply-templates/>
21 <xsl:template match="subtitle">
23 <xsl:apply-templates/>
26 <xsl:template match="para">
27 <xsl:if test="@class='fancy'">
29 <xsl:apply-templates/>
32 <xsl:if test="@class='plain'">
34 <xsl:apply-templates/>
38 <xsl:template match="italic">
40 <xsl:apply-templates/>
43 <xsl:template match="red">
44 <font color="#FF0000">
45 <xsl:apply-templates/>
48 <xsl:template match="bold">
50 <xsl:apply-templates/>
53 <xsl:template match="newsheader"/>
54 <xsl:template match="newsitem">
55 <table border="0" cellpadding="0" cellspacing="0">
58 <td bgcolor="#999999">
59 <xsl:for-each select="newsheader">
60 <table border="0" cellpadding="2px" cellspacing="0">
63 <img alt="new:" src="pix/new.png"/>
65 <td align="left" valign="middle" width="100%">
67 <xsl:apply-templates/>
69 <font color="#DDDDDD" size="+1"> [<xsl:value-of select="@date"/>]</font>
79 <xsl:apply-templates/>
84 <xsl:template match="link">
85 <xsl:apply-templates/>
87 <xsl:template match="dblink">
88 <xsl:variable name="search" select="@id"/>
90 <xsl:attribute name="href">
91 <xsl:value-of select="//dlink[@id=$search]/@url"/>
94 <xsl:when test="./text()">
95 <xsl:apply-templates/>
98 <xsl:value-of select="//dlink[@id=$search]/@text"/>
102 <xsl:if test="sum(//dlink[@id=$search])=0">
103 <font color="#FF0000">
104 <blink>broken dblink "<xsl:value-of select="$search"/>"</blink>
108 <xsl:template match="newline">
111 <xsl:template match="itemizedlist">CLOSE_DA_P <ul>
112 <xsl:apply-templates/>
113 </ul>OPEN_DA_P</xsl:template>
114 <xsl:template match="listitem">
116 <xsl:apply-templates/>
119 <xsl:template match="person">
120 <xsl:value-of select="name"/> <<xsl:value-of select="email"/>>
122 <xsl:template match="index">
125 <b><xsl:value-of select="title"/></b>
129 <xsl:for-each select="//subsection">
132 <xsl:attribute name="href">#<xsl:value-of select="title"/>
134 <xsl:value-of select="title"/>
141 <xsl:template match="subsection">
145 <xsl:attribute name="name">
146 <xsl:value-of select="title"/>
148 <xsl:value-of select="title"/>
152 <xsl:apply-templates/>
154 <xsl:template match="title"/>
155 <xsl:template match="tarfiles">
157 <xsl:for-each select="tar">
158 <xsl:if test="@version!=//current/@version">
159 <li>Version <xsl:value-of select="@version"/>: <a>
160 <xsl:attribute name="href">dist/terminatorX-<xsl:value-of
161 select="@version"/>.tar.gz</xsl:attribute>terminatorX-<xsl:value-of select="@version"/>.tar.gz</a>
162 <xsl:if test="@havebz2='yes'"> (<a>
163 <xsl:attribute name="href">dist/terminatorX-<xsl:value-of select="@version"/>.tar.bz2</xsl:attribute>bz2</a>)</xsl:if>
169 <xsl:template match="rpm" name="rpm">
171 <xsl:if test="@type='src'">Source RPM: </xsl:if>
172 <xsl:if test="@type!='src'">
173 <xsl:value-of select="@type"/>-binary RPM: </xsl:if>
175 <xsl:attribute name="href">rpms/terminatorX-<xsl:value-of select="@version"/>-<xsl:value-of
176 select="@rpmsubversion"/>.<xsl:value-of select="@type"/>.<xsl:if test="@ext">
177 <xsl:value-of select="@ext"/>.</xsl:if>rpm</xsl:attribute> terminatorX-<xsl:value-of
178 select="@version"/>-<xsl:value-of select="@rpmsubversion"/>.<xsl:value-of
179 select="@type"/>.<xsl:if test="@ext">
180 <xsl:value-of select="@ext"/>.</xsl:if>rpm</a>
181 <xsl:if test="@distribution"> built for: <i>
182 <xsl:value-of select="@distribution"/>
185 <xsl:if test="@note">
187 <xsl:value-of select="@note"/>
191 <xsl:template match="rpmfiles">
193 <xsl:for-each select="rpm[@version!=//current/@version]">
194 <xsl:call-template name="rpm"/>
198 <xsl:template match="currentversion">
199 <p>The current terminatorX release is Version <xsl:value-of select="//current/@version"/>.
200 <br/>Download as:</p>
203 <xsl:attribute name="href">dist/terminatorX-<xsl:value-of
204 select="//current/@version"/>.tar.gz</xsl:attribute>terminatorX-<xsl:value-of select="//current/@version"/>.tar.gz</a>
205 <xsl:if test="//current/@havebz2='yes'"> (<a>
206 <xsl:attribute name="href">dist/terminatorX-<xsl:value-of select="//current/@version"/>.tar.bz2</xsl:attribute>bz2</a>)</xsl:if>
208 <xsl:for-each select="//rpm[@version=//current/@version]">
209 <xsl:call-template name="rpm"/>
212 <xsl:if test="sum(//rpm[@version=//current/@version])=0">Sorry, no RPMs available for the
213 current release, yet. Stay tuned.</xsl:if>
215 <xsl:template match="filelist">
217 <xsl:for-each select="file">
219 <xsl:call-template name="file"/>
224 <xsl:template match="file" name="file">
226 <xsl:attribute name="href">files/<xsl:apply-templates/>
228 <xsl:apply-templates/>
231 <xsl:template match="faq">
233 <font size="+1">Question-Index:</font>
236 <xsl:for-each select="qa">
239 <xsl:attribute name="href">#<xsl:value-of select="position()"/>
241 <xsl:value-of select="question"/>
247 <font size="+1">Answers:</font>
249 <xsl:apply-templates/>
251 <xsl:template match="qa">
252 <table border="0" cellpadding="0" cellspacing="0" width="100%">
254 <td bgcolor="#999999">
255 <table border="0" cellpadding="3px" cellspacing="0" width="100%">
259 <xsl:attribute name="name">
260 <xsl:value-of select="position() div 2"/>
262 <font color="#FFEE88" size="+1">
263 <xsl:value-of select="question"/>
273 <xsl:apply-templates/>
279 <a href="#index">(back to index)</a>
283 <xsl:template match="question"/>
284 <xsl:template match="answer">
285 <xsl:apply-templates/>
287 <xsl:template match="turntabletable">
288 <table border="2" cellpadding="2px" width="100%">
291 <tr bgcolor="#FFFF99">
292 <td width="100%" colspan="2">
293 <font face="Arial,Helvetica" color="#000000" size="+2">
300 <xsl:apply-templates/>
303 <xsl:template match="tt">
304 <tr bgcolor="#FFFF99">
305 <td align="left" colspan="2" width="100%">
306 <font color="#000000" face="Arial,Helvetica" size="+1">
308 <xsl:value-of select="@title"/>
314 <td valign="top" width="50%">
315 <xsl:for-each select="author">
317 <xsl:apply-templates/>
320 <xsl:for-each select="text">
321 <xsl:apply-templates/>
327 <xsl:for-each select="ttimages">
328 <xsl:apply-templates/>
335 <xsl:template match="scratchtable">
336 <table border="2" width="100%">
337 <tr bgcolor="#FFFF99">
339 <font color="#000000" face="Arial,Helvetica" size="+1">
344 <font color="#000000" face="Arial,Helvetica" size="+1">
349 <font color="#000000" face="Arial,Helvetica" size="+1">
354 <xsl:apply-templates/>
357 <xsl:template match="scratch">
359 <xsl:apply-templates/>
362 <xsl:template match="mp3file|author|comment">
364 <xsl:apply-templates/>
367 <xsl:template match="tinycomment|filesize">
370 <xsl:apply-templates/>
373 <xsl:template match="screen">
374 <span style="font-family: monospace; color: #DDFFDD">
375 <xsl:apply-templates/>
379 <xsl:template match="changelog">
380 <span style="font-family: monospace;">
381 <p><font size="+2">terminatorX ChangeLog</font></p>
382 <p>Copyright (C) 1999-2004 Alexander KMAKE_THIS_MYOUMLnig</p>
383 <xsl:apply-templates/>
387 <xsl:template match="version">
388 <p><font size="+1">Version <xsl:value-of select="@name"/> <xsl:if
389 test="@unreleased='true'"><i> (unreleased) </i></xsl:if></font>
392 <xsl:apply-templates/>
396 <xsl:template match="screenshot">
397 <xsl:if test="name(.)='screenshot'">CLOSE_DA_P</xsl:if>
399 <table border="0" width="100%">
404 <xsl:attribute name="href">pix/<xsl:value-of select="@filename"/>
407 <xsl:attribute name="alt">
408 <xsl:value-of select="name(.)"/>
410 <xsl:attribute name="src">pix/pre_<xsl:value-of select="@filename"/>
420 <xsl:apply-templates/>
426 <xsl:if test="name(.)='screenshot'">OPEN_DA_P</xsl:if>
428 <xsl:template match="image">
429 <xsl:if test="position()>3">
430 <xsl:if test="(position() div 2) mod 3=1">NEW_TT_ROW</xsl:if>
432 <td align="center" valign="top" width="33%">
438 <xsl:attribute name="href">pix/<xsl:value-of select="@filename"/>
441 <xsl:attribute name="alt">
442 <xsl:value-of select="name(.)"/>
444 <xsl:attribute name="src">pix/pre_<xsl:value-of select="@filename"/>
454 <xsl:apply-templates/>
461 <xsl:template match="ilink">
462 <table bgcolor="#999999" border="0" cellspacing="5px" width="100%">
464 <xsl:if test="banner">
465 <td align="center" valign="top" width="90px">
467 <xsl:attribute name="href">
469 <xsl:value-of select="link/@ref"/>
471 <xsl:if test="dblink">
472 <xsl:variable name="search" select="dblink/@id"/>
473 <xsl:value-of select="//dlink[@id=$search]/@url"/>
477 <xsl:attribute name="alt">
478 <xsl:value-of select="logo"/>
480 <xsl:attribute name="src">pix/banner/<xsl:value-of select="banner/@filename"/>
487 <xsl:for-each select="para">
488 <xsl:apply-templates/>
493 <xsl:if test="following-sibling::ilink">