Signed-off-by: Jeffrey Blank <[email protected]>
---
 RHEL6/transforms/table-srgmap.xslt     |   20 +++-----------------
 RHEL6/transforms/xccdf2table-cce.xslt  |   19 ++-----------------
 RHEL6/transforms/xccdf2table-stig.xslt |   22 +++-------------------
 3 files changed, 8 insertions(+), 53 deletions(-)

diff --git a/RHEL6/transforms/table-srgmap.xslt 
b/RHEL6/transforms/table-srgmap.xslt
index 8be0e55..cf84227 100644
--- a/RHEL6/transforms/table-srgmap.xslt
+++ b/RHEL6/transforms/table-srgmap.xslt
@@ -8,6 +8,7 @@
 
 <xsl:param name="flat" select="''"/>
 <xsl:include href="constants.xslt"/>
+<xsl:include href="table-style.xslt"/>
 
 <!-- expecting external variable "map-to-items", a filename to an XCCDF 
document with Rules and Groups -->
 <!-- put everything in it with a reference into "items" (should only be Rules 
and Groups) -->
@@ -33,23 +34,8 @@
        </xsl:template>
 
        <xsl:template match="cdf:Benchmark">
-               <style type="text/css">
-               table
-               {
-                       border-collapse:collapse;
-               }
-               table,th, td
-               {
-                       border: 1px solid black;
-                       vertical-align: top;
-                       padding: 3px;
-               }
-               thead
-               {
-                       display: table-header-group;
-                       font-weight: bold;
-               }
-               </style>
+               <xsl:call-template name="table-style" />
+
                <table>
                        <thead>
                                <td>SRG ID</td>
diff --git a/RHEL6/transforms/xccdf2table-cce.xslt 
b/RHEL6/transforms/xccdf2table-cce.xslt
index 9f34f2c..84f9371 100644
--- a/RHEL6/transforms/xccdf2table-cce.xslt
+++ b/RHEL6/transforms/xccdf2table-cce.xslt
@@ -9,6 +9,7 @@
 <xsl:variable name="cce_list" select="document($ref)/cce:cce_list" />
 
 <xsl:include href="constants.xslt"/>
+<xsl:include href="table-style.xslt"/>
 
        <xsl:template match="/">
                <html>
@@ -30,23 +31,7 @@
 
 
        <xsl:template match="cdf:Benchmark">
-               <style type="text/css">
-               table
-               {
-                       border-collapse:collapse;
-               }
-               table,th, td
-               {
-                       border: 1px solid black;
-                       vertical-align: top;
-                       padding: 3px;
-               }
-               thead
-               {
-                       display: table-header-group;
-                       font-weight: bold;
-               }
-               </style>
+               <xsl:call-template name="table-style" />
                <table>
                        <thead>
                                <td>CCE ID</td>
diff --git a/RHEL6/transforms/xccdf2table-stig.xslt 
b/RHEL6/transforms/xccdf2table-stig.xslt
index ee5771f..729ca2f 100644
--- a/RHEL6/transforms/xccdf2table-stig.xslt
+++ b/RHEL6/transforms/xccdf2table-stig.xslt
@@ -8,6 +8,7 @@
 <xsl:variable name="notegroup" select="document($notes)/notegroup" />
 
 <xsl:include href="constants.xslt"/>
+<xsl:include href="table-style.xslt"/>
 
        <xsl:template match="/">
                <html>
@@ -29,25 +30,8 @@
 
 
        <xsl:template match="cdf:Benchmark">
-               <style type="text/css">
-               table
-               {
-                       border-collapse:collapse;
-               }
-               table,th,td
-               {
-                       border: 1px solid black;
-                       vertical-align: top;
-                       padding: 3px;
-               }
-               .bl, table.bl tr td { border:none; }
-               .bbl, table.bbl tr td { border:none; font-weight: bold;}
-               thead
-               {
-                       display: table-header-group;
-                       font-weight: bold;
-               }
-               </style>
+               <xsl:call-template name="table-style" />
+
                <table>
                        <thead>
                        <xsl:choose>
-- 
1.7.1

_______________________________________________
scap-security-guide mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/scap-security-guide

Reply via email to