common/tools/brag/brag.xsl
changeset 761 3901909be1ab
parent 754 79bd241158d3
child 882 6ae47dc5d707
equal deleted inserted replaced
760:dca795714caa 761:3901909be1ab
   106 	<xsl:for-each select="phase[count(step/failures/failure/@package) != count(step/failures/failure)]">
   106 	<xsl:for-each select="phase[count(step/failures/failure/@package) != count(step/failures/failure)]">
   107 		<h3>Phase: <xsl:value-of select="@name"/></h3>
   107 		<h3>Phase: <xsl:value-of select="@name"/></h3>
   108 		<xsl:for-each select="step[count(failures/failure/@package) != count(failures/failure)]">
   108 		<xsl:for-each select="step[count(failures/failure/@package) != count(failures/failure)]">
   109 			<h4>Step: <xsl:value-of select="@name"/></h4>
   109 			<h4>Step: <xsl:value-of select="@name"/></h4>
   110 			<xsl:for-each select="failures[count(failure/@package) != count(failure)]">
   110 			<xsl:for-each select="failures[count(failure/@package) != count(failure)]">
   111 				<dl><dt><xsl:value-of select="@level"/></dt><dd>
   111 				<xsl:variable name="severity" select="@level"/>
       
   112 				<dl><dt><xsl:value-of select="@level"/> (<xsl:value-of select="count(/buildStatus/phase/step/failures[@level = $severity]/failure[count(@package) = 0])"/>)</dt><dd>
   112 				<ul>
   113 				<ul>
   113 				<xsl:for-each select="failure[count(@package) = 0]">
   114 				<xsl:for-each select="failure[count(@package) = 0]">
   114 					<li><xsl:value-of select="."/></li>
   115 					<li><xsl:value-of select="effect"/></li>
       
   116 					<xsl:if test="@unreported_causes != '0'">
       
   117 						<br/>(Too much text to show everything; <xsl:value-of select="@unreported_causes"/> lines not shown.)
       
   118 					</xsl:if>
       
   119 					<xsl:for-each select="causes">
       
   120 						<pre><xsl:value-of select="."/></pre>
       
   121 					</xsl:for-each>
   115 				</xsl:for-each>
   122 				</xsl:for-each>
   116 				</ul>
   123 				</ul>
   117 				</dd></dl>
   124 				</dd></dl>
   118 			</xsl:for-each>
   125 			</xsl:for-each>
   119 		</xsl:for-each>
   126 		</xsl:for-each>
   136 					<xsl:value-of select="$severity"/> (<xsl:value-of select="count(/buildStatus/phase/step/failures[@level = $severity]/failure[@package = $package])"/>)
   143 					<xsl:value-of select="$severity"/> (<xsl:value-of select="count(/buildStatus/phase/step/failures[@level = $severity]/failure[@package = $package])"/>)
   137 				</a></dt><dd>
   144 				</a></dt><dd>
   138 				<ul>
   145 				<ul>
   139 				<xsl:for-each select="/buildStatus/phase/step/failures[@level = $severity]/failure[@package = $package]">
   146 				<xsl:for-each select="/buildStatus/phase/step/failures[@level = $severity]/failure[@package = $package]">
   140 					<xsl:sort select="@package"/>
   147 					<xsl:sort select="@package"/>
   141 					<li><xsl:value-of select="@package"/>: <xsl:value-of select="."/></li>
   148 					<li><xsl:value-of select="effect"/></li>
       
   149 					<xsl:if test="@unreported_causes != '0'">
       
   150 						<br/>(Too much text to show everything; <xsl:value-of select="@unreported_causes"/> lines not shown.)
       
   151 					</xsl:if>
       
   152 					<xsl:for-each select="causes">
       
   153 						<pre><xsl:value-of select="."/></pre>
       
   154 					</xsl:for-each>
   142 				</xsl:for-each>
   155 				</xsl:for-each>
   143 				</ul>
   156 				</ul>
   144 				</dd></dl>
   157 				</dd></dl>
   145 			</xsl:if>
   158 			</xsl:if>
   146 		</xsl:for-each>
   159 		</xsl:for-each>