mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 04:32:55 +00:00
1a8fe3f513
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@221 7f574dfc-610e-0410-a909-a81674777703
50 lines
1.2 KiB
XML
50 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
version="1.0">
|
|
|
|
<!--jtan325 created this-->
|
|
<xsl:output method="html"/>
|
|
|
|
<xsl:template match="/">
|
|
<html>
|
|
<head>
|
|
<title>Conky Variables</title>
|
|
</head>
|
|
<body bgcolor="#FFFFFF">
|
|
<xsl:apply-templates />
|
|
</body>
|
|
</html>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="variablelist" >
|
|
<table cellpadding="3">
|
|
|
|
<tr bgcolor = "#eecfa1">
|
|
<th>Variable</th>
|
|
<th>Arguments () = optional</th>
|
|
<th>Explanation</th>
|
|
</tr>
|
|
|
|
<xsl:for-each select="varlistentry">
|
|
<xsl:variable name="row_bg">
|
|
<xsl:choose>
|
|
<xsl:when test="position() mod 2 = 1">#fffafa</xsl:when>
|
|
<xsl:otherwise>#b4cdcd</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:variable>
|
|
<tr bgcolor = "{$row_bg}">
|
|
<td align="center">
|
|
<xsl:value-of select="term/command/option" />
|
|
</td>
|
|
<td align="center">
|
|
<xsl:value-of select="term/option" />
|
|
</td>
|
|
<td>
|
|
<xsl:value-of select="listitem" />
|
|
</td>
|
|
</tr>
|
|
</xsl:for-each>
|
|
</table>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet> |