[PATCH 05/16] added new transform to validly order nodes inside Groups

David Smith dsmith at eclipse.ncsc.mil
Fri Sep 21 22:11:06 UTC 2012


Signed-off-by: David Smith <dsmith at eclipse.ncsc.mil>
---
 RHEL6/transforms/shorthand2xccdf.xslt |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/RHEL6/transforms/shorthand2xccdf.xslt b/RHEL6/transforms/shorthand2xccdf.xslt
index d899f48..0d8f56e 100644
--- a/RHEL6/transforms/shorthand2xccdf.xslt
+++ b/RHEL6/transforms/shorthand2xccdf.xslt
@@ -48,6 +48,20 @@ exclude-result-prefixes="xccdf xhtml">
     </xsl:copy>
   </xsl:template> 
 
+
+  <xsl:template match="Group">
+    <xsl:copy>
+      <xsl:apply-templates select="@*" />
+      <xsl:apply-templates select="title"/>
+      <xsl:apply-templates select="description"/>
+      <xsl:apply-templates select="warning"/> 
+      <xsl:apply-templates select="ref"/> 
+      <xsl:apply-templates select="rationale"/> 
+      <xsl:apply-templates select="node()[not(self::title|self::description|self::warning|self::ref|self::rationale)]"/>
+    </xsl:copy>
+  </xsl:template> 
+
+
   <!-- expand reference to ident types -->
   <xsl:template match="Rule/ident">
     <xsl:for-each select="@*">
-- 
1.7.1



More information about the scap-security-guide mailing list