spelling
[monky] / doc / variables.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>Conky Variables</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>Arguments () = optional</th>
25         <th>Explanation</th>
26       </tr>
27         
28       <xsl:for-each select="varlistentry">
29                                 <xsl:variable name="row_bg">
30                                         <xsl:choose>
31                                                 <xsl:when test="position() mod 2 = 1">#fffafa</xsl:when>
32                                                 <xsl:otherwise>#b4cdcd</xsl:otherwise>
33                                         </xsl:choose>
34                                 </xsl:variable>
35         <tr bgcolor = "{$row_bg}">
36             <td align="center">
37                 <xsl:value-of select="term/command/option" />
38             </td>
39             <td align="center"> 
40               <xsl:value-of select="term/option" />
41                   </td>
42                   <td>
43               <xsl:value-of select="listitem" />
44                   </td>
45         </tr>
46       </xsl:for-each>
47     </table>
48   </xsl:template>
49   
50 </xsl:stylesheet>