Skip to content

Commit 3ac047e

Browse files
committed
Show OVAL details for extend_definition
If an OVAL definition was extended using 'extend_definition', there were no details shown in the HTML report for the refereced definition(s). This commit adds OVAL details for the extended definition to HTML report. Fixes #916, #954.
1 parent 3397de4 commit 3ac047e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

xsl/xccdf-report-oval-details.xsl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,14 @@ Authors:
5050
</xsl:apply-templates>
5151
</xsl:template>
5252

53-
<xsl:template mode='brief' match='ovalres:definition|ovalres:criteria|ovalres:criterion|ovalres:extend_definition'>
53+
<xsl:template mode='brief' match='ovalres:extend_definition'>
54+
<xsl:param name='result'/>
55+
<xsl:apply-templates select='key("oval-definition", @definition_ref)' mode='brief'>
56+
<xsl:with-param name='result' select='$result'/>
57+
</xsl:apply-templates>
58+
</xsl:template>
59+
60+
<xsl:template mode='brief' match='ovalres:definition|ovalres:criteria|ovalres:criterion'>
5461
<xsl:param name='result'/>
5562
<xsl:apply-templates select='key("oval-test", @test_ref)' mode='brief'>
5663
<xsl:with-param name='title' select='key("oval-testdef", @test_ref)/@comment'/>

0 commit comments

Comments
 (0)