common/tools/brag/brag.xsl
changeset 606 7441b114b8c8
parent 569 5af7cc0d44a1
child 651 bb57a09ece7a
equal deleted inserted replaced
605:2907b286c72a 606:7441b114b8c8
    16 	<xsl:variable name="majorCount" select="count(phase/step/failures[@level='major']/failure)"/>
    16 	<xsl:variable name="majorCount" select="count(phase/step/failures[@level='major']/failure)"/>
    17 	<xsl:variable name="minorCount" select="count(phase/step/failures[@level='minor']/failure)"/>
    17 	<xsl:variable name="minorCount" select="count(phase/step/failures[@level='minor']/failure)"/>
    18 	<xsl:variable name="unknownCount" select="count(phase/step/failures[@level!='critical' and @level!='major' and @level!='minor']/failure)"/>
    18 	<xsl:variable name="unknownCount" select="count(phase/step/failures[@level!='critical' and @level!='major' and @level!='minor']/failure)"/>
    19 
    19 
    20 	<h2>
    20 	<h2>
    21 	Overall BRAG staus: 
    21 	Overall BRAGG staus: 
    22 	<xsl:choose>
    22 	<xsl:choose>
    23 		<xsl:when test="$criticalCount != 0">BLACK</xsl:when>
    23 		<xsl:when test="$criticalCount != 0">BLACK</xsl:when>
    24 		<xsl:when test="$majorCount != 0">RED</xsl:when>
    24 		<xsl:when test="$majorCount != 0">RED</xsl:when>
    25 		<xsl:when test="$minorCount != 0">AMBER</xsl:when>
    25 		<xsl:when test="$minorCount != 0">AMBER</xsl:when>
    26 		<xsl:when test="$unknownCount != 0">GREEN</xsl:when>
    26 		<xsl:when test="$unknownCount != 0">GREEN</xsl:when>