Files
SyncHome/trunk/workspace/Fibex/NewStylesheet.xsl
2023-03-13 08:36:51 +00:00

37 lines
1.2 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes" encoding="UTF-8"/>
<xsl:template match="/">
<html>
<head>
<title> -= <xsl:value-of select="TESTRESULT/@title"/> =- </title>
</head>
<body>
<xsl:apply-templates />
</body>
</html>
</xsl:template>
<xsl:template match="TESTRESULT">
<h1>Error computation</h1>
<p>
PASSED:
<xsl:value-of select="round(count(//RTABLE/R/C[.='PASSED']) div (count(//RTABLE/R/C[.='PASSED'])+count(//RTABLE/R/C[.='FAILED']))*1000) div 10"/> % ...
<xsl:value-of select="count(//RTABLE/R/C[.='PASSED'])"/>
</p>
<p>
FAILED:
<xsl:value-of select="round(count(//RTABLE/R/C[.='FAILED']) div (count(//RTABLE/R/C[.='PASSED'])+count(//RTABLE/R/C[.='FAILED']))*1000) div 10"/> % ...
<xsl:value-of select="count(//RTABLE/R/C[.='FAILED'])"/>
</p>
<xsl:if test="//TESTRESULT/@execution_time">
<p>
all execution time: <xsl:value-of select="round(sum(//TESTRESULT/@execution_time) div 60 div 60 *100) div 100"/> h
</p>
</xsl:if>
</xsl:template>
</xsl:stylesheet>