finding_count upgrade
This commit is contained in:
parent
8f17b446a6
commit
98936f0a40
@ -460,6 +460,11 @@
|
|||||||
$statusSequence])"
|
$statusSequence])"
|
||||||
/>
|
/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
<xsl:when test="@threatLevel = 'all'">
|
||||||
|
<xsl:for-each-group select="//finding" group-by="@threatLevel">
|
||||||
|
<xsl:if test="position() = last()"><xsl:text> and </xsl:text></xsl:if>
|
||||||
|
<xsl:value-of select="count(current-group())"/><xsl:text> </xsl:text><xsl:value-of select="current-grouping-key()"/><xsl:if test="not(position() = last())"><xsl:text>, </xsl:text></xsl:if> </xsl:for-each-group>
|
||||||
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:value-of select="count(//finding[@threatLevel = $threatLevel])"/>
|
<xsl:value-of select="count(//finding[@threatLevel = $threatLevel])"/>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user