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="/">
7 <title>SAlomeTools log</title>
8 <style type="text/css">
12 border-collapse:collapse;
15 td { vertical-align : center; padding: 15px; }
16 h1 { text-align : center; }
17 .legend { font-weight : bold;
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;
27 .OK2 { color:#00AA00; }
28 .KO2 { color:#FF0000; }
30 <script language="JavaScript"><![CDATA[
32 var element = document.getElementById(id);
34 if ( element.style.display == "none" )
35 element.style.display = "block";
37 element.style.display = "none";
42 <body class="def" bgcolor="aliceblue">
43 <h1><img src="LOGO-SAT.png"/></h1>
46 <xsl:for-each select="SATcommand/Site/@*">
47 <td bgcolor="LightBlue">
48 <th><xsl:value-of select="name(.)"/></th>
53 <xsl:for-each select="SATcommand/Site/@*">
54 <td bgcolor="Beige"><xsl:value-of select="."/></td>
59 <h1>command's internal traces
61 <xsl:attribute name="onclick">javascript:Toggle('log')</xsl:attribute>
62 <xsl:attribute name="title">Click to see the command log</xsl:attribute>
67 <div style="display:block"><xsl:attribute name="id">log</xsl:attribute>
68 <PRE><xsl:value-of select="SATcommand/Log"/></PRE>
73 <xsl:for-each select="SATcommand/Links/link">
75 <td bgcolor="LightBlue">
76 <xsl:value-of select="@launchedCommand"/>
79 <xsl:if test="@passed='0'">
81 <xsl:attribute name="title">Click for more information</xsl:attribute>
82 <xsl:attribute name="class">OK2</xsl:attribute>
83 <xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
84 <xsl:value-of select="@command"/>
87 <xsl:if test="@passed!='0'">
89 <xsl:attribute name="title">Click for more information</xsl:attribute>
90 <xsl:attribute name="class">KO2</xsl:attribute>
91 <xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
92 <xsl:value-of select="@command"/>
103 <xsl:attribute name="title">Click to open in an editor</xsl:attribute>
104 <xsl:attribute name="href"><xsl:value-of select="SATcommand/OutLog"/></xsl:attribute>
105 <xsl:attribute name="download"><xsl:value-of select="SATcommand/OutLog"/></xsl:attribute>
109 <xsl:variable name="txtLog">
110 <xsl:value-of select="SATcommand/OutLog"/>
112 <iframe src="{$txtLog}" frameborder="0" class="center" width="100%" height="3000" scrolling="yes"></iframe>
113 <!--<iframe src="{$txtLog}" frameborder="0" class="center" width="100%" height="1500000" scrolling="no"></iframe>-->