implemented finding count placeholder (cont.)
This commit is contained in:
@@ -384,7 +384,7 @@
|
|||||||
<xs:element name="p_reportdue"/>
|
<xs:element name="p_reportdue"/>
|
||||||
<xs:element name="finding_count">
|
<xs:element name="finding_count">
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
<xs:attribute ref="threatLevel" use="required"/>
|
<xs:attribute ref="threatLevel" use="optional"/>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
</xs:choice>
|
</xs:choice>
|
||||||
|
|||||||
@@ -349,7 +349,14 @@
|
|||||||
|
|
||||||
<xsl:template match="finding_count">
|
<xsl:template match="finding_count">
|
||||||
<xsl:param name="threatLevel" select="@threatLevel"/>
|
<xsl:param name="threatLevel" select="@threatLevel"/>
|
||||||
<xsl:value-of select="count(//finding[@threatLevel=$threatLevel])" />
|
<xsl:choose>
|
||||||
|
<xsl:when test="@threatLevel">
|
||||||
|
<xsl:value-of select="count(//finding[@threatLevel = $threatLevel])"/>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:value-of select="count(//finding)"/>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template name="checkPlaceholder">
|
<xsl:template name="checkPlaceholder">
|
||||||
|
|||||||
Reference in New Issue
Block a user