This file is indexed.

/usr/share/digikam/themes/dateframes/template.xsl is in digikam-data 4:5.6.0-0ubuntu10.

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
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE stylesheet [
<!ENTITY raquo "&#187;" >
<!ENTITY blank "&#160;" >
]>

<xsl:transform version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:exsl="http://exslt.org/common"
	xmlns:dt="http://xsltsl.org/date-time"
	extension-element-prefixes="exsl">

	<xsl:import href="http://xsltsl.sourceforge.net/modules/date-time.xsl"/>

<!-- ********************************************************************* -->
<!-- ** Create single image page for each image                         ** -->
<!-- ********************************************************************* -->
<xsl:template name="createImagePage">
	<xsl:param name="prevPic"/>
	<xsl:param name="nextPic"/>
	<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title><xsl:value-of select="title"/></title>
		<link rel="stylesheet" type="text/css" href="../dateframes/style.css"/>
	</head>
	<body id="imagePage">
		<!-- Add Previous/Next Links --> 
		<xsl:if test="string($prevPic)">
			<a href="{$prevPic}.html">
				<xsl:value-of select="$i18nPrevious"/>
			</a>
		</xsl:if>
		<xsl:if test="string($prevPic) and string($nextPic)">
			|
		</xsl:if>
		<xsl:if test="string($nextPic)">
			<a href="{$nextPic}.html"> 
				<xsl:value-of select="$i18nNext"/>
			</a>
		</xsl:if>
		<br/>
		
		<!-- Draw the picture --> 
		<img src="{full/@fileName}" width="{full/@width}" height="{full/@height}" />
		<br/>

		<!-- Add Previous/Next Links --> 
		<xsl:if test="string($prevPic)">
			<a href="{$prevPic}.html">
				<xsl:value-of select="$i18nPrevious"/>
			</a>
		</xsl:if>
		<xsl:if test="string($prevPic) and string($nextPic)">
			|
		</xsl:if>
		<xsl:if test="string($nextPic)">
			<a href="{$nextPic}.html"> 
				<xsl:value-of select="$i18nNext"/>
			</a>
		</xsl:if>
		<br/>


		<!-- Add Original File Link, if present --> 
		<xsl:if test="original/@fileName != ''">
			<p>
			<a href="{original/@fileName}"><xsl:value-of select="$i18nOriginalImage"/></a>
			(<xsl:value-of select="original/@width"/>x<xsl:value-of select="original/@height"/>)
			</p>
		</xsl:if>

		<!-- Add Caption and Date-->
		<div id="caption">
			<xsl:value-of select="description"/> 
			<br/>
			<xsl:call-template name="dt:format-date-time">
				<xsl:with-param name="xsd-date-time" select="date"/>
				<xsl:with-param name="format" select="$longformat"/>
			</xsl:call-template>
			<br/>
		</div>
	</body>
	</html>
</xsl:template>

<!-- ********************************************************************* -->
<!-- ** Create thumbnail page for each collection                       ** -->
<!-- ********************************************************************* -->
<xsl:template name="createThumbnailPage">
	<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title><xsl:value-of select="name"/></title>
		<link rel="stylesheet" type="text/css" href="dateframes/style.css"/>
	</head>
		<h1>
		<span>
			<xsl:value-of select="name"/>
		</span>
		</h1>

	<body id="collectionPage">
	<div id="comment">
		<xsl:value-of select="comment"/><br/>
	</div>
	<ul>
			<xsl:variable name="folder" select='fileName'/>
			<xsl:for-each select="image">
				<xsl:variable name="cur" select="position()"/>
				<li>
					<a href="{$folder}/{full/@fileName}.html" target="image">
						<img src="{$folder}/{thumbnail/@fileName}" width="{thumbnail/@width}" height="{thumbnail/@height}"/>
					</a><br/>
					<xsl:call-template name="dt:format-date-time">
                        			<xsl:with-param name="xsd-date-time" select="date"/>
                        			<xsl:with-param name="format" select="$shortformat"/>
					</xsl:call-template>
					<br/>
				</li>
				<exsl:document href='{$folder}/{full/@fileName}.html'>
					<xsl:call-template name="createImagePage">
						<xsl:with-param name="prevPic" select="preceding-sibling::*[1]/full/@fileName"/>
						<xsl:with-param name="nextPic" select="following-sibling::*[1]/full/@fileName"/>
					</xsl:call-template>
				</exsl:document>
			</xsl:for-each>
	</ul>
	</body>
	</html>
</xsl:template>


<!-- ********************************************************************* -->
<!-- ** Create the collection index page when more than one collection  ** -->
<!-- ********************************************************************* -->
<xsl:template name="createCollectionIndexPage">
	<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title><xsl:value-of select="$i18nCollectionList"/></title>
		<link rel="stylesheet" type="text/css" href="dateframes/style.css"/>
	</head>
	<body id="collectPage">
			<xsl:for-each select="collections/collection">
					<xsl:sort select="name" order="ascending" data-type="text" />
					&blank;
					<a href="Thmbs{fileName}.html" target="mythmbs">
						<xsl:value-of select="name"/>

					</a>
					<xsl:for-each select="image">
						<xsl:choose>
							<xsl:when test="position()=last()">
								(<xsl:value-of select="position()"/>)
							</xsl:when>
						</xsl:choose>
					</xsl:for-each>
					<exsl:document href="Thmbs{fileName}.html">
						<xsl:call-template name="createThumbnailPage"/>
					</exsl:document>
				
			</xsl:for-each>
	</body>
	</html>
	
</xsl:template>

