|
|
0950b5 |
From 8b43d43533cf4a00de60da71a8aaa6e87776766f Mon Sep 17 00:00:00 2001
|
|
|
0950b5 |
From: Gabe <redhatrises@gmail.com>
|
|
|
0950b5 |
Date: Fri, 3 Nov 2017 10:36:57 -0600
|
|
|
0950b5 |
Subject: [PATCH] Remove CCI formatting from shared table-srgmap XSLT
|
|
|
0950b5 |
|
|
|
0950b5 |
- CCI formatting is now done in earlier XSLT transformations.
|
|
|
0950b5 |
- Fixes #2447
|
|
|
0950b5 |
---
|
|
|
0950b5 |
shared/transforms/shared_table-srgmap.xslt | 14 ++++++--------
|
|
|
0950b5 |
1 file changed, 6 insertions(+), 8 deletions(-)
|
|
|
0950b5 |
|
|
|
0950b5 |
diff --git a/shared/transforms/shared_table-srgmap.xslt b/shared/transforms/shared_table-srgmap.xslt
|
|
|
0950b5 |
index 4a50dea33..7179f560e 100644
|
|
|
0950b5 |
--- a/shared/transforms/shared_table-srgmap.xslt
|
|
|
0950b5 |
+++ b/shared/transforms/shared_table-srgmap.xslt
|
|
|
0950b5 |
@@ -46,7 +46,7 @@
|
|
|
0950b5 |
</xsl:choose>
|
|
|
0950b5 |
|
|
|
0950b5 |
<xsl:for-each select=".//cdf:Rule">
|
|
|
0950b5 |
- <xsl:variable name="curr_cci" select="string(number(substring-after(cdf:ident,'CCI-')))"/>
|
|
|
0950b5 |
+ <xsl:variable name="curr_cci" select="cdf:ident"/>
|
|
|
0950b5 |
<xsl:choose>
|
|
|
0950b5 |
|
|
|
0950b5 |
<xsl:when test="$flat and $items/cdf:reference[@href=$disa-cciuri and text()=$curr_cci]">
|
|
|
0950b5 |
@@ -77,10 +77,9 @@
|
|
|
0950b5 |
<xsl:for-each select="$items">
|
|
|
0950b5 |
<xsl:variable name="item" select="."/>
|
|
|
0950b5 |
<xsl:for-each select="cdf:reference[@href=$disa-cciuri]">
|
|
|
0950b5 |
- <xsl:variable name="cci_formatted" select='format-number(self::node()[text()], "000000")' />
|
|
|
0950b5 |
- <xsl:variable name="cci_expanded" select="concat('CCI-', $cci_formatted)" />
|
|
|
0950b5 |
- <xsl:variable name="srg_cci" select="$rule/cdf:ident" />
|
|
|
0950b5 |
- <xsl:if test="$cci_expanded=$srg_cci" >
|
|
|
0950b5 |
+ <xsl:variable name="ssg_cci" select='self::node()[text()]' />
|
|
|
0950b5 |
+ <xsl:variable name="srg_cci" select="$rule/cdf:ident" />
|
|
|
0950b5 |
+ <xsl:if test="$ssg_cci=$srg_cci" >
|
|
|
0950b5 |
|
|
|
0950b5 |
|
|
|
0950b5 |
<xsl:value-of select="$item/cdf:title"/>
|
|
|
0950b5 |
@@ -100,10 +99,9 @@
|
|
|
0950b5 |
<xsl:for-each select="$items">
|
|
|
0950b5 |
<xsl:variable name="item" select="."/>
|
|
|
0950b5 |
<xsl:for-each select="cdf:reference[@href=$disa-cciuri]">
|
|
|
0950b5 |
- <xsl:variable name="cci_formatted" select='format-number(self::node()[text()], "000000")' />
|
|
|
0950b5 |
- <xsl:variable name="cci_expanded" select="concat('CCI-', $cci_formatted)" />
|
|
|
0950b5 |
+ <xsl:variable name="ssg_cci" select='self::node()[text()]' />
|
|
|
0950b5 |
<xsl:variable name="srg_cci" select="$rule/cdf:ident" />
|
|
|
0950b5 |
- <xsl:if test="$cci_expanded=$srg_cci" >
|
|
|
0950b5 |
+ <xsl:if test="$ssg_cci=$srg_cci" >
|
|
|
0950b5 |
|
|
|
0950b5 |
<xsl:value-of select="$rule/cdf:version"/>
|
|
|
0950b5 |
<xsl:value-of select="$rule/cdf:ident"/>
|