[1c9540]: build / results2report.xsl  Maximize  Restore  History

Download this file

56 lines (48 with data), 1.7 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!--
~ This file is part of the Jikes RVM project (http://jikesrvm.org).
~
~ This file is licensed to You under the Eclipse Public License (EPL);
~ You may not use this file except in compliance with the License. You
~ may obtain a copy of the License at
~
~ http://www.opensource.org/licenses/eclipse-1.0.php
~
~ See the COPYRIGHT.txt file distributed with this work for information
~ regarding copyright ownership.
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="aggregate">
<report version="1.1">
<xsl:copy-of select="results/*[not(name() = 'test-configuration')]"/>
<xsl:apply-templates select="buildresults/build-target"/>
</report>
</xsl:template>
<xsl:template match="build-target">
<xsl:copy>
<xsl:copy-of select="name"/>
<xsl:copy-of select="parameters"/>
<xsl:apply-templates select="build-configuration"/>
</xsl:copy>
</xsl:template>
<xsl:template match="build-configuration">
<xsl:copy>
<xsl:copy-of select="*"/>
<xsl:variable name="config" select="name"/>
<xsl:apply-templates select="/aggregate/results/test-configuration[build-configuration = $config]"/>
</xsl:copy>
</xsl:template>
<xsl:template match="test-configuration">
<xsl:copy>
<xsl:copy-of select="name"/>
<xsl:copy-of select="parameters"/>
<xsl:apply-templates select="group"/>
</xsl:copy>
</xsl:template>
<xsl:template match="group">
<xsl:copy>
<xsl:copy-of select="name"/>
<xsl:copy-of select="test/test-execution[not(result = 'EXCLUDED')]/.."/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks