summaryrefslogtreecommitdiffstats
path: root/reports/xsl-transforms
diff options
context:
space:
mode:
authorJoey Hagedorn <hagedorn@mcs.anl.gov>2006-01-10 20:13:35 +0000
committerJoey Hagedorn <hagedorn@mcs.anl.gov>2006-01-10 20:13:35 +0000
commit203936120bee10bd2c0c9494a68c58108b41dba9 (patch)
treec18beb25b6f378672eff5b9d40cf70e76230e633 /reports/xsl-transforms
parenta97e8d02a5cb68525e9cd2738651a3906c9333eb (diff)
downloadbcfg2-203936120bee10bd2c0c9494a68c58108b41dba9.tar.gz
bcfg2-203936120bee10bd2c0c9494a68c58108b41dba9.tar.bz2
bcfg2-203936120bee10bd2c0c9494a68c58108b41dba9.zip
reverted some xsl transforms to older version
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1663 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'reports/xsl-transforms')
-rw-r--r--reports/xsl-transforms/nodes-digest-www.xsl40
-rw-r--r--reports/xsl-transforms/overview-stats-rss.xsl28
-rw-r--r--reports/xsl-transforms/timing-summary-www.xsl4
3 files changed, 36 insertions, 36 deletions
diff --git a/reports/xsl-transforms/nodes-digest-www.xsl b/reports/xsl-transforms/nodes-digest-www.xsl
index 95026120f..9585738c9 100644
--- a/reports/xsl-transforms/nodes-digest-www.xsl
+++ b/reports/xsl-transforms/nodes-digest-www.xsl
@@ -10,8 +10,8 @@
<xsl:variable name="dirtynodes" select="/Report/Node[count(Statistics/Bad)>0]"/>
<xsl:variable name="modifiednodes" select="/Report/Node[count(Statistics/Modified)>0]"/>
<xsl:variable name="stalenodes" select="/Report/Node[count(Statistics/Stale)>0]"/>
- <xsl:variable name="unpingablenodes" select="/Report/Node[Client/@pingable='N']"/>
- <xsl:variable name="pingablenodes" select="/Report/Node[Client/@pingable='Y']"/>
+ <xsl:variable name="unpingablenodes" select="/Report/Node[HostInfo/@pingable='N']"/>
+ <xsl:variable name="pingablenodes" select="/Report/Node[HostInfo/@pingable='Y']"/>
<html>
<head>
@@ -48,10 +48,10 @@
<div class="items" id="goodsummary"><ul class="plain">
<xsl:for-each select="Node">
- <xsl:sort select="Client/@name"/>
+ <xsl:sort select="HostInfo/@fqdn"/>
<xsl:if test="count(Statistics/Good) > 0">
<li><b>Node: </b>
- <tt><a href="#{Client/@name}"><xsl:value-of select="Client/@name" /></a></tt></li>
+ <tt><a href="#{HostInfo/@fqdn}"><xsl:value-of select="HostInfo/@fqdn" /></a></tt></li>
</xsl:if>
</xsl:for-each>
</ul></div>
@@ -64,10 +64,10 @@
<div class="items" id="badsummary"><ul class="plain">
<xsl:for-each select="Node">
- <xsl:sort select="Client/@name"/>
+ <xsl:sort select="HostInfo/@fqdn"/>
<xsl:if test="count(Statistics/Bad) > 0">
<li><b>Node: </b>
- <tt><a href="#{Client/@name}"><xsl:value-of select="Client/@name" /></a></tt></li>
+ <tt><a href="#{HostInfo/@fqdn}"><xsl:value-of select="HostInfo/@fqdn" /></a></tt></li>
</xsl:if>
</xsl:for-each>
</ul></div>
@@ -79,10 +79,10 @@
<span class="nodelisttitle"><a href="javascript:toggleLayer('extrasummary');" title="Click to Expand" class="commentLink"><xsl:value-of select="count(/Report/Node/Statistics/Extra)" /></a> nodes have extra configuration. (includes both good and bad nodes)<br /></span>
<div class="items" id="extrasummary"><ul class="plain">
<xsl:for-each select="Node">
- <xsl:sort select="Client/@name"/>
+ <xsl:sort select="HostInfo/@fqdn"/>
<xsl:if test="count(Statistics/Extra) > 0">
<li><b>Node: </b>
- <tt><a href="#{Client/@name}"><xsl:value-of select="Client/@name" /></a></tt></li>
+ <tt><a href="#{HostInfo/@fqdn}"><xsl:value-of select="HostInfo/@fqdn" /></a></tt></li>
</xsl:if>
</xsl:for-each>
</ul></div>
@@ -96,10 +96,10 @@
<div class="items" id="modifiedsummary"><ul class="plain">
<xsl:for-each select="Node">
- <xsl:sort select="Client/@name"/>
+ <xsl:sort select="HostInfo/@fqdn"/>
<xsl:if test="count(Statistics/Modified) > 0">
<li><b>Node: </b>
- <tt><a href="#{Client/@name}"><xsl:value-of select="Client/@name" /></a></tt></li>
+ <tt><a href="#{HostInfo/@fqdn}"><xsl:value-of select="HostInfo/@fqdn" /></a></tt></li>
</xsl:if>
</xsl:for-each>
</ul></div>
@@ -111,10 +111,10 @@
<span class="nodelisttitle"><a href="javascript:toggleLayer('vstalesummary');" title="Click to Expand" class="commentLink"><xsl:value-of select="count($stalenodes[count(.|$pingablenodes)= count($pingablenodes)])" /></a> nodes did not run within the last 24 hours but were pingable.<br /></span>
<div class="items" id="vstalesummary"><ul class="plain">
<xsl:for-each select="Node">
- <xsl:sort select="Client/@name"/>
- <xsl:if test="count(Statistics/Stale)-count(Client[@pingable='N']) > 0">
+ <xsl:sort select="HostInfo/@fqdn"/>
+ <xsl:if test="count(Statistics/Stale)-count(HostInfo[@pingable='N']) > 0">
<li><b>Node: </b>
- <tt><a href="#{Client/@name}"><xsl:value-of select="Client/@name" /></a></tt></li>
+ <tt><a href="#{HostInfo/@fqdn}"><xsl:value-of select="HostInfo/@fqdn" /></a></tt></li>
</xsl:if>
</xsl:for-each>
</ul></div>
@@ -127,10 +127,10 @@
<div class="items" id="stalesummary"><ul class="plain">
<xsl:for-each select="Node">
- <xsl:sort select="Client/@name"/>
+ <xsl:sort select="HostInfo/@fqdn"/>
<xsl:if test="count(Statistics/Stale) > 0">
<li><b>Node: </b>
- <tt><a href="#{Client/@name}"><xsl:value-of select="Client/@name" /></a></tt></li>
+ <tt><a href="#{HostInfo/@fqdn}"><xsl:value-of select="HostInfo/@fqdn" /></a></tt></li>
</xsl:if>
</xsl:for-each>
</ul></div>
@@ -138,16 +138,16 @@
</div>
</xsl:if>
- <xsl:if test="count(/Report/Node[Client/@pingable='N']) > 0">
+ <xsl:if test="count(/Report/Node[HostInfo/@pingable='N']) > 0">
<div class="down">
- <span class="nodelisttitle"><a href="javascript:toggleLayer('unpingablesummary');" title="Click to Expand" class="commentLink"><xsl:value-of select="count(/Report/Node/Client[@pingable='N'])" /></a> nodes were down.<br /></span>
+ <span class="nodelisttitle"><a href="javascript:toggleLayer('unpingablesummary');" title="Click to Expand" class="commentLink"><xsl:value-of select="count(/Report/Node/HostInfo[@pingable='N'])" /></a> nodes were down.<br /></span>
<div class="items" id="unpingablesummary"><ul class="plain">
<xsl:for-each select="Node">
- <xsl:sort select="Client/@name"/>
- <xsl:if test="count(Client[@pingable='N']) > 0">
+ <xsl:sort select="HostInfo/@fqdn"/>
+ <xsl:if test="count(HostInfo[@pingable='N']) > 0">
<li><b>Node: </b>
- <tt><a href="#{Client/@name}"><xsl:value-of select="Client/@name" /></a></tt></li>
+ <tt><a href="#{HostInfo/@fqdn}"><xsl:value-of select="HostInfo/@fqdn" /></a></tt></li>
</xsl:if>
</xsl:for-each>
</ul></div>
diff --git a/reports/xsl-transforms/overview-stats-rss.xsl b/reports/xsl-transforms/overview-stats-rss.xsl
index 1df5e29cf..c4c689a99 100644
--- a/reports/xsl-transforms/overview-stats-rss.xsl
+++ b/reports/xsl-transforms/overview-stats-rss.xsl
@@ -12,8 +12,8 @@ Report Run @ <xsl:value-of select="@time" />
<xsl:variable name="dirtynodes" select="/Report/Node[count(Statistics/Bad)>0]"/>
<xsl:variable name="modifiednodes" select="/Report/Node[count(Statistics/Modified)>0]"/>
<xsl:variable name="stalenodes" select="/Report/Node[count(Statistics/Stale)>0]"/>
-<xsl:variable name="unpingablenodes" select="/Report/Node[Client/@pingable='N']"/>
-<xsl:variable name="pingablenodes" select="/Report/Node[Client/@pingable='Y']"/>
+<xsl:variable name="unpingablenodes" select="/Report/Node[HostInfo/@pingable='N']"/>
+<xsl:variable name="pingablenodes" select="/Report/Node[HostInfo/@pingable='Y']"/>
Summary:
<xsl:text> </xsl:text><xsl:value-of select="count($cleannodes)" /> nodes are clean.
@@ -30,9 +30,9 @@ Summary:
<xsl:if test="count($cleannodes) > 0">
CLEAN:
<xsl:for-each select="Node">
-<xsl:sort select="Client/@name"/>
+<xsl:sort select="HostInfo/@fqdn"/>
<xsl:if test="count(Statistics/Good) > 0">
-<xsl:text> </xsl:text><xsl:value-of select="Client/@name" /><xsl:text>
+<xsl:text> </xsl:text><xsl:value-of select="HostInfo/@fqdn" /><xsl:text>
</xsl:text>
</xsl:if>
</xsl:for-each><xsl:text>
@@ -42,9 +42,9 @@ CLEAN:
<xsl:if test="count($dirtynodes) > 0">
DIRTY:
<xsl:for-each select="Node">
-<xsl:sort select="Client/@name"/>
+<xsl:sort select="HostInfo/@fqdn"/>
<xsl:if test="count(Statistics/Bad) > 0">
-<xsl:text> </xsl:text><xsl:value-of select="Client/@name" /><xsl:text>
+<xsl:text> </xsl:text><xsl:value-of select="HostInfo/@fqdn" /><xsl:text>
</xsl:text>
</xsl:if>
</xsl:for-each><xsl:text>
@@ -54,9 +54,9 @@ DIRTY:
<xsl:if test="count($modifiednodes) > 0">
MODIFIED:
<xsl:for-each select="Node">
-<xsl:sort select="Client/@name"/>
+<xsl:sort select="HostInfo/@fqdn"/>
<xsl:if test="count(Statistics/Modified) > 0">
-<xsl:text> </xsl:text><xsl:value-of select="Client/@name" /><xsl:text>
+<xsl:text> </xsl:text><xsl:value-of select="HostInfo/@fqdn" /><xsl:text>
</xsl:text>
</xsl:if>
</xsl:for-each><xsl:text>
@@ -67,9 +67,9 @@ MODIFIED:
<xsl:if test="count($stalenodes[count(.|$pingablenodes)= count($pingablenodes)]) > 0">
STALE:
<xsl:for-each select="Node">
-<xsl:sort select="Client/@name"/>
-<xsl:if test="count(Statistics/Stale)-count(Client[@pingable='N']) > 0">
-<xsl:text> </xsl:text><xsl:value-of select="Client/@name" /><xsl:text>
+<xsl:sort select="HostInfo/@fqdn"/>
+<xsl:if test="count(Statistics/Stale)-count(HostInfo[@pingable='N']) > 0">
+<xsl:text> </xsl:text><xsl:value-of select="HostInfo/@fqdn" /><xsl:text>
</xsl:text>
</xsl:if>
</xsl:for-each><xsl:text>
@@ -80,9 +80,9 @@ STALE:
<xsl:if test="count($unpingablenodes) > 0">
UNPINGABLE:
<xsl:for-each select="Node">
-<xsl:sort select="Client/@name"/>
-<xsl:if test="count(Client[@pingable='N']) > 0">
-<xsl:text> </xsl:text><xsl:value-of select="Client/@name" /><xsl:text>
+<xsl:sort select="HostInfo/@fqdn"/>
+<xsl:if test="count(HostInfo[@pingable='N']) > 0">
+<xsl:text> </xsl:text><xsl:value-of select="HostInfo/@fqdn" /><xsl:text>
</xsl:text>
</xsl:if>
</xsl:for-each><xsl:text>
diff --git a/reports/xsl-transforms/timing-summary-www.xsl b/reports/xsl-transforms/timing-summary-www.xsl
index 2b8b94699..838995243 100644
--- a/reports/xsl-transforms/timing-summary-www.xsl
+++ b/reports/xsl-transforms/timing-summary-www.xsl
@@ -36,7 +36,7 @@
<th class="sortable">Total</th>
</tr>
<xsl:apply-templates select="Node">
- <xsl:sort select="Client/@name" order="ascending"/>
+ <xsl:sort select="HostInfo/@fqdn" order="ascending"/>
<xsl:sort select="@name"/>
</xsl:apply-templates>
</table>
@@ -54,7 +54,7 @@
<xsl:template match="Node">
<xsl:if test="count(Statistics/OpStamps) > 0">
<tr>
- <td class="sortable"><xsl:value-of select="Client/@name" /></td><!--node name-->
+ <td class="sortable"><xsl:value-of select="HostInfo/@fqdn" /></td><!--node name-->
<td class="sortable"><xsl:value-of select="format-number(number(Statistics/OpStamps/@config_parse - Statistics/OpStamps/@config_download),'#.##')"/></td><!--parse-->
<td class="sortable"><xsl:value-of select="format-number(number(Statistics/OpStamps/@probe_upload - Statistics/OpStamps/@start),'#.##')"/></td><!--probe download-->
<td class="sortable"><xsl:value-of select="format-number(number(Statistics/OpStamps/@inventory - Statistics/OpStamps/@initialization),'#.##')"/></td><!--inventory-->