set debug information for be_Call
[libfirm] / ir / be / test / makehtml.xslt
1 <?xml version="1.0"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3         <xsl:output method="html" indent="yes"
4               doctype-public="-//W3C//DTD HTML 4.01//EN"
5                     doctype-system="http://www.w3.org/TR/html4/strict.dtd"/>
6
7         <xsl:template name="resultcell" match="result/*">
8                 <xsl:element name="div">
9                         <xsl:if test="contains(text(), 'ok')">
10                                 <xsl:attribute name="style">background-color: green; color: white;</xsl:attribute>
11                         </xsl:if>
12                         <xsl:if test="contains(text(), 'failed')">
13                                 <xsl:attribute name="style">background-color: red; color: white;</xsl:attribute>
14                         </xsl:if>
15                         <xsl:value-of select="text()"/>
16                 </xsl:element>
17         </xsl:template>
18
19         <xsl:template match="/">
20                 <html>
21                         <head>
22                                 <title>Results</title>
23                         </head>
24                         <body>
25                                 <table>
26                                         <tr>
27                                                 <th>Name</th>
28                                                 <th>Compile</th>
29                                                 <th>Link</th>
30                                                 <th>GCC Compile</th>
31                                                 <th>GCC Run</th>
32                                                 <th>Firm Run</th>
33                                                 <th>Results</th>
34                                         </tr>
35                                         <xsl:for-each select="/results/result">
36                                                 <tr>
37                                                         <td>
38                                                                 <xsl:element name="a">
39                                                                         <xsl:attribute name="href">buildresult_<xsl:value-of select="@name"/>.txt</xsl:attribute>
40                                                                         <xsl:value-of select="@name"/>
41                                                                 </xsl:element>
42                                                         </td>
43                                                         <td><xsl:apply-templates select="compile"/></td>
44                                                         <td><xsl:apply-templates select="link"/></td>
45                                                         <td><xsl:apply-templates select="gcc_compile"/></td>
46                                                         <td><xsl:apply-templates select="gcc_run"/></td>
47                                                         <td><xsl:apply-templates select="firm_run"/></td>
48                                                         <td><xsl:apply-templates select="diff"/></td>
49                                                 </tr>
50                                         </xsl:for-each>
51                                 </table>
52                         </body>
53                 </html>
54         </xsl:template>
55 </xsl:stylesheet>