This file is indexed.

/usr/share/pygobject/xsl/pdf.xsl is in python-gobject-2-dev 2.28.6-13.

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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
<?xml version='1.0'?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY RE "&#10;">
<!ENTITY nbsp "&#160;">
]>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:fo="http://www.w3.org/1999/XSL/Format"
                version='1.0'>

<xsl:param name="body.margin.top">0.5in</xsl:param>

<xsl:template name="is.graphic.extension">
  <xsl:param name="ext"></xsl:param>
  <xsl:if test="$ext = 'png'
                or $ext = 'pdf'
                or $ext = 'jpeg'
                or $ext = 'gif'
                or $ext = 'tif'
                or $ext = 'tiff'
                or $ext = 'bmp'">1</xsl:if>
</xsl:template>

  <!-- support for Python language for synopsises -->
  <xsl:template match="classsynopsis
                     |fieldsynopsis
                     |methodsynopsis
                     |constructorsynopsis
                     |destructorsynopsis">
    <xsl:param name="language">
      <xsl:choose>
        <xsl:when test="@language">
          <xsl:value-of select="@language"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:value-of select="$default-classsynopsis-language"/>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:param>
    <xsl:choose>
      <xsl:when test="$language='python'">
        <xsl:apply-templates select="." mode="python"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:apply-imports/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>

  <xsl:template match="classsynopsis" mode="python">
  <fo:block wrap-option='no-wrap'
            white-space-collapse='false'
            linefeed-treatment="preserve"
            xsl:use-attribute-sets="monospace.verbatim.properties"
            background-color="#E0E0E0">
    <xsl:text>class </xsl:text>
    <xsl:apply-templates select="ooclass[1]" mode="python"/>
    <xsl:if test="ooclass[position() &gt; 1]">
      <xsl:text>(</xsl:text>
      <xsl:apply-templates select="ooclass[position() &gt; 1]" mode="python"/>
      <xsl:text>)</xsl:text>
    </xsl:if>
    <xsl:text>&nbsp;:</xsl:text>

      <xsl:apply-templates select="constructorsynopsis
                                   |destructorsynopsis
                                   |fieldsynopsis
                                   |methodsynopsis
                                   |classsynopsisinfo" mode="python"/>

  </fo:block>
  <xsl:text>&RE;</xsl:text>
  </xsl:template>

  <xsl:template match="classsynopsisinfo" mode="python">
    <xsl:apply-templates mode="python"/>
  </xsl:template>

  <xsl:template match="ooclass|oointerface|ooexception" mode="python">
    <xsl:if test="position() &gt; 1">
      <xsl:text>, </xsl:text>
   </xsl:if>
  <xsl:apply-templates mode="python"/>
  </xsl:template>

  <xsl:template match="modifier" mode="python">
      <xsl:apply-templates mode="python"/>
      <xsl:text>&nbsp;</xsl:text>
  </xsl:template>

  <xsl:template match="classname" mode="python">
    <xsl:if test="name(preceding-sibling::*[1]) = 'classname'">
      <xsl:text>, </xsl:text>
    </xsl:if>
      <xsl:apply-templates mode="python"/>
  </xsl:template>

  <xsl:template match="interfacename" mode="python">
    <xsl:if test="name(preceding-sibling::*[1]) = 'interfacename'">
      <xsl:text>, </xsl:text>
    </xsl:if>
      <xsl:apply-templates mode="python"/>
  </xsl:template>

  <xsl:template match="exceptionname" mode="python">
    <xsl:if test="name(preceding-sibling::*[1]) = 'exceptionname'">
      <xsl:text>, </xsl:text>
    </xsl:if>
      <xsl:apply-templates mode="python"/>
  </xsl:template>

  <xsl:template match="fieldsynopsis" mode="python">
  <fo:block wrap-option='no-wrap'
            white-space-collapse='false'
            linefeed-treatment="preserve"
            xsl:use-attribute-sets="monospace.verbatim.properties">
      <xsl:text>&nbsp;&nbsp;&nbsp;&nbsp;</xsl:text>
      <xsl:apply-templates mode="python"/>
    <xsl:call-template name="synop-break"/>
  </fo:block>
  </xsl:template>

  <xsl:template match="type" mode="python">
      <xsl:apply-templates mode="python"/>
      <xsl:text>&nbsp;</xsl:text>
  </xsl:template>

  <xsl:template match="varname" mode="python">
      <xsl:apply-templates mode="python"/>
      <xsl:text>&nbsp;</xsl:text>
  </xsl:template>

  <xsl:template match="initializer" mode="python">
      <xsl:text>=</xsl:text>
      <xsl:apply-templates mode="python"/>
  </xsl:template>

  <xsl:template match="void" mode="python">
      <xsl:text>void&nbsp;</xsl:text>
  </xsl:template>

  <xsl:template match="methodname" mode="python">
      <xsl:apply-templates mode="python"/>
  </xsl:template>

  <xsl:template match="methodparam" mode="python">
    <xsl:if test="position() &gt; 1">
      <xsl:text>, </xsl:text>
    </xsl:if>
      <xsl:apply-templates mode="python"/>
  </xsl:template>

 <xsl:template mode="python"
    match="destructorsynopsis|methodsynopsis">

  <fo:block wrap-option='no-wrap'
            white-space-collapse='false'
            linefeed-treatment="preserve"
            xsl:use-attribute-sets="monospace.verbatim.properties">
      <xsl:text>    def </xsl:text>
      <xsl:apply-templates select="methodname" mode="python"/>
      <xsl:text>(</xsl:text>
      <xsl:apply-templates select="methodparam" mode="python"/>
      <xsl:text>)</xsl:text>
