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">
15 <td class=
"sectionheader" colSpan=
"4">Simian
<xsl:value-of select=
"$simian.version" /> Report
</td>
17 <xsl:apply-templates select=
"$simian.root//check"/>
22 <xsl:template match=
"check">
24 <td><b><xsl:text>Configuration
</xsl:text></b></td>
26 <xsl:for-each select=
"./@*" >
28 <td class=
"section-data">
29 <xsl:value-of select=
"name()"/>
31 <td class=
"section-data">
32 <xsl:value-of select=
"."/>
39 <td><b><xsl:text>Results
</xsl:text></b></td>
41 <xsl:apply-templates select=
"./set"/>
43 <td><b><xsl:text>Summary
</xsl:text></b></td>
45 <xsl:apply-templates select=
"./summary"/>
48 <xsl:template match=
"set">
49 <xsl:for-each select=
"./@*" >
51 <td class=
"section-data">
52 <xsl:value-of select=
"name()"/>
54 <td class=
"section-data">
55 <xsl:value-of select=
"."/>
61 <xsl:for-each select=
"./block" >
63 <td class=
"section-data">
64 <xsl:value-of select=
"./@sourceFile"/>
66 <td class=
"section-data">
67 <xsl:value-of select=
"./@startLineNumber"/>
69 <td class=
"section-data">
70 <xsl:value-of select=
"./@endLineNumber"/>
77 <hr size=
"1" width=
"100%" color=
"#888888"/>
82 <xsl:template match=
"summary">
83 <xsl:for-each select=
"./@*" >
85 <td class=
"section-data">
86 <xsl:value-of select=
"name()"/>
88 <td class=
"section-data">
89 <xsl:value-of select=
"."/>