equal
deleted
inserted
replaced
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> |