]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.core/src/main/resources/org/argeo/slc/core/test/tree/basicReport.xslt
Add license headers
[gpl/argeo-slc.git] / runtime / org.argeo.slc.core / src / main / resources / org / argeo / slc / core / test / tree / basicReport.xslt
1 <?xml version="1.0" encoding="utf-8"?>
2 <xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:slc="http://argeo.org/projects/slc/schemas"
5 exclude-result-prefixes="slc">
6
7 <xsl:output method="html" omit-xml-declaration="yes" />
8 <xsl:param name="confDir" select="unkown_confDir"/>
9
10
11 <xsl:template match="/">
12 <html>
13 <head>
14 <title>Result</title>
15 </head>
16 <body style="font-family: sans-serif">
17 <h1>
18 Result
19 <xsl:value-of select="slc:tree-test-result/@uuid" />
20 </h1>
21 <p>Conf dir: <xsl:value-of select="$confDir"/></p>
22 <xsl:for-each
23 select="slc:tree-test-result/slc:result-parts/slc:result-part">
24 <h2>
25 <xsl:value-of select="@path" />
26 </h2>
27 <table>
28 <xsl:for-each
29 select="slc:part-sub-list/slc:parts/slc:simple-result-part">
30 <tr>
31 <xsl:choose>
32 <xsl:when
33 test="slc:status = 'PASSED' ">
34 <td style="color:green">
35 <xsl:value-of
36 select="slc:message" />
37 </td>
38 </xsl:when>
39 <xsl:otherwise>
40 <td style="color:red">
41 <xsl:value-of
42 select="slc:message" />
43 </td>
44 </xsl:otherwise>
45 </xsl:choose>
46 </tr>
47 </xsl:for-each>
48 </table>
49 </xsl:for-each>
50 </body>
51 </html>
52 </xsl:template>
53 </xsl:stylesheet>