summaryrefslogtreecommitdiffstats
path: root/reports/xsl-transforms/xsl-transform-includes
diff options
context:
space:
mode:
authorJoey Hagedorn <hagedorn@mcs.anl.gov>2005-08-01 14:57:24 +0000
committerJoey Hagedorn <hagedorn@mcs.anl.gov>2005-08-01 14:57:24 +0000
commit058635947a024e68112b7721174c7bc40248aaee (patch)
treea177d52716088c64ac004b8f0ab253df63135726 /reports/xsl-transforms/xsl-transform-includes
parent7fb840f2b981c8c75158b76d2dd4b0af7635d681 (diff)
downloadbcfg2-058635947a024e68112b7721174c7bc40248aaee.tar.gz
bcfg2-058635947a024e68112b7721174c7bc40248aaee.tar.bz2
bcfg2-058635947a024e68112b7721174c7bc40248aaee.zip
(Logical change 1.272)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1105 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'reports/xsl-transforms/xsl-transform-includes')
-rw-r--r--reports/xsl-transforms/xsl-transform-includes/html-templates.xsl104
-rw-r--r--reports/xsl-transforms/xsl-transform-includes/text-templates.xsl85
2 files changed, 189 insertions, 0 deletions
diff --git a/reports/xsl-transforms/xsl-transform-includes/html-templates.xsl b/reports/xsl-transforms/xsl-transform-includes/html-templates.xsl
index e69de29bb..c0defab29 100644
--- a/reports/xsl-transforms/xsl-transform-includes/html-templates.xsl
+++ b/reports/xsl-transforms/xsl-transform-includes/html-templates.xsl
@@ -0,0 +1,104 @@
+<?xml version="1.0"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns="http://www.w3.org/1999/xhtml">
+ <xsl:template match="Node">
+ <div class="nodebox">
+ <span class="notebox">Time Ran: <xsl:value-of select="Statistics/@time" /></span>
+ <h2>Node: <span class="nodename"><xsl:value-of select="HostInfo/@fqdn" /></span></h2>
+ <xsl:apply-templates select="Statistics" />
+ </div>
+ </xsl:template>
+
+ <xsl:template match="Statistics">
+
+ <xsl:apply-templates select="Stale" />
+ <xsl:apply-templates select="Good" />
+ <xsl:apply-templates select="Bad" />
+ <xsl:apply-templates select="Modified" />
+ </xsl:template>
+
+
+ <xsl:template match="Good">
+ <div class="clean">
+ <span class="nodelisttitle">Node is clean; Everything has been satisfactorily configured.</span>
+ </div>
+ </xsl:template>
+
+ <xsl:template match="Stale">
+ <div class="warning">
+ <span class="nodelisttitle">This node did not run on today's calendar date-- it may be out of date.</span>
+ </div>
+ </xsl:template>
+
+ <xsl:template match="Bad">
+ <div class="bad">
+ <span class="nodelisttitle"><a href="javascript:toggleLayer('{generate-id(.)}');" title="Click to expand" class="commentLink"><xsl:value-of select="count(./*)" /></a> items did not verify and are considered Dirty.<br /></span>
+
+ <div class="items" id="{generate-id(.)}"><ul class="plain">
+ <xsl:apply-templates select="ConfigFile">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ <xsl:apply-templates select="Directory">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ <xsl:apply-templates select="Package">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ <xsl:apply-templates select="Service">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ <xsl:apply-templates select="SymLink">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ </ul></div>
+ </div>
+ </xsl:template>
+
+ <xsl:template match="Modified">
+ <div class="modified">
+ <span class="nodelisttitle"><a href="javascript:toggleLayer('{generate-id(.)}');" title="Click to Expand" class="commentLink"><xsl:value-of select="count(./*)" /></a> items were modified in the last run.<br /></span>
+
+ <div class="items" id="{generate-id(.)}"><ul class="plain">
+ <xsl:apply-templates select="ConfigFile">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ <xsl:apply-templates select="Directory">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ <xsl:apply-templates select="Package">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ <xsl:apply-templates select="Service">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ <xsl:apply-templates select="SymLink">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ </ul></div>
+ </div>
+ </xsl:template>
+
+ <xsl:template match="ConfigFile">
+ <li><b>Config File: </b>
+ <tt><xsl:value-of select="@name"/></tt></li>
+ </xsl:template>
+
+ <xsl:template match="Package">
+ <li><b>Package: </b>
+ <tt><xsl:value-of select="@name"/></tt></li>
+ </xsl:template>
+
+ <xsl:template match="Directory">
+ <li><b>Directory: </b>
+ <tt><xsl:value-of select="@name"/></tt></li>
+ </xsl:template>
+
+ <xsl:template match="Service">
+ <li><b>Service: </b>
+ <tt><xsl:value-of select="@name"/></tt></li>
+ </xsl:template>
+
+ <xsl:template match="SymLink">
+ <li><b>SymLink: </b>
+ <tt><xsl:value-of select="@name"/></tt></li>
+ </xsl:template>
+</xsl:stylesheet> \ No newline at end of file
diff --git a/reports/xsl-transforms/xsl-transform-includes/text-templates.xsl b/reports/xsl-transforms/xsl-transform-includes/text-templates.xsl
index e69de29bb..c186b1b79 100644
--- a/reports/xsl-transforms/xsl-transform-includes/text-templates.xsl
+++ b/reports/xsl-transforms/xsl-transform-includes/text-templates.xsl
@@ -0,0 +1,85 @@
+<?xml version="1.0"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns="http://www.w3.org/1999/xhtml">
+<xsl:template match="Node">
+<xsl:text>
+
+ </xsl:text>Node:<xsl:value-of select="HostInfo/@fqdn" /><xsl:text>
+ </xsl:text>Time Ran: <xsl:value-of select="Statistics/@time" />.
+<xsl:apply-templates select="Statistics" />
+</xsl:template>
+
+<xsl:template match="Statistics">
+ <xsl:apply-templates select="Stale" />
+ <xsl:apply-templates select="Good" />
+ <xsl:apply-templates select="Bad" />
+ <xsl:apply-templates select="Modified" />
+</xsl:template>
+<xsl:template match="Good">
+<xsl:text> </xsl:text>Node is clean; Everything has been satisfactorily configured.
+</xsl:template>
+<xsl:template match="Stale">
+<xsl:text> </xsl:text>This node did not run today-- it may be out of date.
+</xsl:template>
+<xsl:template match="Bad">
+<xsl:text> </xsl:text><xsl:value-of select="count(./*)" /> items did not verify and are considered Dirty:
+ <xsl:apply-templates select="ConfigFile">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ <xsl:apply-templates select="Directory">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ <xsl:apply-templates select="Package">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ <xsl:apply-templates select="Service">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ <xsl:apply-templates select="SymLink">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ </xsl:template>
+
+<xsl:template match="Modified">
+<xsl:text> </xsl:text><xsl:value-of select="count(./*)" /> items were modified in the last run.
+ <xsl:apply-templates select="ConfigFile">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ <xsl:apply-templates select="Directory">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ <xsl:apply-templates select="Package">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ <xsl:apply-templates select="Service">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+ <xsl:apply-templates select="SymLink">
+ <xsl:sort select="@name"/>
+ </xsl:apply-templates>
+</xsl:template>
+
+<xsl:template match="ConfigFile">
+<xsl:text>
+ </xsl:text>Config File: <xsl:value-of select="@name"/>
+</xsl:template>
+
+<xsl:template match="Package">
+<xsl:text>
+ </xsl:text>Package: <xsl:value-of select="@name"/>
+</xsl:template>
+
+<xsl:template match="Directory">
+<xsl:text>
+ </xsl:text>Directory: <xsl:value-of select="@name"/>
+</xsl:template>
+
+<xsl:template match="Service">
+<xsl:text>
+ </xsl:text>Service: <xsl:value-of select="@name"/>
+</xsl:template>
+
+<xsl:template match="SymLink">
+<xsl:text>
+ </xsl:text>SymLink: <xsl:value-of select="@name"/>
+</xsl:template>
+</xsl:stylesheet> \ No newline at end of file