This file is indexed.

/usr/share/openscap/xsl/docbook-share.xsl is in libopenscap1 0.8.0-4build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright 2010 Red Hat Inc., Durham, North Carolina.
All Rights Reserved.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA

Authors:
     Lukas Kuklinek <lkuklinek@redhat.com>
-->


<xsl:stylesheet version="1.1"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:db="http://docbook.org/ns/docbook"
    xmlns:xlink="http://www.w3.org/1999/xlink"
	xmlns="http://docbook.org/ns/docbook"
	xmlns:h="http://www.w3.org/1999/xhtml"
    xmlns:fn="http://www.w3.org/2005/xpath-functions"
    xmlns:exsl="http://exslt.org/common"
    xmlns:func="http://exslt.org/functions"
    xmlns:s="http://open-scap.org/"
	xmlns:cdf="http://checklists.nist.gov/xccdf/1.1"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:edate="http://exslt.org/dates-and-times"
    exclude-result-prefixes="xsl cdf db exsl h fn func s dc edate"
    >

<xsl:import href='html2docbook.xsl'/>
<xsl:import href='dc2docbook.xsl'/>
<xsl:import href='dbout-html.xsl'/>

<xsl:param name='format' select='"html"'/>

<!-- call default template on the processed root element -->
<xsl:template match='/'>
  <xsl:variable name='db.out'>
    <xsl:apply-templates select='$root'/>
  </xsl:variable>
  <xsl:choose>
    <xsl:when test='$format="db" or $format="docbook"'><xsl:copy-of select='$db.out'/></xsl:when>
    <xsl:when test='$format="html" or $format="xhtml"'><xsl:apply-templates mode='dbout.html' select='exsl:node-set($db.out)'/></xsl:when>
    <xsl:otherwise><xsl:message terminate='yes'>Unrecognized format '<xsl:value-of select='$format'/>'. Aborting.</xsl:message></xsl:otherwise>
  </xsl:choose>
</xsl:template>

<!-- info template -->
<xsl:template name='info'>
  <xsl:param name='more'/>
  <xsl:param name='make-footer'/>
  <info>
    <xsl:apply-templates select='cdf:title'/>
    <xsl:copy-of select='$more'/>
    <xsl:if test='$make-footer'>
      <xsl:call-template name='footerinfo'/>
    </xsl:if>
    <xsl:apply-templates select='cdf:metadata'/>
    <xsl:apply-templates select='cdf:version'/>
    <xsl:apply-templates select='cdf:notice'/>
  </info>
</xsl:template>

<xsl:template name='footerinfo'>
  <releaseinfo role='footer'>
    <xsl:text>Generated by </xsl:text><phrase xlink:href="http://open-scap.org">OpenSCAP</phrase>
    <xsl:if test='$oscap-version'></xsl:if>
    <xsl:text> on </xsl:text><phrase role='date'><xsl:apply-templates mode='date' select='exsl:node-set($now)'/></phrase><xsl:text>.</xsl:text>
  </releaseinfo>
</xsl:template>

<!-- list template -->
<xsl:template name='list'>
  <xsl:param name='el' select='"itemizedlist"'/>
  <xsl:param name='title'/>
  <xsl:param name='nodes'/>
  <xsl:variable name='t' select='normalize-space($title)'/>
  <xsl:if test='$nodes'>
    <xsl:element name='{$el}'>
      <xsl:if test='$t'><title><xsl:value-of select='$t'/></title></xsl:if>
      <xsl:for-each select='$nodes'><listitem><simpara><xsl:value-of select='.'/></simpara></listitem></xsl:for-each>
    </xsl:element>
  </xsl:if>
</xsl:template>

<!-- call the html to docbook transform -->
<xsl:template mode='db' match='cdf:*'>
  <xsl:call-template name='h2db.para'><xsl:with-param name='in' select='.'/></xsl:call-template>
</xsl:template>
<!-- call the dublin-core to docbook transform -->
<xsl:template mode='db' match='cdf:reference|cdf:metadata'>
  <xsl:variable name='dc.input'>
    <xsl:choose>
      <xsl:when test='dc:*'><xsl:copy-of select='.'/></xsl:when>
      <xsl:otherwise>
        <dc:title><xsl:value-of select='.'/></dc:title>
        <xsl:if test='@href'><dc:identifier><xsl:value-of select='@href'/></dc:identifier></xsl:if>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:variable>
  <xsl:apply-templates mode='dc2db' select='exsl:node-set($dc.input)'/>
</xsl:template>

</xsl:stylesheet>