Skip to content

Commit 6621a6c

Browse files
committed
select correct var
1 parent cfad5b2 commit 6621a6c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

xsl/xccdf-report-oval-details.xsl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,15 @@ Authors:
182182
<td>
183183
<xsl:choose>
184184
<xsl:when test="@var_ref">
185+
<xsl:variable name="matching_var" select="$tested_var[@variable_id = current()/@var_ref]"/>
185186
<xsl:choose>
186-
<xsl:when test="count($tested_var) > 1">
187+
<xsl:when test="count($matching_var) > 1">
187188
<table>
188-
<xsl:apply-templates mode='tableintable' select="$tested_var"/>
189+
<xsl:apply-templates mode='tableintable' select="$matching_var"/>
189190
</table>
190191
</xsl:when>
191192
<xsl:otherwise>
192-
<xsl:apply-templates mode='normal' select="$tested_var"/>
193+
<xsl:apply-templates mode='normal' select="$matching_var"/>
193194
</xsl:otherwise>
194195
</xsl:choose>
195196
<xsl:apply-templates mode='message' select='key("ovalsys-object", $object_id)'/>

0 commit comments

Comments
 (0)