summaryrefslogtreecommitdiff
path: root/tools/regression/xsl_reports/xsl/produce_expected_results.xsl
blob: a47a3acfedd21b2769c49edaa34a1c775894c978 (plain)
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
<?xml version="1.0" encoding="utf-8"?>
<!--

Copyright MetaCommunications, Inc. 2003-2004.

Distributed under the Boost Software License, Version 1.0. (See
accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)

-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">

  <xsl:output method="xml" encoding="utf-8"/>

  <xsl:template match="/">
    <root>
      <expected-failures>
        <xsl:apply-templates select="*/test-log"/>
      </expected-failures>
    </root>
  </xsl:template>
  
  <xsl:template match="test-log">
    <xsl:if test="meta:is_test_log_a_test_case(.)">
        <test-result library="{@library}" test-name="{@test-name}" toolset="{@toolset}" result="{@result}" />
    </xsl:if>
  </xsl:template>

</xsl:stylesheet>