/openshift/adei

To get this branch, use:
bzr branch http://darksoft.org/webbzr/openshift/adei

« back to all changes in this revision

Viewing changes to xslt/alarms.xsl

  • Committer: Suren A. Chilingaryan
  • Date: 2008-12-06 01:38:28 UTC
  • Revision ID: csa@dside.dyndns.org-20081206013828-lm3jqpc4fizd6cn7
XML+XSLT modules support, Alarms support in frontend (mozilla only)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
3
 <xsl:output method="html" version="1.0" encoding="utf-8" omit-xml-declaration="yes"/>
 
4
 <xsl:template match="Value">
 
5
    <tr>
 
6
        <td><xsl:value-of select="@severity"/></td>
 
7
        <td><xsl:value-of select="@name"/></td>
 
8
        <td><xsl:value-of select="@in"/></td>
 
9
        <td><xsl:value-of select="@out"/></td>
 
10
        <td><xsl:value-of select="@count"/></td>
 
11
        <td><xsl:value-of select="@description"/></td>
 
12
    </tr>
 
13
 </xsl:template>
 
14
 
 
15
 <xsl:template match="/result">
 
16
  <div>
 
17
    <xsl:if test="@title">
 
18
        <h1>List of alarms for: <xsl:value-of select="@title"/></h1>
 
19
    </xsl:if>
 
20
    
 
21
    <xsl:if test="//Error">
 
22
        <span class="error"><xsl:value-of select="//Error"/></span>
 
23
    </xsl:if>
 
24
    
 
25
    <xsl:if test="not(//Error)">
 
26
      <table>
 
27
        <tr>
 
28
            <th>Severity</th>
 
29
            <th>Alarm</th>
 
30
            <th>First Seen</th>
 
31
            <th>Last Seen</th>
 
32
            <th>Count</th>
 
33
            <th>Description</th>
 
34
        </tr>
 
35
        <xsl:apply-templates select="Value"/>
 
36
     </table>
 
37
    </xsl:if>
 
38
  </div>
 
39
 </xsl:template>
 
40
</xsl:stylesheet>