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