common/tools/brag/brag.xsl
changeset 963 daf51fe459d8
parent 902 6df3172848e9
child 1038 f2d9b33e5713
equal deleted inserted replaced
962:a5e5d79cd09a 963:daf51fe459d8
    19 	<xsl:variable name="unknownCount" select="count(phase/step/failures[@level!='critical' and @level!='major' and @level!='minor']/failure)+sum(phase/step/failures[@level!='critical' and @level!='major' and @level!='minor']/@count)"/>
    19 	<xsl:variable name="unknownCount" select="count(phase/step/failures[@level!='critical' and @level!='major' and @level!='minor']/failure)+sum(phase/step/failures[@level!='critical' and @level!='major' and @level!='minor']/@count)"/>
    20 
    20 
    21 	<h2>
    21 	<h2>
    22 	Overall BRAGG staus: 
    22 	Overall BRAGG staus: 
    23 	<xsl:choose>
    23 	<xsl:choose>
    24 		<xsl:when test="$criticalCount != 0">BLACK</xsl:when>
    24 		<xsl:when test="$criticalCount != 0">RED</xsl:when>
    25 		<xsl:when test="$majorCount != 0">RED</xsl:when>
    25 		<xsl:when test="$majorCount != 0">AMBER</xsl:when>
    26 		<xsl:when test="$unknownCount != 0">RED</xsl:when>
    26 		<xsl:when test="$unknownCount != 0">AMBER</xsl:when>
    27 		<xsl:when test="$minorCount != 0">AMBER</xsl:when>
       
    28 		<xsl:otherwise>GREEN</xsl:otherwise>
    27 		<xsl:otherwise>GREEN</xsl:otherwise>
    29 	</xsl:choose>
    28 	</xsl:choose>
    30 	</h2>
    29 	</h2>
    31 
    30 
    32 	<h2>Breakdown by severity</h2>
    31 	<h2>Breakdown by severity</h2>