This file is indexed.

/usr/share/refdb/xsl/bibdb2tei.xsl is in refdb-clients 1.0.2-1.

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
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">

  <xsl:output method="xml" version='1.0' 
    doctype-public="-//TEI P4//DTD Main Document Type//EN" 
		doctype-system="http://www.tei-c.org/P4X/DTD/tei2.dtd"/>

  <!-- ToDo: internal subset
[<!ENTITY % TEI.general "INCLUDE"><!ENTITY % TEI.names.dates "INCLUDE"><!ENTITY % TEI.linking "INCLUDE"><!ENTITY % TEI.XML "INCLUDE">]
-->

  <xsl:template match="bibliography[@role='refdb']">
    <div type="refdb-bibliography">
      <xsl:apply-templates select="./title" mode="head"/>
      <listBibl rend="refdb">
        <xsl:apply-templates select="./bibliomixed"/>
      </listBibl>
    </div>
  </xsl:template>

  <xsl:template match="title" mode="head">
    <head><title>
    <xsl:apply-templates/>
  </title></head>
  </xsl:template>

  <xsl:template match="bibliomixed">
    <bibl>
      <xsl:attribute name="id">
        <xsl:value-of select="@id"/>
      </xsl:attribute>
      <xsl:attribute name="rend">
        <xsl:value-of select="@role"/>
      </xsl:attribute>
      <xsl:apply-templates/>
    </bibl>
  </xsl:template>

  <xsl:template match="bibliomixed[@role='multixref']">
    <bibl rend="multixref">
      <xsl:apply-templates select="bibliomset[@relation='endtermtarget']" mode="endtermtarget"/>
    </bibl>
  </xsl:template>

  <xsl:template match="bibliomset" mode="endtermtarget">
    <seg type="endtermtarget">
      <xsl:attribute name="id">
        <xsl:value-of select="@id"/>
      </xsl:attribute>
      <xsl:apply-templates/>
    </seg>
  </xsl:template>

  <xsl:template match="bibliomset[@id]">
    <seg>
      <xsl:attribute name="type">
        <xsl:value-of select="@role"/>
      </xsl:attribute>
      <xsl:attribute name="id">
        <xsl:value-of select="@id"/>
      </xsl:attribute>
      <xsl:apply-templates/>
    </seg>
  </xsl:template>

  <!-- userdef, misc, link, notes -->
  <xsl:template match="bibliomset[@role]">
    <seg>
      <xsl:attribute name="type">
        <xsl:value-of select="@role"/>
      </xsl:attribute>
      <xsl:attribute name="id">
        <xsl:value-of select="@id"/>
      </xsl:attribute>
      <xsl:apply-templates/>
    </seg>
  </xsl:template>

  <xsl:template match="bibliomset[@relation]">
    <xsl:choose>
      <xsl:when test="@relation='author'">
        <persName type="author">
          <xsl:apply-templates/>
        </persName>
      </xsl:when>
      <xsl:when test="@relation='editor'">
        <persName type="editor">
          <xsl:apply-templates/>
        </persName>
      </xsl:when>
      <xsl:when test="@relation='seditor'">
        <persName type="seditor">
          <xsl:apply-templates/>
        </persName>
      </xsl:when>
      <xsl:when test="@relation='etal'">
        <seg type="etal"><xsl:apply-templates/></seg>
      </xsl:when>
      <xsl:when test="@relation='article'">
        <seg type="article"><xsl:apply-templates/></seg>
      </xsl:when>
      <xsl:when test="@relation='book'">
        <seg type="book"><xsl:apply-templates/></seg>
      </xsl:when>
      <xsl:when test="@relation='intext'">
        <seg type="intext"><xsl:apply-templates/></seg>
      </xsl:when>
      <xsl:when test="@relation='journal'">
        <seg type="journal"><xsl:apply-templates/></seg>
      </xsl:when>
      <xsl:when test="@relation='endtermtarget'">
        <seg type="intext"><xsl:apply-templates/></seg>
      </xsl:when>
    </xsl:choose>
  </xsl:template>

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

  <xsl:template match="firstname">
    <foreName><xsl:apply-templates/></foreName>
  </xsl:template>

  <xsl:template match="othername">
    <name type="othername"><xsl:apply-templates/></name>
  </xsl:template>

  <xsl:template match="lineage">
    <name type="lineage"><xsl:apply-templates/></name>
  </xsl:template>

  <xsl:template match="pagenums">
    <seg type="pages"><xsl:apply-templates/></seg>
  </xsl:template>

  <xsl:template match="volumenum">
    <seg type="volume"><xsl:apply-templates/></seg>
  </xsl:template>

  <xsl:template match="issuenum">
    <seg type="issue"><xsl:apply-templates/></seg>
  </xsl:template>

  <xsl:template match="issn">
    <seg type="issn"><xsl:apply-templates/></seg>
  </xsl:template>

  <xsl:template match="isbn">
    <seg type="isbn"><xsl:apply-templates/></seg>
  </xsl:template>

  <xsl:template match="ulink">
    <seg type="ulink"><xsl:apply-templates/></seg>
  </xsl:template>

  <xsl:template match="abbrev">
    <abbr><xsl:apply-templates/></abbr>
  </xsl:template>

  <xsl:template match="abstract">
    <note type="abstract"><xsl:apply-templates/></note>
  </xsl:template>

  <xsl:template match="publishername">
    <publisher><xsl:apply-templates/></publisher>
  </xsl:template>

  <xsl:template match="address">
    <address><name><xsl:apply-templates/></name></address>
  </xsl:template>

  <xsl:template match="address/city">
    <pubPlace><xsl:apply-templates/></pubPlace>
  </xsl:template>

  <xsl:template match="title[@role]">
    <title>
      <xsl:attribute name="level">
        <xsl:choose>
          <xsl:when test="@role='JOUR'">
            <xsl:text>a</xsl:text>
          </xsl:when>
        </xsl:choose>
        <xsl:choose>
          <xsl:when test="@role='BOOK'">
            <xsl:text>m</xsl:text>
          </xsl:when>
        </xsl:choose>
        <xsl:choose>
          <xsl:when test="@role='CHAP'">
            <xsl:text>a</xsl:text>
          </xsl:when>
        </xsl:choose>
        <xsl:choose>
          <xsl:when test="@role='SERIES'">
            <xsl:text>s</xsl:text>
          </xsl:when>
        </xsl:choose>
      </xsl:attribute>
      <xsl:apply-templates/>
    </title>
  </xsl:template>

  <xsl:template match="bibliomset[@relation='journal']/title">
    <title level="j">
      <xsl:apply-templates/>
    </title>
  </xsl:template>

  <xsl:template match="pubdate">
    <date>
      <xsl:attribute name="rend">
        <xsl:value-of select="@role"/>
      </xsl:attribute>
      <xsl:apply-templates/>
    </date>
  </xsl:template>

</xsl:stylesheet>