]> SALOME platform Git repositories - tools/sat.git/blob - src/xsl/command.xsl
Salome HOME
Add the job command
[tools/sat.git] / src / xsl / command.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" /> <!-- encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>-->
4 <xsl:template match="/">
5
6 <head>  
7     <title>SAlomeTools log</title>
8     <style type="text/css">
9         table       { width : 100%;
10                       margin:1px;
11                       padding:1px;
12                       border-collapse:collapse;
13                       empty-cells : show;
14                     }
15         td          { vertical-align : center; padding: 15px; }
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         .OK2        { color:#00AA00; }
28         .KO2        { color:#FF0000; }
29     </style>
30        
31 </head>
32         <body class="def" bgcolor="aliceblue">
33                 <h1><img src="LOGO-SAT.png"/></h1>
34                 <table border="1">
35                         <tr>
36                                 <xsl:for-each select="SATcommand/Site/@*">
37                                         <td bgcolor="LightBlue">
38                                                 <th><xsl:value-of select="name(.)"/></th>
39                                         </td>
40                                 </xsl:for-each>
41                         </tr>
42                         <tr>
43                                 <xsl:for-each select="SATcommand/Site/@*">      
44                                         <td bgcolor="Beige"><xsl:value-of select="."/></td>
45                                 </xsl:for-each>
46                         </tr>
47                 </table>
48                 
49                 <h1>command's internal traces</h1>
50                 <PRE><xsl:value-of select="SATcommand/Log"/></PRE>
51                 
52                 <h1>Links</h1>
53                 <table border="1">
54                         <xsl:for-each select="SATcommand/Links/link">
55                                 <tr>
56                                         <td bgcolor="LightBlue">
57                                                 <xsl:value-of select="@launchedCommand"/>
58                                         </td>
59                                         <td bgcolor="Beige">
60                                                 <xsl:if test="@passed='0'">
61                                                         <a>
62                                                                 <xsl:attribute name="title">Click for more information</xsl:attribute>
63                                                                 <xsl:attribute name="class">OK2</xsl:attribute>
64                                                                 <xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
65                                                                 <xsl:value-of select="@command"/>
66                                                         </a>
67                                                 </xsl:if>
68                                                 <xsl:if test="@passed='1'">
69                                                         <a>
70                                                                 <xsl:attribute name="title">Click for more information</xsl:attribute>
71                                                                 <xsl:attribute name="class">KO2</xsl:attribute>
72                                                                 <xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
73                                                                 <xsl:value-of select="@command"/>
74                                                         </a>
75                                                 </xsl:if>
76                                         </td>
77                                 </tr>
78                         </xsl:for-each>
79                         
80                 </table>
81                 
82                 <h1>output 
83                 <a target="_blank">
84                         <xsl:attribute name="title">Click to open in an editor</xsl:attribute>
85                         <xsl:attribute name="href"><xsl:value-of select="SATcommand/OutLog"/></xsl:attribute>
86                         <xsl:attribute name="download"><xsl:value-of select="SATcommand/OutLog"/></xsl:attribute>
87                         log
88                 </a>
89                 </h1>
90                 <xsl:variable name="txtLog">
91                         <xsl:value-of select="SATcommand/OutLog"/>
92                 </xsl:variable>
93                 <iframe src="{$txtLog}" frameborder="0" class="center" width="100%" height="1500000" scrolling="no"></iframe>
94         </body>
95 </xsl:template>
96
97 </xsl:stylesheet>