common/tools/brag/bragForDiamonds.xsl
changeset 886 fc600bbaa15c
parent 587 97d29037659e
child 902 6df3172848e9
equal deleted inserted replaced
885:00ec68ebd201 886:fc600bbaa15c
     1 <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     1 <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     2 
     2 
     3 <!-- Main template -->
     3 <!-- Main template -->
     4 <xsl:template match="/buildStatus">
     4 <xsl:template match="/buildStatus">
     5 	<xsl:variable name="criticalCount" select="count(phase/step/failures[@level='critical']/failure)"/>
     5 	<xsl:variable name="criticalCount" select="count(phase/step/failures[@level='critical']/failure)+sum(phase/step/failures[@level='critical']/@count)"/>
     6 	<xsl:variable name="majorCount" select="count(phase/step/failures[@level='major']/failure)"/>
     6 	<xsl:variable name="majorCount" select="count(phase/step/failures[@level='major']/failure)+sum(phase/step/failures[@level='major']/@count)"/>
     7 	<xsl:variable name="minorCount" select="count(phase/step/failures[@level='minor']/failure)"/>
     7 	<xsl:variable name="minorCount" select="count(phase/step/failures[@level='minor']/failure)+sum(phase/step/failures[@level='minor']/@count)"/>
     8 	<xsl:variable name="unknownCount" select="count(phase/step/failures[@level!='critical' and @level!='major' and @level!='minor']/failure)"/>
     8 	<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)"/>
     9 
     9 
    10 	<diamonds-build>
    10 	<diamonds-build>
    11 	<schema>13</schema>
    11 	<schema>13</schema>
    12 	<build>
    12 	<build>
    13 	<status>
    13 	<status>