This file is indexed.

/usr/share/cluster/relaxng/ra2rng.xsl is in resource-agents 1:4.1.0~rc1-1ubuntu1.

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
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:int="__internal__"
    exclude-result-prefixes="int">
    <xsl:output method="text" indent="no"/>

<xsl:param name="init-indent" select="'  '"/>
<xsl:param name="indent" select="'  '"/>


<!--
  helpers
  -->

<int:common-optional-parameters>
    <int:parameter name="__independent_subtree">
        <int:shortdesc>
            Treat this and all children as an independent subtree.
        </int:shortdesc>
    </int:parameter>
    <int:parameter name="__enforce_timeouts">
        <int:shortdesc>
            Consider a timeout for operations as fatal.
        </int:shortdesc>
    </int:parameter>
    <int:parameter name="__max_failures">
        <int:shortdesc>
            Maximum number of failures before returning a failure to
            a status check.
        </int:shortdesc>
    </int:parameter>
    <int:parameter name="__failure_expire_time">
        <int:shortdesc>
            Amount of time before a failure is forgotten.
        </int:shortdesc>
    </int:parameter>
    <int:parameter name="__max_restarts">
        <int:shortdesc>
            Maximum number restarts for an independent subtree before
            giving up.
        </int:shortdesc>
    </int:parameter>
    <int:parameter name="__restart_expire_time">
        <int:shortdesc>
            Amount of time before a failure is forgotten for
            an independent subtree.
        </int:shortdesc>
    </int:parameter>
</int:common-optional-parameters>

<xsl:variable name="SP" select="' '"/>
<xsl:variable name="NL" select="'&#xA;'"/>
<xsl:variable name="NLNL" select="'&#xA;&#xA;'"/>
<xsl:variable name="Q" select="'&quot;'"/>
<xsl:variable name="TS" select="'&lt;'"/>
<xsl:variable name="TSc" select="'&lt;/'"/>
<xsl:variable name="TE" select="'&gt;'"/>
<xsl:variable name="TEc" select="'/&gt;'"/>

<xsl:template name="comment">
    <xsl:param name="text" select="''"/>
    <xsl:param name="indent" select="''"/>
    <xsl:if test="$indent != 'none'">
        <xsl:value-of select="concat($init-indent, $indent)"/>
    </xsl:if>
    <xsl:value-of select="concat($TS, '!-- ', $text, ' --',$TE)"/>
</xsl:template>

<xsl:template name="tag-start">
    <xsl:param name="name"/>
    <xsl:param name="attrs" select="''"/>
    <xsl:param name="indent" select="''"/>
    <xsl:if test="$indent != 'none'">
        <xsl:value-of select="concat($init-indent, $indent)"/>
    </xsl:if>
    <xsl:value-of select="concat($TS, $name)"/>
    <xsl:if test="$attrs != ''">
        <xsl:value-of select="concat($SP, $attrs)"/>
    </xsl:if>
    <xsl:value-of select="$TE"/>
</xsl:template>

<xsl:template name="tag-end">
    <xsl:param name="name"/>
    <xsl:param name="attrs" select="''"/>
    <xsl:param name="indent" select="''"/>
    <xsl:if test="$indent != 'none'">
        <xsl:value-of select="concat($init-indent, $indent)"/>
    </xsl:if>
    <xsl:value-of select="concat($TSc, $name)"/>
    <xsl:if test="$attrs != ''">
        <xsl:value-of select="concat($SP, $attrs)"/>
    </xsl:if>
    <xsl:value-of select="$TE"/>
</xsl:template>

<xsl:template name="tag-self">
    <xsl:param name="name"/>
    <xsl:param name="attrs" select="''"/>
    <xsl:param name="indent" select="''"/>
    <xsl:if test="$indent != 'none'">
        <xsl:value-of select="concat($init-indent, $indent)"/>
    </xsl:if>
    <xsl:value-of select="concat($TS, $name)"/>
    <xsl:if test="$attrs != ''">
        <xsl:value-of select="concat($SP, $attrs)"/>
    </xsl:if>
    <xsl:value-of select="$TEc"/>
</xsl:template>

<xsl:template name="capitalize">
    <xsl:param name="value"/>
    <xsl:value-of select="translate($value,
                                    '_abcdefghijklmnopqrstuvwrxyz',
                                    '-ABCDEFGHIJKLMNOPQRSTUVWRXYZ')"/>
</xsl:template>


<!--
  proceed
  -->

