Added statev to sql transform script
[libfirm] / ir / be / test / makehtml.xslt
index 1af6b6f..6c284c0 100644 (file)
                        <xsl:if test="contains(text(), 'failed')">
                                <xsl:attribute name="style">background-color: red; color: white;</xsl:attribute>
                        </xsl:if>
-                       <xsl:value-of select="text()"/>
+
+                       <xsl:choose>
+                               <xsl:when test="name() = 'gcc_run'">
+                                       <xsl:element name="a">
+                                               <xsl:choose>
+                                                       <xsl:when test="contains(text(), 'ok') or contains(text(), 'failed')">
+                                                               <xsl:attribute name="style">color: white;</xsl:attribute>
+                                                       </xsl:when>
+                                                       <xsl:otherwise>
+                                                               <xsl:attribute name="style">color: black;</xsl:attribute>
+                                                       </xsl:otherwise>
+                                               </xsl:choose>
+                                               <xsl:attribute name="href">result_gcc_<xsl:value-of select="../@name"/>.txt</xsl:attribute>
+                                               <xsl:value-of select="text()"/>
+                                       </xsl:element>
+                               </xsl:when>
+                               <xsl:when test="name() = 'firm_run'">
+                                       <xsl:element name="a">
+                                               <xsl:choose>
+                                                       <xsl:when test="contains(text(), 'ok') or contains(text(), 'failed')">
+                                                               <xsl:attribute name="style">color: white;</xsl:attribute>
+                                                       </xsl:when>
+                                                       <xsl:otherwise>
+                                                               <xsl:attribute name="style">color: black;</xsl:attribute>
+                                                       </xsl:otherwise>
+                                               </xsl:choose>
+                                               <xsl:attribute name="href">result_firm_<xsl:value-of select="../@name"/>.txt</xsl:attribute>
+                                               <xsl:value-of select="text()"/>
+                                       </xsl:element>
+                               </xsl:when>
+                               <xsl:when test="name() = 'diff'">
+                                       <xsl:element name="a">
+                                               <xsl:choose>
+                                                       <xsl:when test="contains(text(), 'ok') or contains(text(), 'failed')">
+                                                               <xsl:attribute name="style">color: white;</xsl:attribute>
+                                                       </xsl:when>
+                                                       <xsl:otherwise>
+                                                               <xsl:attribute name="style">color: black;</xsl:attribute>
+                                                       </xsl:otherwise>
+                                               </xsl:choose>
+                                               <xsl:attribute name="href">result_diff_<xsl:value-of select="../@name"/>.txt</xsl:attribute>
+                                               <xsl:value-of select="text()"/>
+                                       </xsl:element>
+                               </xsl:when>
+                               <xsl:otherwise>
+                                       <xsl:value-of select="text()"/>
+                               </xsl:otherwise>
+                       </xsl:choose>
                </xsl:element>
        </xsl:template>