Updated XSL to include counts of failures at each severity, and also the new effect/causes distinction, for failures that are not package specific.
authorSimon Howkins <simonh@symbian.org>
Wed, 11 Nov 2009 14:55:58 +0000
changeset 754 79bd241158d3
parent 753 5069de517698
child 755 cdb4af7acafc
Updated XSL to include counts of failures at each severity, and also the new effect/causes distinction, for failures that are not package specific.
common/tools/brag/brag.xsl
--- a/common/tools/brag/brag.xsl	Wed Nov 11 13:22:02 2009 +0000
+++ b/common/tools/brag/brag.xsl	Wed Nov 11 14:55:58 2009 +0000
@@ -108,10 +108,17 @@
 		<xsl:for-each select="step[count(failures/failure/@package) != count(failures/failure)]">
 			<h4>Step: <xsl:value-of select="@name"/></h4>
 			<xsl:for-each select="failures[count(failure/@package) != count(failure)]">
-				<dl><dt><xsl:value-of select="@level"/></dt><dd>
+				<xsl:variable name="severity" select="@level"/>
+				<dl><dt><xsl:value-of select="@level"/> (<xsl:value-of select="count(/buildStatus/phase/step/failures[@level = $severity]/failure[count(@package) = 0])"/>)</dt><dd>
 				<ul>
 				<xsl:for-each select="failure[count(@package) = 0]">
-					<li><xsl:value-of select="."/></li>
+					<li><xsl:value-of select="effect"/></li>
+					<xsl:if test="@unreported_causes != '0'">
+						<br/>(Too much text to show everything; <xsl:value-of select="@unreported_causes"/> lines not shown.)
+					</xsl:if>
+					<xsl:for-each select="causes">
+						<pre><xsl:value-of select="."/></pre>
+					</xsl:for-each>
 				</xsl:for-each>
 				</ul>
 				</dd></dl>