<xsl:template match="/resource-agent">
    <xsl:value-of select="$NL"/>

    <!-- define name=... (start) -->
    <xsl:variable name="capitalized">
        <xsl:call-template name="capitalize">
            <xsl:with-param name="value" select="@name"/>
        </xsl:call-template>
    </xsl:variable>
    <xsl:call-template name="tag-start">
        <xsl:with-param name="name" select="'define'"/>
        <xsl:with-param name="attrs" select="concat(
            'name=', $Q, $capitalized, $Q)"/>
    </xsl:call-template>
    <xsl:value-of select="$NL"/>

        <!-- element name=... rha:description=... (start) -->
        <xsl:call-template name="tag-start">
            <xsl:with-param name="name" select="'element'"/>
            <xsl:with-param name="attrs" select="concat(
                'name=',            $Q, @name,                      $Q, $SP,
                'rha:description=', $Q, normalize-space(shortdesc), $Q)"/>
            <xsl:with-param name="indent" select="$indent"/>
        </xsl:call-template>
        <xsl:value-of select="$NL"/>

            <!-- choice (start) -->
            <xsl:call-template name="tag-start">
                <xsl:with-param name="name" select="'choice'"/>
                <xsl:with-param name="indent" select="concat($indent, $indent)"/>
            </xsl:call-template>
            <xsl:value-of select="$NL"/>

                <!-- group (start) -->
                <xsl:call-template name="tag-start">
                    <xsl:with-param name="name" select="'group'"/>
                    <xsl:with-param name="indent" select="concat($indent, $indent,
                                                                 $indent)"/>
                </xsl:call-template>
                <xsl:value-of select="$NL"/>

                    <!-- (comment) -->
                    <xsl:call-template name="comment">
                        <xsl:with-param name="text">
                            <xsl:text>rgmanager specific stuff</xsl:text>
                        </xsl:with-param>
                        <xsl:with-param name="indent" select="concat($indent, $indent,
                                                                     $indent, $indent)"/>
                    </xsl:call-template>
                    <xsl:value-of select="$NL"/>

                    <!-- attribute name="ref" -->
                    <xsl:call-template name="tag-self">
                        <xsl:with-param name="name" select="'attribute'"/>
                        <xsl:with-param name="attrs" select="concat(
                            'name=',            $Q, 'ref',                    $Q, $SP,
                            'rha:description=', $Q, 'Reference to existing ',
                                                    @name, ' resource in ',
                                                    'the resources section.', $Q)"/>
                        <xsl:with-param name="indent" select="concat($indent, $indent,
                                                                     $indent, $indent)"/>
                    </xsl:call-template>
                    <xsl:value-of select="$NL"/>

                <!-- group (end) -->
                <xsl:call-template name="tag-end">
                    <xsl:with-param name="name" select="'group'"/>
                    <xsl:with-param name="indent" select="concat($indent, $indent,
                                                                 $indent)"/>
                </xsl:call-template>
                <xsl:value-of select="$NL"/>

                <!-- group (start) -->
                <xsl:call-template name="tag-start">
                    <xsl:with-param name="name" select="'group'"/>
                    <xsl:with-param name="indent" select="concat($indent, $indent,
                                                                 $indent)"/>
                </xsl:call-template>
                <xsl:value-of select="$NL"/>

                <xsl:for-each select="parameters/parameter">
                    <xsl:choose>
                        <xsl:when test="@required = '1' or @primary = '1'">
                            <!-- attribute name=... rha:description=... -->
                            <xsl:call-template name="tag-self">
                                <xsl:with-param name="name" select="'attribute'"/>
                                <xsl:with-param name="attrs" select="concat(
                                    'name=',            $Q, @name,                      $Q, $SP,
                                    'rha:description=', $Q, normalize-space(shortdesc), $Q)"/>
                                <xsl:with-param name="indent" select="concat($indent, $indent,
                                                                             $indent, $indent)"/>
                            </xsl:call-template>
                            <xsl:value-of select="$NL"/>
                        </xsl:when>
                        <xsl:otherwise>
                            <!-- optional (start) -->
                            <xsl:call-template name="tag-start">
                                <xsl:with-param name="name" select="'optional'"/>
                                <xsl:with-param name="indent" select="concat($indent, $indent,
                                                                             $indent, $indent)"/>
                            </xsl:call-template>
                            <xsl:value-of select="$NL"/>

                                <!-- attribute name=... rha:description=... -->
                                <xsl:call-template name="tag-self">
                                    <xsl:with-param name="name" select="'attribute'"/>
                                    <xsl:with-param name="attrs" select="concat(
                                        'name=',            $Q, @name,                      $Q, $SP,
                                        'rha:description=', $Q, normalize-space(shortdesc), $Q)"/>
                                    <xsl:with-param name="indent" select="concat($indent, $indent,
                                                                                 $indent, $indent,
                                                                                 $indent)"/>
                                </xsl:call-template>
                                <xsl:value-of select="$NL"/>

                            <!-- optional (end) -->
                            <xsl:call-template name="tag-end">
                                <xsl:with-param name="name" select="'optional'"/>
                                <xsl:with-param name="indent" select="concat($indent, $indent,
                                                                             $indent, $indent)"/>
                            </xsl:call-template>
                            <xsl:value-of select="$NL"/>
                        </xsl:otherwise>
                    </xsl:choose>
                </xsl:for-each>

                <!-- group (end) -->
                <xsl:call-template name="tag-end">
                    <xsl:with-param name="name" select="'group'"/>
                    <xsl:with-param name="indent" select="concat($indent, $indent,
                                                                 $indent)"/>
                </xsl:call-template>
                <xsl:value-of select="$NL"/>

            <!-- choice (end) -->
            <xsl:call-template name="tag-end">
                <xsl:with-param name="name" select="'choice'"/>
                <xsl:with-param name="indent" select="concat($indent, $indent)"/>
            </xsl:call-template>
            <xsl:value-of select="$NL"/>

            <xsl:for-each select="document('')/*/int:common-optional-parameters/int:parameter">
                <!-- optional (start) -->
                <xsl:call-template name="tag-start">
                    <xsl:with-param name="name" select="'optional'"/>
                    <xsl:with-param name="indent" select="concat($indent, $indent)"/>
                </xsl:call-template>
                <xsl:value-of select="$NL"/>

                    <!-- attribute name=... rha:description=... -->
                    <xsl:call-template name="tag-self">
                        <xsl:with-param name="name" select="'attribute'"/>
                        <xsl:with-param name="attrs" select="concat(
                            'name=',            $Q, @name,                          $Q, $SP,
                            'rha:description=', $Q, normalize-space(int:shortdesc), $Q)"/>
                        <xsl:with-param name="indent" select="concat($indent, $indent,
                                                                     $indent)"/>
                    </xsl:call-template>
                    <xsl:value-of select="$NL"/>

                <!-- optional (end) -->
                <xsl:call-template name="tag-end">
                    <xsl:with-param name="name" select="'optional'"/>
                    <xsl:with-param name="indent" select="concat($indent, $indent)"/>
                </xsl:call-template>
                <xsl:value-of select="$NL"/>
            </xsl:for-each>

            <!-- interleave (start) -->
            <xsl:call-template name="tag-start">
                <xsl:with-param name="name" select="'interleave'"/>
                <xsl:with-param name="indent" select="concat($indent, $indent)"/>
            </xsl:call-template>
            <xsl:value-of select="$NL"/>

                <!-- ref name="RESOURCEACTION" -->
                <xsl:call-template name="tag-self">
                    <xsl:with-param name="name" select="'ref'"/>
                    <xsl:with-param name="attrs" select="concat(
                        'name=', $Q, 'RESOURCEACTION', $Q)"/>
                    <xsl:with-param name="indent" select="concat($indent, $indent,
                                                                 $indent)"/>
                </xsl:call-template>
                <xsl:value-of select="$NL"/>

                <!-- ref name="CHILDREN" -->
                <xsl:call-template name="tag-self">
                    <xsl:with-param name="name" select="'ref'"/>
                    <xsl:with-param name="attrs" select="concat(
                        'name=', $Q, 'CHILDREN', $Q)"/>
                    <xsl:with-param name="indent" select="concat($indent, $indent,
                                                                 $indent)"/>
                </xsl:call-template>
                <xsl:value-of select="$NL"/>

            <!-- interleave (end) -->
            <xsl:call-template name="tag-end">
                <xsl:with-param name="name" select="'interleave'"/>
                <xsl:with-param name="indent" select="concat($indent, $indent)"/>
            </xsl:call-template>
            <xsl:value-of select="$NL"/>

        <!-- element (end) -->
        <xsl:call-template name="tag-end">
            <xsl:with-param name="name" select="'element'"/>
            <xsl:with-param name="indent" select="$indent"/>
        </xsl:call-template>
        <xsl:value-of select="$NL"/>

    <!-- define (end) -->
    <xsl:call-template name="tag-end">
        <xsl:with-param name="name" select="'define'"/>
    </xsl:call-template>
    <xsl:value-of select="$NLNL"/>

</xsl:template>

</xsl:stylesheet>