[PATCH 6/6] display 800-53-refs as separate column in CCI table

Jeffrey Blank blank at eclipse.ncsc.mil
Sun Oct 21 19:57:44 UTC 2012


Signed-off-by: Jeffrey Blank <blank at eclipse.ncsc.mil>
---
 RHEL6/transforms/xccdf2table-profileccirefs.xslt |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/RHEL6/transforms/xccdf2table-profileccirefs.xslt b/RHEL6/transforms/xccdf2table-profileccirefs.xslt
index 5f2bc40..a49d561 100644
--- a/RHEL6/transforms/xccdf2table-profileccirefs.xslt
+++ b/RHEL6/transforms/xccdf2table-profileccirefs.xslt
@@ -54,7 +54,8 @@
 				<td>Fix Text (Description)</td>
 				<td>Check Text (OCIL Check)</td>
 				<!-- <td>Variable Setting</td> -->
-				<td>CCI Ref<br/>(800-53 Origin)</td>
+				<td>CCI Refs</td>
+				<td>800-53 Refs</td>
 			</thead>
 
 		<xsl:call-template name="profileplate">
@@ -148,18 +149,24 @@
             	<xsl:variable name="cci_formatted" select='format-number(self::node()[text()], "000000")' />
 				<xsl:variable name="cci_expanded" select="concat('CCI-', $cci_formatted)"  />
 				<xsl:value-of select="$cci_expanded"/>
-				<xsl:text> (</xsl:text>
+				<br/>
+			</xsl:for-each>
+			</td> 
+
+			<td> 
+			<xsl:for-each select="cdf:reference[@href=$disa-cciuri]">
+            	<xsl:variable name="cci_formatted" select='format-number(self::node()[text()], "000000")' />
+				<xsl:variable name="cci_expanded" select="concat('CCI-', $cci_formatted)"  />
 				<xsl:for-each select="$cci_list/cci:cci_items/cci:cci_item">
 					<xsl:if test="@id=$cci_expanded">
 						<xsl:for-each select="cci:references/cci:reference">
 							<xsl:if test="@title='NIST SP 800-53'">
 								<xsl:value-of select="@index"/>
+								<br/>
 							</xsl:if>
 						</xsl:for-each>
 					</xsl:if>
 				</xsl:for-each>
-				<xsl:text>)</xsl:text>
-				<br/>
 			</xsl:for-each>
 			</td> 
 		</tr>
-- 
1.7.1



More information about the scap-security-guide mailing list