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/>
37 <xsl:if test="@class='screen'">
39 <xsl:apply-templates/>
43 <xsl:template match="italic">
45 <xsl:apply-templates/>
48 <xsl:template match="red">
49 <font color="#FF0000">
50 <xsl:apply-templates/>
53 <xsl:template match="bold">
55 <xsl:apply-templates/>
58 <xsl:template match="newsheader"/>
59 <xsl:template match="newsitem">
60 <table border="0" cellpadding="0" cellspacing="0">
63 <td bgcolor="#999999">
64 <xsl:for-each select="newsheader">
65 <table border="0" cellpadding="2px" cellspacing="0">
68 <img alt="new:" src="pix/new.png"/>
70 <td align="left" valign="middle" width="100%">
72 <xsl:apply-templates/>
74 <font color="#DDDDDD" size="+1"> [<xsl:value-of select="@date"/>]</font>
84 <xsl:apply-templates/>
89 <xsl:template match="link">
90 <xsl:apply-templates/>
92 <xsl:template match="dblink">
93 <xsl:variable name="search" select="@id"/>
95 <xsl:attribute name="href">
96 <xsl:value-of select="//dlink[@id=$search]/@url"/>
99 <xsl:when test="./text()">
100 <xsl:apply-templates/>
103 <xsl:value-of select="//dlink[@id=$search]/@text"/>
107 <xsl:if test="sum(//dlink[@id=$search])=0">
108 <font color="#FF0000">
109 <blink>broken dblink "<xsl:value-of select="$search"/>"</blink>
113 <xsl:template match="newline">
116 <xsl:template match="itemizedlist">CLOSE_DA_P <ul>
117 <xsl:apply-templates/>
118 </ul>OPEN_DA_P</xsl:template>
119 <xsl:template match="listitem">
121 <xsl:apply-templates/>
124 <xsl:template match="person">
125 <xsl:value-of select="name"/> <<xsl:value-of select="email"/>>
127 <xsl:template match="index">
130 <b><xsl:value-of select="title"/></b>
134 <xsl:for-each select="//subsection">
137 <xsl:attribute name="href">#<xsl:value-of select="title"/>
139 <xsl:value-of select="title"/>
146 <xsl:template match="subsection">
150 <xsl:attribute name="name">
151 <xsl:value-of select="title"/>
153 <xsl:value-of select="title"/>
157 <xsl:apply-templates/>
159 <xsl:template match="title"/>
160 <xsl:template match="tarfiles">
162 <xsl:for-each select="tar">
163 <xsl:if test="@version!=//current/@version">
164 <li>Version <xsl:value-of select="@version"/>: <a>
165 <xsl:attribute name="href">dist/terminatorX-<xsl:value-of
166 select="@version"/>.tar.gz</xsl:attribute>terminatorX-<xsl:value-of select="@version"/>.tar.gz</a>
167 <xsl:if test="@havebz2='yes'"> (<a>
168 <xsl:attribute name="href">dist/terminatorX-<xsl:value-of select="@version"/>.tar.bz2</xsl:attribute>bz2</a>)</xsl:if>
174 <xsl:template match="rpm" name="rpm">
176 <xsl:if test="@type='src'">Source RPM: </xsl:if>
177 <xsl:if test="@type!='src'">
178 <xsl:value-of select="@type"/>-binary RPM: </xsl:if>
180 <xsl:attribute name="href">rpms/terminatorX-<xsl:value-of select="@version"/>-<xsl:value-of
181 select="@rpmsubversion"/>.<xsl:value-of select="@type"/>.<xsl:if test="@ext">
182 <xsl:value-of select="@ext"/>.</xsl:if>rpm</xsl:attribute> terminatorX-<xsl:value-of
183 select="@version"/>-<xsl:value-of select="@rpmsubversion"/>.<xsl:value-of
184 select="@type"/>.<xsl:if test="@ext">
185 <xsl:value-of select="@ext"/>.</xsl:if>rpm</a>
186 <xsl:if test="@distribution"> built for: <i>
187 <xsl:value-of select="@distribution"/>
190 <xsl:if test="@note">
192 <xsl:value-of select="@note"/>
196 <xsl:template match="rpmfiles">
198 <xsl:for-each select="rpm[@version!=//current/@version]">
199 <xsl:call-template name="rpm"/>
203 <xsl:template match="currentversion">
204 <p>The current terminatorX release is Version <xsl:value-of select="//current/@version"/>.
205 <br/>Download as:</p>
208 <xsl:attribute name="href">dist/terminatorX-<xsl:value-of
209 select="//current/@version"/>.tar.gz</xsl:attribute>terminatorX-<xsl:value-of select="//current/@version"/>.tar.gz</a>
210 <xsl:if test="//current/@havebz2='yes'"> (<a>
211 <xsl:attribute name="href">dist/terminatorX-<xsl:value-of select="//current/@version"/>.tar.bz2</xsl:attribute>bz2</a>)</xsl:if>
213 <xsl:for-each select="//rpm[@version=//current/@version]">
214 <xsl:call-template name="rpm"/>
217 <xsl:if test="sum(//rpm[@version=//current/@version])=0">Sorry, no RPMs available for the
218 current release, yet. Stay tuned.</xsl:if>
220 <xsl:template match="filelist">
222 <xsl:for-each select="file">
224 <xsl:call-template name="file"/>
229 <xsl:template match="file" name="file">
231 <xsl:attribute name="href">files/<xsl:apply-templates/>
233 <xsl:apply-templates/>
236 <xsl:template match="faq">
238 <font size="+1">Question-Index:</font>
241 <xsl:for-each select="qa">
244 <xsl:attribute name="href">#<xsl:value-of select="position()"/>
246 <xsl:value-of select="question"/>
252 <font size="+1">Answers:</font>
254 <xsl:apply-templates/>
256 <xsl:template match="qa">
257 <table border="0" cellpadding="0" cellspacing="0" width="100%">
259 <td bgcolor="#999999">
260 <table border="0" cellpadding="3px" cellspacing="0" width="100%">
264 <xsl:attribute name="name">
265 <xsl:value-of select="position() div 2"/>
267 <font color="#FFEE88" size="+1">
268 <xsl:value-of select="question"/>
278 <xsl:apply-templates/>
284 <a href="#index">(back to index)</a>
288 <xsl:template match="question"/>
289 <xsl:template match="answer">
290 <xsl:apply-templates/>
292 <xsl:template match="turntabletable">
293 <table border="2" cellpadding="2px" width="100%">
296 <tr bgcolor="#FFFF99">
297 <td width="100%" colspan="2">
298 <font face="Arial,Helvetica" color="#000000" size="+2">
305 <xsl:apply-templates/>
308 <xsl:template match="tt">
309 <tr bgcolor="#FFFF99">
310 <td align="left" colspan="2" width="100%">
311 <font color="#000000" face="Arial,Helvetica" size="+1">
313 <xsl:value-of select="@title"/>
319 <td valign="top" width="50%">
320 <xsl:for-each select="author">
322 <xsl:apply-templates/>
325 <xsl:for-each select="text">
326 <xsl:apply-templates/>
332 <xsl:for-each select="ttimages">
333 <xsl:apply-templates/>
340 <xsl:template match="scratchtable">
341 <table border="2" width="100%">
342 <tr bgcolor="#FFFF99">
344 <font color="#000000" face="Arial,Helvetica" size="+1">
349 <font color="#000000" face="Arial,Helvetica" size="+1">
354 <font color="#000000" face="Arial,Helvetica" size="+1">
359 <xsl:apply-templates/>
362 <xsl:template match="scratch">
364 <xsl:apply-templates/>
367 <xsl:template match="mp3file|author|comment">
369 <xsl:apply-templates/>
372 <xsl:template match="tinycomment|filesize">
375 <xsl:apply-templates/>
378 <xsl:template match="screen">
379 <span style="font-family: monospace; color: #DDFFDD">
380 <xsl:apply-templates/>
384 <xsl:template match="changelog">
385 <span style="font-family: monospace;">
386 <p><font size="+2">terminatorX ChangeLog</font></p>
387 <p>Copyright (C) 1999-2004 Alexander KMAKE_THIS_MYOUMLnig</p>
388 <xsl:apply-templates/>
392 <xsl:template match="version">
393 <p><font size="+1">Version <xsl:value-of select="@name"/> <xsl:if
394 test="@unreleased='true'"><i> (unreleased) </i></xsl:if></font>
397 <xsl:apply-templates/>
401 <xsl:template match="screenshot">
402 <xsl:if test="name(.)='screenshot'">CLOSE_DA_P</xsl:if>
404 <table border="0" width="100%">
409 <xsl:attribute name="href">pix/<xsl:value-of select="@filename"/>
412 <xsl:attribute name="alt">
413 <xsl:value-of select="name(.)"/>
415 <xsl:attribute name="src">pix/pre_<xsl:value-of select="@filename"/>
425 <xsl:apply-templates/>
431 <xsl:if test="name(.)='screenshot'">OPEN_DA_P</xsl:if>
433 <xsl:template match="image">
434 <xsl:if test="position()>3">
435 <xsl:if test="(position() div 2) mod 3=1">NEW_TT_ROW</xsl:if>
437 <td align="center" valign="top" width="33%">
443 <xsl:attribute name="href">pix/<xsl:value-of select="@filename"/>
446 <xsl:attribute name="alt">
447 <xsl:value-of select="name(.)"/>
449 <xsl:attribute name="src">pix/pre_<xsl:value-of select="@filename"/>
459 <xsl:apply-templates/>
466 <xsl:template match="ilink">
467 <table bgcolor="#999999" border="0" cellspacing="5px" width="100%">
469 <xsl:if test="banner">
470 <td align="center" valign="top" width="90px">
472 <xsl:attribute name="href">
474 <xsl:value-of select="link/@ref"/>
476 <xsl:if test="dblink">
477 <xsl:variable name="search" select="dblink/@id"/>
478 <xsl:value-of select="//dlink[@id=$search]/@url"/>
482 <xsl:attribute name="alt">
483 <xsl:value-of select="logo"/>
485 <xsl:attribute name="src">pix/banner/<xsl:value-of select="banner/@filename"/>
492 <xsl:for-each select="para">
493 <xsl:apply-templates/>
498 <xsl:if test="following-sibling::ilink">