Salome HOME
loggingSimple.py super for logging 0.5.0.5 python 2.6
[tools/sat.git] / src / xsl / hat.xsl
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" />
4 <xsl:template match="/">
5         
6 <head>  
7     <title>SAlomeTools log</title>
8     <style type="text/css">
9         table       { 
10                       margin:1px;
11                       padding:1px;
12                       border-collapse:collapse;
13                       empty-cells : show;
14                     }
15         td          { vertical-align : center;}
16         h1          { text-align : center; }
17         .legend     { font-weight : bold;
18                       text-align : center;
19                     } 
20         .def        { font-family: Arial, Verdana, "Times New Roman", Times, serif;}
21         hr.note     { color: #BFBFBF; }
22         .note       { text-align : right; font-style: italic; font-size: small; }
23         div.release { -moz-column-count: 2;
24                       overflow: auto;
25                       max-height: 250px;
26                     }
27     </style>
28 </head>
29         <body class="def" bgcolor="aliceblue">
30                 <h1><img src="LOGO-SAT.png"/></h1>
31                         <xsl:choose>
32                           <xsl:when test="not(LOGlist/@application='None')">
33                                   <h1>Logs of application <xsl:value-of select="LOGlist/@application"/></h1>
34                           </xsl:when>
35                           <xsl:otherwise>
36                                   <h1>
37                                           General Logs
38                                   </h1>
39                           </xsl:otherwise>
40                         </xsl:choose>
41                         <table border="1">
42                                 <tr>
43                                 <td width="100px" bgcolor="Beige">Command</td><td width="100px" bgcolor="Beige">date</td><td width="100px" bgcolor="Beige">time</td><td bgcolor="Beige">application</td><td bgcolor="Beige">full command</td>
44                                 </tr>
45                                 <xsl:for-each select="LOGlist/LogCommand">
46                                         <xsl:sort select="." order="descending" />
47                                         <tr bgcolor="aliceblue" width="2">
48                                                 <td>
49                                                         <a title="log">
50                                                                 <xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
51                                                                 <xsl:value-of select="@cmd"/>
52                                                         </a>
53                                                 </td>
54                                                 <td><xsl:value-of select="@date"/></td>
55                                                 <td><xsl:value-of select="@hour"/></td>
56                                                 <td><xsl:value-of select="@application"/></td>
57                                                 <td><xsl:value-of select="@full_command"/></td>
58                                         </tr>
59                                 </xsl:for-each>
60                         </table>
61         </body>
62 </xsl:template>
63 </xsl:stylesheet>