summaryrefslogtreecommitdiffstats
path: root/reports/xsl-transforms
diff options
context:
space:
mode:
authorJoey Hagedorn <hagedorn@mcs.anl.gov>2005-08-03 03:59:39 +0000
committerJoey Hagedorn <hagedorn@mcs.anl.gov>2005-08-03 03:59:39 +0000
commitd09ef7dbc2bb30a5dcef5125753f7b9d8920c698 (patch)
tree46da03e077f1edb8c85c17f3e1718abd658e303f /reports/xsl-transforms
parentc72569a4a0ce25fcce19cf9ed05d98c887584428 (diff)
downloadbcfg2-d09ef7dbc2bb30a5dcef5125753f7b9d8920c698.tar.gz
bcfg2-d09ef7dbc2bb30a5dcef5125753f7b9d8920c698.tar.bz2
bcfg2-d09ef7dbc2bb30a5dcef5125753f7b9d8920c698.zip
don't display nodes with no content
(Logical change 1.279) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1127 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'reports/xsl-transforms')
-rw-r--r--reports/xsl-transforms/xsl-transform-includes/html-templates.xsl2
-rw-r--r--reports/xsl-transforms/xsl-transform-includes/text-templates.xsl11
2 files changed, 9 insertions, 4 deletions
diff --git a/reports/xsl-transforms/xsl-transform-includes/html-templates.xsl b/reports/xsl-transforms/xsl-transform-includes/html-templates.xsl
index c0defab29..2c8fa67ee 100644
--- a/reports/xsl-transforms/xsl-transform-includes/html-templates.xsl
+++ b/reports/xsl-transforms/xsl-transform-includes/html-templates.xsl
@@ -1,11 +1,13 @@
<?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:if test="count(Statistics/Good)+count(Statistics/Bad)+count(Statistics/Modified)+count(Statistics/Stale) > 0">
<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:if>
</xsl:template>
<xsl:template match="Statistics">
diff --git a/reports/xsl-transforms/xsl-transform-includes/text-templates.xsl b/reports/xsl-transforms/xsl-transform-includes/text-templates.xsl
index c186b1b79..b72124d3b 100644
--- a/reports/xsl-transforms/xsl-transform-includes/text-templates.xsl
+++ b/reports/xsl-transforms/xsl-transform-includes/text-templates.xsl
@@ -1,18 +1,21 @@
<?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:if test="count(Statistics/Good)+count(Statistics/Bad)+count(Statistics/Stale)+count(Statistics/Modified) > 0">
+
<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:if>
</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: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.