Fix the build.
[castle.git] / Samples / MonoRail / MRCCnetDashboard / Dashboard.Web / xsl / SimianReport.xsl
blobf44417ef37e6d72735c74777369992ff09f5ab53
1 <?xml version="1.0"?>
2 <xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns="http://www.w3.org/TR/xhtml1/strict">
5 <xsl:output method="html"/>
7 <xsl:variable name="simian.root" select="//simian"/>
8 <xsl:variable name="simian.version" select="$simian.root/@version" />
10 <xsl:template match="/">
12 <div id="simian-report">
13 <table class="section-table" cellSpacing="0" cellPadding="2" width="98%" border="0">
14 <tr>
15 <td class="sectionheader" colSpan="4">Simian <xsl:value-of select="$simian.version" /> Report</td>
16 </tr>
17 <xsl:apply-templates select="$simian.root//check"/>
18 </table>
19 </div>
20 </xsl:template>
22 <xsl:template match="check">
23 <tr>
24 <td><b><xsl:text>Configuration</xsl:text></b></td>
25 </tr>
26 <xsl:for-each select="./@*" >
27 <tr>
28 <td class="section-data">
29 <xsl:value-of select="name()"/>
30 </td>
31 <td class="section-data">
32 <xsl:value-of select="."/>
33 </td>
34 <td/>
35 <td/>
36 </tr>
37 </xsl:for-each>
38 <tr>
39 <td><b><xsl:text>Results</xsl:text></b></td>
40 </tr>
41 <xsl:apply-templates select="./set"/>
42 <tr>
43 <td><b><xsl:text>Summary</xsl:text></b></td>
44 </tr>
45 <xsl:apply-templates select="./summary"/>
46 </xsl:template>
48 <xsl:template match="set">
49 <xsl:for-each select="./@*" >
50 <tr>
51 <td class="section-data">
52 <xsl:value-of select="name()"/>
53 </td>
54 <td class="section-data">
55 <xsl:value-of select="."/>
56 </td>
57 <td/>
58 <td/>
59 </tr>
60 </xsl:for-each>
61 <xsl:for-each select="./block" >
62 <tr>
63 <td class="section-data">
64 <xsl:value-of select="./@sourceFile"/>
65 </td>
66 <td class="section-data">
67 <xsl:value-of select="./@startLineNumber"/>
68 </td>
69 <td class="section-data">
70 <xsl:value-of select="./@endLineNumber"/>
71 </td>
72 <td/>
73 </tr>
74 </xsl:for-each>
75 <tr>
76 <td colspan="4">
77 <hr size="1" width="100%" color="#888888"/>
78 </td>
79 </tr>
80 </xsl:template>
82 <xsl:template match="summary">
83 <xsl:for-each select="./@*" >
84 <tr>
85 <td class="section-data">
86 <xsl:value-of select="name()"/>
87 </td>
88 <td class="section-data">
89 <xsl:value-of select="."/>
90 </td>
91 <td/>
92 <td/>
93 </tr>
94 </xsl:for-each>
95 </xsl:template>
97 </xsl:stylesheet>