fixed typos, changed the look of the pretty html tables (thanks cptn for xsl advice...
[monky] / doc / config_settings.xsl
1 <?xml version="1.0" encoding="utf-8"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3   version="1.0">
4   
5   <!--jtan325 created this-->  
6   <xsl:output method="html"/>
7   
8   <xsl:template match="/">
9     <html>
10       <head>
11         <title>~/.conkyrc settings</title>
12       </head>
13       <body bgcolor="#FFFFFF">
14         <xsl:apply-templates />
15       </body>
16     </html>
17   </xsl:template>
18
19   <xsl:template match="variablelist" >
20     <table cellpadding="3">
21
22       <tr bgcolor = "#eecfa1">
23         <th>Variable</th>
24         <th>Explanation</th>
25       </tr>
26         
27       <xsl:for-each select="varlistentry">
28                                 <xsl:variable name="row_bg">
29                                         <xsl:choose>
30                                                 <xsl:when test="position() mod 2 = 1">#fffafa</xsl:when>
31                                                 <xsl:otherwise>#b4cdcd</xsl:otherwise>
32                                         </xsl:choose>
33                                 </xsl:variable>
34         <tr bgcolor = "{$row_bg}">
35             <td align="center">
36                 <xsl:value-of select="term/command/option" />
37             </td>
38                   <td>
39               <xsl:value-of select="listitem" />
40                   </td>
41         </tr>
42       </xsl:for-each>
43     </table>
44   </xsl:template>
45   
46 </xsl:stylesheet>