<!-- ********************************************************************* -->
<!-- ** Create the frameset page			                ** -->
<!-- ********************************************************************* -->
<xsl:template name="createCollectionFrameSetPage">
<!-- ** create variable tsize for the width of the thumbnails frame            ** -->
<!-- ** add 10 pixel to tsize for the border around the thumbnail              ** -->
	<xsl:variable name="tsize" select="3*(collections/collection[1]/image[1]/thumbnail/@width + 18) + 65"/>
	<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

		<title>
		<xsl:value-of select="name"/>
		</title>
		<link rel="stylesheet" type="text/css" href="dateframes/style.css"/>
	</head>
	<frameset rows="40,*" noresize="1" border="0">
		<frame src="collect.html" name="collection"/>
		<frameset cols="{$tsize},*" noresize="1" border="0">
			<frame src="blank.html" name="mythmbs"/>
			<frame src="intro.html" name="image"/>
		</frameset>
	</frameset>
	</html>
	<exsl:document href="collect.html">
		<xsl:call-template name="createCollectionIndexPage"/>
	</exsl:document>
</xsl:template>

<!-- ********************************************************************* -->
<!-- ** Create a blank page                                             ** -->
<!-- ** as a starting page when more than one collection is used        ** -->
<!-- ********************************************************************* -->
<xsl:template name="createBlankPage">
	<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

		<title>
		<xsl:value-of select="name"/>
		</title>
		<link rel="stylesheet" type="text/css" href="dateframes/style.css"/>
	</head>
	<body id="blankPage">
		<xsl:value-of select="title"/>
	</body>

	</html>
</xsl:template>

<!-- ********************************************************************* -->
<!-- ** Create the intro page                                           ** -->
<!-- ********************************************************************* -->
<xsl:template name="createIntroPage">
	<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

		<title>
		<xsl:value-of select="name"/>
		</title>
		<link rel="stylesheet" type="text/css" href="dateframes/style.css"/>
	</head>
	<body id="intro">
		<xsl:value-of select="$intro"/>
	</body>

	</html>
</xsl:template>


<!-- ********************************************************************* -->
<!-- ** Create css style sheet                                       ** -->
<!-- ********************************************************************* -->
<xsl:template name="createStyleSheet">
body {
	background-color: <xsl:value-of select="$color1"/>; /*background behind thumbnails, outside boxes*/
    	color: <xsl:value-of select="$color2"/>; /*default text color*/
    	font-size: 14pt;
    	text-align: center;
    	font-family: Bitstream Vera Serif, serif;
    	margin: 0in;
    	padding: 0in;
}

a { /*links (album titles)*/
    	color: #FFFFFF; 
    	text-decoration: none;
}

a:hover { /*links when mouse is over them (album titles)*/
    	color: #5555FF;
	text-decoration: underline;
}

h1 { /*album title above thumbnails*/
	padding-top: 0.1em;
	color: <xsl:value-of select="$color2"/>; 
	font-size: 14pt;
	text-align: center;
}

/* Collection page */
#collectionPage {
	background-color: <xsl:value-of select="$color1"/>;
	color: <xsl:value-of select="$color2"/>; 
	padding-left: 2%;
	text-align: center;
	width: 95%;
}

#comment {
	width: 95%;
	text-align: center;
}

#collectionPage h1 {
	margin-top: 12px;
} 

#collectionPage ul { /*affects list of thumbnails*/
	padding: 0;
}

#collectionPage li { /*affects stuff in boxes with thumbnails*/
        display: block;
        float: left;
        margin-left: 6px;
	margin-top: 6px;
	padding: 5px;
	color: <xsl:value-of select="$color1"/>;
	font-size: 8pt;
	background-color: <xsl:value-of select="$color2"/>;
	border: 1px solid #000000;
}

/* Blank Page */
#blankPage {
	background-color: <xsl:value-of select="$color1"/>;
}

#intro {
	padding: 10%;
	background-color: <xsl:value-of select="$color2"/>;
	color: <xsl:value-of select="$color1"/>;
	font-size: 16pt;
	text-align: center;
}

/*  Collect Page */
#collectPage { /*album titles at top*/
    	background-color: <xsl:value-of select="$color3"/>;
	font-size: 12pt;
	padding-top: 0.5em;
	margin: 0 auto;
	width: 95%;
    	color: #AAAAAA; /*number of pics in collection*/
	text-align: center;
}


/* Image page */
#imagePage {
	padding:.5em;
	background-color:<xsl:value-of select="$color2"/>; /*background color behind the big image*/
	text-align: center;
	color: <xsl:value-of select="$color1"/>; 
}


#caption { /*caption below photo*/
	padding-bottom:1em;
	padding-top:1em;
	color: <xsl:value-of select="$color1"/>;
	font-size: 16pt;
}

#imagePage img {
	border: 1px solid #CECECE; /*border around picture*/
}

#imagePage a { /*links*/
    	color: <xsl:value-of select="$color1"/>; 
    	text-decoration: none;
}

#imagePage a:hover { /*links when mouse is over them*/
    	color: <xsl:value-of select="$color1"/>;
	text-decoration: underline;
}

	
</xsl:template>

<!-- ********************************************************************* -->
<!-- ** the beginning of all                                            ** -->
<!-- ********************************************************************* -->
<xsl:template match="/">
	<xsl:call-template name="createCollectionFrameSetPage"/>
	<exsl:document href="blank.html">
		<xsl:call-template name="createBlankPage"/>
	</exsl:document>
	<exsl:document href="intro.html">
		<xsl:call-template name="createIntroPage"/>
	</exsl:document>
	<exsl:document href="dateframes/style.css">
		<xsl:call-template name="createStyleSheet"/>
	</exsl:document>
</xsl:template>

</xsl:transform>