5445N/A<?
xml version="1.0" encoding="UTF-8"?>
5445N/A ! The contents of this file are subject to the terms of the 5445N/A ! Common Development and Distribution License, Version 1.0 only 5445N/A ! (the "License"). You may not use this file except in compliance 5445N/A ! You can obtain a copy of the license at 5445N/A ! See the License for the specific language governing permissions 5445N/A ! and limitations under the License. 5445N/A ! When distributing Covered Code, include this CDDL HEADER in each 5445N/A ! file and include the License file at 5445N/A ! add the following below this CDDL HEADER, with the fields enclosed 5445N/A ! by brackets "[]" replaced with your own identifying information: 5445N/A ! Portions Copyright [yyyy] [name of copyright owner] 6142N/A ! Copyright 2011-2013 ForgeRock AS. 5445N/A<
xsl:
output method="xml" indent="yes" />
5445N/A <
xsl:
variable name="total-tests" select="count($testcase)"/>
5445N/A <
xsl:
variable name="pass-tests" select="count($testcase[@result='pass'])"/>
5445N/A <
xsl:
variable name="inconc-tests" select="count($testcase[@result='unknown'])"/>
6142N/A <
xsl:
variable name="fail-tests" select="count($testcase[@result='fail']) - $kfail-tests"/>
5446N/A <
xsl:
for-
each select="$testcase">
6142N/A <
xsl:
variable name="issue">
5445N/A <
xsl:
variable name="message" select="'no message'"/>
6142N/A <
testcase classname="{ancestor::testgroup[1]/@name}.{ancestor::testsuite[1]/@shortname}" 6142N/A <
xsl:
if test="contains(@result, 'unknown')">
6142N/A <
xsl:
value-
of select="'log inconclusive'"/>
6142N/A <
xsl:
if test="contains(@result, 'fail') and string-length($issue) = 0">
6142N/A <
xsl:
value-
of select="'log fail'"/>
6142N/A <
xsl:
if test="contains(@result, 'fail') and string-length($issue) > 0">
6142N/A <
xsl:
value-
of select="$issue"/>