Salome HOME
spns #34338: post build script is not embedded in archive
[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" /> 
4 <!-- encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>-->
5 <xsl:template match="/">
6
7 <head>  
8   <title>SAlomeTools log</title>
9   <style type="text/css">
10       table       { width : 100%;
11                     margin:1px;
12                     padding:1px;
13                     border-collapse:collapse;
14                     empty-cells : show;
15                   }
16       td          { vertical-align : center; padding: 10px; }
17       h1          { text-align : center; font-style: italic; font-size: 20px; }
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       .OK2        { color:#00AA00; }
24       .KO2        { color:#FF0000; }
25   </style>
26   <script language="JavaScript"><![CDATA[
27       function Toggle(id) {
28         var element = document.getElementById(id);
29
30         if ( element.style.display == "none" )
31             element.style.display = "block";
32         else 
33             element.style.display = "none";
34        }
35 ]]>
36   </script>
37 </head>
38
39 <body class="def" bgcolor="aliceblue">
40   <h1><img src="LOGO-SAT.png"/></h1>
41   <table border="1">
42     <tr>
43       <xsl:for-each select="SATcommand/Site/@*">
44         <td bgcolor="LightBlue">
45           <b><xsl:value-of select="name(.)"/></b>
46         </td>
47       </xsl:for-each>
48     </tr>
49     <tr>
50       <xsl:for-each select="SATcommand/Site/@*">  
51         <td bgcolor="Beige"><xsl:value-of select="."/></td>
52       </xsl:for-each>
53     </tr>
54   </table>
55   
56   <h1>command's internal traces
57   <a href="#">
58         <xsl:attribute name="onclick">javascript:Toggle('log')</xsl:attribute>
59         <xsl:attribute name="title">Click to expand or collapse the command log</xsl:attribute>
60         expand / collapse
61   </a>
62   </h1>
63   
64   <div style="display:none"><xsl:attribute name="id">log</xsl:attribute>
65       <PRE><xsl:value-of select="SATcommand/Log"/></PRE>
66   </div>
67   
68   <h1>Links</h1>
69   <table border="1">
70     <xsl:for-each select="SATcommand/Links/link">
71       <tr>
72         <td bgcolor="Beige">
73           <xsl:if test="@passed='0'">
74             <a>
75               <xsl:attribute name="title">Click for more information</xsl:attribute>
76               <xsl:attribute name="class">OK2</xsl:attribute>
77               <xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
78               <xsl:value-of select="@command"/>
79             </a>
80           </xsl:if>
81           <xsl:if test="@passed!='0'">
82             <a>
83               <xsl:attribute name="title">Click for more information</xsl:attribute>
84               <xsl:attribute name="class">KO2</xsl:attribute>
85               <xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
86               <xsl:value-of select="@command"/>
87             </a>
88           </xsl:if>
89         </td>
90         <td bgcolor="LightBlue">
91           <xsl:value-of select="@launchedCommand"/>
92         </td>
93       </tr>
94     </xsl:for-each>
95     
96   </table>
97   
98   <h1>output 
99   <a target="_blank">
100     <xsl:attribute name="title">Click to open in an editor</xsl:attribute>
101     <xsl:attribute name="href"><xsl:value-of select="SATcommand/OutLog"/></xsl:attribute>
102     <xsl:attribute name="download"><xsl:value-of select="SATcommand/OutLog"/></xsl:attribute>
103     log
104   </a>
105   </h1>
106   <xsl:variable name="txtLog">
107     <xsl:value-of select="SATcommand/OutLog"/>
108   </xsl:variable>
109   <iframe src="{$txtLog}" frameborder="0" class="center" width="98%" height="600" scrolling="yes"></iframe>
110   <!--<iframe src="{$txtLog}" frameborder="0" class="center" width="98%" height="600" scrolling="yes"></iframe>-->
111 </body>
112 </xsl:template>
113
114 </xsl:stylesheet>