Skip Navigation LinksHome Page > Forums > SpiraTest Forums > SpiraTest Issues & Questi... > Help with Custom Reports ...
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
<xsl:template match="/TestSetData">
<table class="DataGrid" style="width:100%">
<tr>
<th>Test Set #</th>
<th>Name</th>
<th>Description</th>
<th>Status</th>
<th>Release</th>
<th>Creator</th>
<th>Owner</th>
<th># Passed</th>
<th># Failed</th>
<th># Caution</th>
<th># Blocked</th>
<th># Not Run</th>
<th>% Passed</th>
<th>% Failed</th>
<xsl:for-each select="TestSet[1]/CustomProperties/CustomProperty">
<th>
<xsl:value-of select="Alias"/>
</th>
</xsl:for-each>
</tr>
<xsl:for-each select="TestSet">
<td>
TX<xsl:value-of select="TestSetId"/>
</td>
<xsl:attribute name="style">
padding-left: <xsl:value-of select="string-length(IndentLevel)*2"/>px;
</xsl:attribute>
<xsl:if test="FolderYn='Y'">
<b>
<xsl:value-of select="Name"/>
</b>
</xsl:if>
<xsl:if test="FolderYn='N'">
<xsl:value-of select="Description" disable-output-escaping="yes"/>
<xsl:value-of select="TestSetStatusName"/>
<xsl:value-of select="ReleaseVersionNumber"/>
<xsl:value-of select="CreatorName"/>
<xsl:value-of select="OwnerName"/>
<xsl:value-of select="CountPassed"/>
<xsl:value-of select="CountFailed"/>
<xsl:value-of select="CountCaution"/>
<xsl:value-of select="CountBlocked"/>
<xsl:value-of select="CountNotRun"/>
<xsl:value-of select="FolderCountPassed div (FolderCountPassed + FolderCountFailed + FolderCountCaution + FolderCountNotRun + FolderCountBlocked) * 100" />%
<xsl:value-of select="FolderCountFailed div (FolderCountPassed + FolderCountFailed + FolderCountCaution + FolderCountNotRun + FolderCountBlocked) * 100" />%
<xsl:for-each select="CustomProperties/CustomProperty">
<xsl:value-of select="Value"/>
</table>
</xsl:template>
</xsl:stylesheet>
And if you have any questions, please email or call us at +1 (202) 558-6885