1602e473dSmrg<?xml version="1.0" encoding="UTF-8"?> 2602e473dSmrg 3602e473dSmrg<xsl:stylesheet 4602e473dSmrg version="1.0" 5602e473dSmrg xmlns:check="http://check.sourceforge.net/ns" 6602e473dSmrg xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 7602e473dSmrg xmlns="http://www.w3.org/TR/REC-html40"> 8602e473dSmrg 9602e473dSmrg<xsl:output method="html"/> 10602e473dSmrg 11602e473dSmrg<xsl:template match="/"> 12602e473dSmrg<html> 13602e473dSmrg <head> 14602e473dSmrg <title>Test Suite Results</title> 15602e473dSmrg </head> 16602e473dSmrg 17602e473dSmrg <body> 18602e473dSmrg <xsl:apply-templates/> 19602e473dSmrg </body> 20602e473dSmrg</html> 21602e473dSmrg</xsl:template> 22602e473dSmrg 23602e473dSmrg<xsl:template match="datetime"> 24602e473dSmrg <xsl:apply-templates/> 25602e473dSmrg</xsl:template> 26602e473dSmrg 27602e473dSmrg<xsl:template match="duration"> 28602e473dSmrg <xsl:apply-templates/> 29602e473dSmrg</xsl:template> 30602e473dSmrg 31602e473dSmrg<xsl:template match="check:suite"> 32602e473dSmrg <xsl:apply-templates select="check:title"/> 33602e473dSmrg <center> 34602e473dSmrg <table width="80%" border="1"> 35602e473dSmrg <thead> 36602e473dSmrg <tr> 37602e473dSmrg <td>Test Path</td> 38602e473dSmrg <td>Test Function Location</td> 39602e473dSmrg <td>C Identifier</td> 40602e473dSmrg <td>Test Case</td> 41602e473dSmrg <td>Result</td> 42602e473dSmrg </tr> 43602e473dSmrg </thead> 44602e473dSmrg <tbody> 45602e473dSmrg <xsl:apply-templates select="check:test"/> 46602e473dSmrg </tbody> 47602e473dSmrg </table> 48602e473dSmrg </center> 49602e473dSmrg</xsl:template> 50602e473dSmrg 51602e473dSmrg<xsl:template match="check:testsuites"> 52602e473dSmrg <xsl:apply-templates select="check:suite"/> 53602e473dSmrg <h3>Unit Test Statistics</h3> 54602e473dSmrg <ul> 55602e473dSmrg <li>date/time: <xsl:apply-templates select="check:datetime"/></li> 56602e473dSmrg <li>duration: <xsl:apply-templates select="check:duration"/></li> 57602e473dSmrg </ul> 58602e473dSmrg <hr></hr> 59602e473dSmrg</xsl:template> 60602e473dSmrg 61602e473dSmrg<xsl:template match="check:title"> 62602e473dSmrg <h2>Test Suite: <xsl:apply-templates/></h2> 63602e473dSmrg</xsl:template> 64602e473dSmrg 65602e473dSmrg<xsl:template match="check:test[@result='success']"> 66602e473dSmrg <tr bgcolor="lime"> 67602e473dSmrg <xsl:apply-templates/> 68602e473dSmrg </tr> 69602e473dSmrg</xsl:template> 70602e473dSmrg 71602e473dSmrg<xsl:template match="check:test[@result='failure']"> 72602e473dSmrg <tr bgcolor="red"> 73602e473dSmrg <xsl:apply-templates/> 74602e473dSmrg </tr> 75602e473dSmrg</xsl:template> 76602e473dSmrg 77602e473dSmrg<xsl:template match="check:test[@result='error']"> 78602e473dSmrg <tr bgcolor="yellow"> 79602e473dSmrg <xsl:apply-templates/> 80602e473dSmrg </tr> 81602e473dSmrg</xsl:template> 82602e473dSmrg 83602e473dSmrg<xsl:template match="check:path"> 84602e473dSmrg <td><xsl:apply-templates/></td> 85602e473dSmrg</xsl:template> 86602e473dSmrg 87602e473dSmrg<xsl:template match="check:fn"> 88602e473dSmrg <td><xsl:apply-templates/></td> 89602e473dSmrg</xsl:template> 90602e473dSmrg 91602e473dSmrg<xsl:template match="check:id"> 92602e473dSmrg <td><xsl:apply-templates/></td> 93602e473dSmrg</xsl:template> 94602e473dSmrg 95602e473dSmrg<xsl:template match="check:description"> 96602e473dSmrg <td><xsl:apply-templates/></td> 97602e473dSmrg</xsl:template> 98602e473dSmrg 99602e473dSmrg<xsl:template match="check:message"> 100602e473dSmrg <td><xsl:apply-templates/></td> 101602e473dSmrg</xsl:template> 102602e473dSmrg 103602e473dSmrg</xsl:stylesheet> 104602e473dSmrg 105