<!--    <xsl:call-template name="synop-break"/> -->
   </fo:block>
  </xsl:template>

 <xsl:template mode="python"
    match="constructorsynopsis">
    <fo:block  wrap-option='no-wrap'
            white-space-collapse='false'
            linefeed-treatment="preserve"
            xsl:use-attribute-sets="monospace.verbatim.properties">
      <xsl:text>    </xsl:text>
      <xsl:apply-templates select="methodname" mode="python"/>
      <xsl:text>(</xsl:text>
      <xsl:apply-templates select="methodparam" mode="python"/>
      <xsl:text>)</xsl:text>
  </fo:block>
  </xsl:template>

  <!-- hack -->
  <xsl:template match="link" mode="python">
    <xsl:apply-templates select="."/>
  </xsl:template>

<!--
<xsl:template match="variablelist" mode="vl.as.blocks">
  <xsl:variable name="id">
    <xsl:call-template name="object.id"/>
  </xsl:variable>

  <xsl:if test="title">
    <xsl:apply-templates select="title" mode="list.title.mode"/>
  </xsl:if>

  <fo:block id="{$id}" 
            xsl:use-attribute-sets="list.block.spacing"
            background-color="#FFECCE">
    <xsl:apply-templates mode="vl.as.blocks"/>
  </fo:block>
</xsl:template>
-->

<!--
<xsl:template match="variablelist">
  <fo:table border="0"
            width="100%" 
            background-color="#FFECCE"
            table-layout="fixed">
    <fo:table-column
            align="left" 
            column-width="20%"
            column-number="1">
    </fo:table-column>
    <fo:table-column
            align="left" 
            column-width="80%"
            column-number="2">
    </fo:table-column>
    <fo:table-body>
      <xsl:apply-templates select="varlistentry"/>
    </fo:table-body>
  </fo:table>
</xsl:template>

<xsl:template match="varlistentry">
  <fo:table-row>
       <fo:table-cell>
          <fo:block
            background-color="#FFECCE">
          <xsl:apply-templates select="term"/>
          </fo:block>
       </fo:table-cell>
       <fo:table-cell>
          <fo:block
            background-color="#FFECCE">
          <xsl:apply-templates select="listitem"/>
          </fo:block>
       </fo:table-cell>
  </fo:table-row>
</xsl:template>

<xsl:template match="varlistentry/term">
    <xsl:apply-templates/>
    <xsl:text>, </xsl:text>
</xsl:template>

<xsl:template match="varlistentry/term[position()=last()]" priority="2">
    <xsl:apply-templates/>
</xsl:template>

<xsl:template match="varlistentry/listitem">
      <xsl:apply-templates/>
</xsl:template>
-->

</xsl:stylesheet>