Bump for release.
[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         <xsl:output method="html"/>
6
7         <xsl:template match="/">
8                 <html>
9                         <head>
10                                 <title>Conky Variables</title>
11                         </head>
12                         <body bgcolor="#FFFFFF">
13                                 <xsl:apply-templates />
14                         </body>
15                 </html>
16         </xsl:template>
17
18         <xsl:template match="/">
19                 <html>
20                         <head>
21                                 <title>Conky Objects</title>
22                         </head>
23                         <body bgcolor="#FFFFFF">
24                                 <xsl:apply-templates />
25                         </body>
26                 </html>
27         </xsl:template>
28
29         <xsl:template match="member/command">
30                 <strong>
31                         <xsl:value-of select="." />
32                 </strong> - 
33         </xsl:template>
34
35         <xsl:template match="member/option">
36                 <xsl:value-of select="." />
37         </xsl:template>
38
39         <xsl:template match="member">
40                 <li>
41                         <xsl:apply-templates />
42                 </li>
43         </xsl:template>
44
45         <xsl:template match="simplelist">
46                 <ul>
47                         <xsl:apply-templates select="member" />
48                 </ul>
49         </xsl:template>
50
51         <xsl:template match="para">
52                 <p>
53                         <xsl:value-of select="." />
54                 </p>
55         </xsl:template>
56
57         <xsl:template match="variablelist" >
58                 <table cellpadding="3">
59
60                         <tr bgcolor = "#eecfa1">
61                                 <th>Variable</th>
62                                 <th>Arguments () = optional</th>
63                                 <th>Explanation</th>
64                         </tr>
65
66                         <xsl:for-each select="varlistentry">
67                                 <xsl:variable name="row_bg">
68                                         <xsl:choose>
69                                                 <xsl:when test="position() mod 2 = 1">#fffafa</xsl:when>
70                                                 <xsl:otherwise>#b4cdcd</xsl:otherwise>
71                                         </xsl:choose>
72                                 </xsl:variable>
73                                 <tr bgcolor = "{$row_bg}">
74                                         <td align="center">
75                                                 <xsl:value-of select="term/command/option" />
76                                         </td>
77                                         <td align="center">
78                                                 <xsl:value-of select="term/option" />
79                                         </td>
80                                         <td>
81                                                 <xsl:apply-templates select="listitem" />
82                                         </td>
83                                 </tr>
84                         </xsl:for-each>
85                 </table>
86         </xsl:template>
87
88 </xsl:stylesheet>