Debian Codegraph @

xsl/xccdf-branding.xsl

raw symbols SCIP
1 <?xml version="1.0" encoding="utf-8" ?>
2
3 <!--
4 Copyright 2014 Red Hat Inc., Durham, North Carolina.
5 All Rights Reserved.
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
21 Authors:
22 Martin Preisler <[email protected]>
23 -->
24
25 <!--
26 The purpose of this file is to allow downstreams to patch it to provide
27 their own branding. For example a distribution might want to add their
28 logo to the HTML report / guide header.
29 -->
30
31 <xsl:stylesheet version="1.1"
32 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
33 xmlns:cdf="http://checklists.nist.gov/xccdf/1.2"
34 exclude-result-prefixes="xsl cdf">
35
36 <xsl:param name="oscap-version"/>
37
38 <xsl:template name="xccdf-branding-logo">
39 <!--
40 This is the openscap logo SVG.
41
42 These are the steps I used to generate this embedded SVG snippet
43 1) Round all positions to 1 decimal place
44 2) Remove inkscape, RDF, DC and other metadata
45 -->
46
47 <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="52" height="52" id="svg2"><g transform="matrix(0.75266991,0,0,0.75266991,-17.752968,-104.57468)" id="g32"><path d="m 24.7,173.5 c 0,-9 3.5,-17.5 9.9,-23.9 6.8,-6.8 15.7,-10.4 25,-10 8.6,0.3 16.9,3.9 22.9,9.8 6.4,6.4 9.9,14.9 10,23.8 0.1,9.1 -3.5,17.8 -10,24.3 -13.2,13.2 -34.7,13.1 -48,-0.1 -1.5,-1.5 -1.9,-4.2 0.2,-6.2 l 9,-9 c -2,-3.6 -4.9,-13.1 2.6,-20.7 7.6,-7.6 18.6,-6 24.4,-0.2 3.3,3.3 5.1,7.6 5.1,12.1 0.1,4.6 -1.8,9.1 -5.3,12.5 -4.2,4.2 -10.2,5.8 -16.1,4.4 -1.5,-0.4 -2.4,-1.9 -2.1,-3.4 0.4,-1.5 1.9,-2.4 3.4,-2.1 4.1,1 8,-0.1 10.9,-2.9 2.3,-2.3 3.6,-5.3 3.6,-8.4 0,0 0,-0.1 0,-0.1 0,-3 -1.3,-5.9 -3.5,-8.2 -3.9,-3.9 -11.3,-4.9 -16.5,0.2 -6.3,6.3 -1.6,14.1 -1.6,14.2 1.5,2.4 0.7,5 -0.9,6.3 l -8.4,8.4 c 9.9,8.9 27.2,11.2 39.1,-0.8 5.4,-5.4 8.4,-12.5 8.4,-20 0,-0.1 0,-0.2 0,-0.3 -0.1,-7.5 -3,-14.6 -8.4,-19.9 -5,-5 -11.9,-8 -19.1,-8.2 -7.8,-0.3 -15.2,2.7 -20.9,8.4 -8.7,8.7 -8.7,19 -7.9,24.3 0.3,2.4 1.1,4.9 2.2,7.3 0.6,1.4 0,3.1 -1.4,3.7 -1.4,0.6 -3.1,0 -3.7,-1.4 -1.3,-2.9 -2.2,-5.8 -2.6,-8.7 -0.3,-1.7 -0.4,-3.5 -0.4,-5.2 z" id="path34" style="fill:#12497f"/></g></svg>
48 </xsl:template>
49
50 <xsl:template name="xccdf-report-header">
51 <nav class="navbar navbar-default">
52 <div class="navbar-header" style="float: none">
53 <a class="navbar-brand" href="#">
54 <xsl:call-template name="xccdf-branding-logo"/>
55 </a>
56 <div><h1>OpenSCAP Evaluation Report</h1></div>
57 </div>
58 </nav>
59 </xsl:template>
60
61 <xsl:template name="xccdf-report-footer">
62 <footer id="footer">
63 <div class="container">
64 <p class="muted credit">
65 Generated using <a href="http://open-scap.org">OpenSCAP</a>
66 <xsl:if test="$oscap-version">
67 <xsl:value-of select="concat(' ', $oscap-version)"/>
68 </xsl:if>
69 </p>
70 </div>
71 </footer>
72 </xsl:template>
73
74 <xsl:template name="xccdf-guide-header">
75 <nav class="navbar navbar-default">
76 <div class="navbar-header" style="float: none">
77 <a class="navbar-brand" href="#">
78 <xsl:call-template name="xccdf-branding-logo"/>
79 </a>
80 <div><h1>OpenSCAP Security Guide</h1></div>
81 </div>
82 </nav>
83 </xsl:template>
84
85 <xsl:template name="xccdf-guide-footer">
86 <footer id="footer">
87 <div class="container">
88 <p class="muted credit">
89 Generated using <a href="http://open-scap.org">OpenSCAP</a>
90 <xsl:if test="$oscap-version">
91 <xsl:value-of select="concat(' ', $oscap-version)"/>
92 </xsl:if>
93 </p>
94 </div>
95 </footer>
96 </xsl:template>
97
98 </xsl:stylesheet>