source: other-projects/nightly-tasks/diffcol/trunk/xsl/index.xsl@ 27977

Last change on this file since 27977 was 21711, checked in by oranfry, 12 years ago

bringing across the diffcol project

File size: 1.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3
4
5
6 <!-- specify xhtml output -->
7 <xsl:output method="xml" encoding="utf-8" indent="yes" omit-xml-declaration="yes"/>
8
9 <!-- this is needed so that whitespace nodes
10 in page/*.xml are not seen as text-keys -->
11 <xsl:strip-space elements="*"/>
12
13
14 <xsl:template match="/">
15 <html>
16 <head>
17 <title>index</title>
18 <link href="style/style.css" type="text/css" rel="stylesheet" />
19 </head>
20 <body>
21 <xsl:for-each select="/index/test">
22 <xsl:sort select="position()" data-type="number" order="descending"/>
23 <div>
24 <xsl:attribute name="class">test passed-<xsl:value-of select="@passed"/></xsl:attribute>
25 <b>Test</b>
26 Time: <xsl:value-of select="@time"/>
27 Passed: <xsl:value-of select="@passed"/>
28 Errors: <xsl:value-of select="@errors"/>
29 <a><xsl:attribute name="href">report-<xsl:value-of select="@id"/>.html</xsl:attribute>[summary report]</a>
30 <a><xsl:attribute name="href">report-<xsl:value-of select="@id"/>.xml</xsl:attribute>[summary xml report]</a>
31 <a><xsl:attribute name="href">full-report-<xsl:value-of select="@id"/>.xml</xsl:attribute>[full xml report]</a>
32 </div>
33 </xsl:for-each>
34 </body>
35 </html>
36 </xsl:template>
37
38</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.