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