/usr/share/doc/libahven6-dev/examples/docbook-testreport/xsl/transform.xsl is in libahven6-dev 2.6-1.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output type="xml"/>
<xsl:template match="/">
<xsl:apply-templates select="testsuite"/>
</xsl:template>
<xsl:template match="testsuite">
<sect1>
<title>
<xsl:value-of select="@name"/>
</title>
<table frame='all'>
<title><xsl:value-of select="@name"/> summary</title>
<tgroup cols='4'>
<thead>
<row>
<entry>Errors</entry>
<entry>Failures</entry>
<entry>Tests</entry>
<entry>Time</entry>
</row>
</thead>
<tbody>
<row>
<entry><xsl:value-of select="@errors"/></entry>
<entry><xsl:value-of select="@failures"/></entry>
<entry><xsl:value-of select="@tests"/></entry>
<entry><xsl:value-of select="@time"/></entry>
</row>
</tbody>
</tgroup>
</table>
<xsl:apply-templates select="testcase"/>
</sect1>
</xsl:template>
<xsl:template match="testcase">
<sect2>
<title><xsl:value-of select="@name"/></title>
<informaltable frame='all'>
<tgroup cols='2'>
<thead>
<row>
<entry>Execution Time</entry>
<entry>Test Status</entry>
</row>
</thead>
<tbody>
<row>
<entry><xsl:value-of select="@time"/></entry>
<entry>
<xsl:choose>
<xsl:when test="failure">
<xsl:apply-templates select="failure"/>
</xsl:when>
<xsl:otherwise>
PASSED
</xsl:otherwise>
</xsl:choose>
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
<xsl:if test="string(system-out)">
<formalpara>
<title>Output</title>
<programlisting>
<xsl:value-of select="system-out"/>
</programlisting>
</formalpara>
</xsl:if>
</sect2>
</xsl:template>
<xsl:template match="failure">
FAILURE (<xsl:value-of select="@type"/>)
</xsl:template>
</xsl:stylesheet>
|