Project

General

Profile

1
<RESOURCE_PROFILE>
2
	<HEADER>
3
		<RESOURCE_IDENTIFIER
4
			value="33e8cc88-3b4a-4a68-b332-7cae8baad8dc_VHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZXMvVHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZVR5cGU=" />
5
		<RESOURCE_TYPE value="TransformationRuleDSResourceType" />
6
		<RESOURCE_KIND value="TransformationRuleDSResources" />
7
		<RESOURCE_URI value="" />
8
		<DATE_OF_CREATION value="2014-07-17T10:41:08+02:00" />
9
	</HEADER>
10
	<BODY>
11
		<CONFIGURATION>
12
			<IMPORTED />
13
			<SCRIPT>
14
				<TITLE>XSLT transform from epidoc to eagle (new)</TITLE>
15
				<CODE><![CDATA[
16
<xsl:stylesheet version="2.0"
17
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dnet="eu.dnetlib.miscutils.functional.xml.DnetXsltFunctions"
18
	xmlns:utils="eu.dnetlib.miscutils.datetime.DateUtils" xmlns:tei="http://www.tei-c.org/ns/1.0"
19
	xmlns:dri="http://www.driver-repository.eu/namespace/dri"
20
	exclude-result-prefixes="xsl tei dnet utils">
21

    
22
	<xsl:output indent="yes" encoding="UTF-8"/>
23

    
24
	<xsl:param name="varOfficialName" />
25
	<xsl:variable name="REPO_ACRONYM" select="//*[local-name()='datasourceprefix']" />
26
	<xsl:variable name="REPO_ID" select="//*[local-name()='repositoryId']" />
27
	<xsl:variable name="ORIG_OBJ_ID" select="//*[local-name()='objIdentifier']" />
28

    
29
	<xsl:variable name="NOW" select="utils:now_ISO8601()" />
30

    
31
	<xsl:variable name="LANG" select="normalize-space(//tei:TEI/@*[local-name()='lang'])" />
32
	<xsl:variable name="LANDING_PAGE" select="normalize-space(//tei:idno[@type='uri' or @type='URI'][text() != ''])" />
33
	<xsl:variable name="LOCAL_ID" select="normalize-space(//tei:idno[@type='localID'][text() != ''])" />
34
	<xsl:variable name="LOCAL_ID_MD5" select="dnet:md5($LOCAL_ID)" />
35
	<xsl:variable name="TM_ID" select="normalize-space(//tei:publicationStmt/tei:idno[@type='TM_id' or @type='TM'])" />
36
	<xsl:variable name="DATE_EDITED" select="normalize-space(//tei:change[1]/@when)[1]" />
37
	<xsl:variable name="METADATA_EDITOR" select="normalize-space(//tei:change[1]/@who)[1]" />
38
	<xsl:variable name="IPR_URL" select="normalize-space(//tei:licence/@target)" />
39
	<xsl:variable name="IPR_STATEMENT" select="normalize-space(//tei:licence)" />
40
	<xsl:variable name="TITLE" select="normalize-space(//tei:titleStmt/tei:title)" />
41
	<xsl:variable name="DESCRIPTION" select="//tei:support/tei:p" />
42
	
43
	<xsl:template match="/">
44
		<package>
45
			<!-- ARTIFACT -->
46
			<record>
47
				<header>
48
					<dri:objIdentifier>
49
						<xsl:value-of select="concat($ORIG_OBJ_ID, '_artifact')" />
50
					</dri:objIdentifier>
51
					<dri:dateOfCollection>
52
						<xsl:value-of select="$NOW" />
53
					</dri:dateOfCollection>
54
					<dri:repositoryId>
55
						<xsl:value-of select="$REPO_ID" />
56
					</dri:repositoryId>
57
					<xsl:call-template name="headerProvenance" />
58
				</header>
59
				<metadata>
60
					<eagleObject>
61
						<xsl:call-template name="idsTemplate">
62
							<xsl:with-param name="postfix">artifact</xsl:with-param>
63
						</xsl:call-template>
64
						<xsl:call-template name="commonPropertiesTemplate" />
65
						<entityType>artifact</entityType>
66
						<artifact>
67
							<artifactType>inscription</artifactType>
68
							<xsl:call-template name="objectTypeTemplate" />
69
							<xsl:call-template name="materialTemplate" />
70
							<xsl:for-each select="//tei:support//tei:dimensions">
71
								<dimensions unit="{normalize-space(concat(./@unit,./tei:width/@unit))}">
72
									<width>
73
										<xsl:value-of select="./tei:width" />
74
									</width>
75
									<height>
76
										<xsl:value-of select="./tei:height" />
77
									</height>
78
									<depth>
79
										<xsl:value-of select="./tei:depth" />
80
									</depth>
81
								</dimensions>
82
							</xsl:for-each>
83
							<xsl:for-each select="//tei:support/tei:rs[@type='decoration']">
84
								<decoration uri="{normalize-space(./@ref)}">
85
									<xsl:value-of select="lower-case(normalize-space(.))" />
86
								</decoration>
87
							</xsl:for-each>
88
							<stateOfPreservation uri="{normalize-space(//tei:support/tei:rs[@type='statPreserv']/@ref)}">
89
								<xsl:value-of select="lower-case(normalize-space(//tei:support/tei:rs[@type='statPreserv']))" />
90
							</stateOfPreservation>
91
							<xsl:call-template name="originDatingTemplate" />
92
							<yearOfFinding>
93
								<xsl:value-of select="normalize-space(//tei:provenance/tei:date/@when)" />
94
							</yearOfFinding>
95
							<xsl:call-template name="findingSpotTemplate" />
96
							<xsl:call-template name="conservationPlaceTemplate"></xsl:call-template>
97
							<xsl:for-each select="//tei:facsimile/tei:graphic">
98
								<xsl:call-template name="hasVisualRepresentationTemplate">
99
									<xsl:with-param name="url" select="./@url" />
100
									<xsl:with-param name="url_md5" select="dnet:md5(./@url)" />
101
								</xsl:call-template>
102
							</xsl:for-each>
103
							<!-- ARTIFACT+INSCRIPTION -->
104
							<inscription>
105
								<xsl:call-template name="tmTemplate" />
106
								<xsl:call-template name="inscriptionTypeTemplate" />
107
								<engravingTechnique uri="{normalize-space(//tei:rs[@type='execution'][1]/@ref)}">
108
									<xsl:value-of select="lower-case(normalize-space(//tei:rs[@type='execution'][1]))" />
109
								</engravingTechnique>
110
								<metre>
111
									<xsl:value-of select="lower-case(normalize-space(//tei:rs[@type='metre']))" />
112
								</metre>
113
								<xsl:for-each select="//tei:layout/tei:dimensions">
114
									<fieldSize unit="{./tei:width/@unit}">
115
										<width><xsl:value-of select="normalize-space(./tei:width)" /></width>
116
										<height><xsl:value-of select="normalize-space(./tei:height)" /></height>
117
									</fieldSize>
118
								</xsl:for-each>
119
								<paleographicCharacteristics>
120
									<xsl:value-of select="//tei:handDesc/tei:handNote//text()"/>
121
								</paleographicCharacteristics>
122
								
123
								<xsl:for-each select="//tei:physDesc/tei:handDesc/tei:handNote/tei:height">
124
									<letterSize unit="{./@unit}" min="{normalize-space(./@*[local-name()='min' or local-name()='atLeast'])}" max="{normalize-space(./@*[local-name()='max' or local-name()='atMost'])}">
125
										<xsl:value-of select="normalize-space(.)" />
126
									</letterSize>
127
								</xsl:for-each>
128
								
129
								<honorand socialStatus="unknown">unknown</honorand>
130
								
131
<!-- 								Properties down here are not present in EpiDoc. Can be initialized only for STARC metadata-->
132
<!-- 								<inscriptionAuthor>inscriptionAuthor0</inscriptionAuthor> -->
133
<!-- 								<dedicator>dedicator0</dedicator> -->
134
<!-- 								<namesMentioned>namesMentioned0</namesMentioned> -->
135
<!-- 								<relatedEvent>relatedEvent0</relatedEvent> -->
136
<!-- 								<placesMentioned>placesMentioned0</placesMentioned> -->
137
<!-- 								<restorationInfo>restorationInfo0</restorationInfo> -->
138
<!-- 								<doubleSided>doubleSided0</doubleSided> -->
139
<!-- 								<erasures>erasures0</erasures> -->
140
<!-- 								<spellingErrors>spellingErrors0</spellingErrors> -->
141
								
142
								<xsl:call-template name="hasTranscriptionTemplate" />
143
							</inscription>
144
						</artifact>
145
					</eagleObject>
146
				</metadata>
147
			</record>
148
			
149
			<!-- TRANSCRIPTION -->
150
			<record>
151
				<header>
152
					<dri:objIdentifier>
153
						<xsl:value-of select="concat($ORIG_OBJ_ID, '_transcription')" />
154
					</dri:objIdentifier>
155
					<dri:dateOfCollection>
156
						<xsl:value-of select="$NOW" />
157
					</dri:dateOfCollection>
158
					<dri:repositoryId>
159
						<xsl:value-of select="$REPO_ID" />
160
					</dri:repositoryId>
161
					<xsl:call-template name="headerProvenance" />
162
				</header>
163
				<metadata>
164
					<eagleObject>
165
						<xsl:call-template name="idsTemplate">
166
							<xsl:with-param name="postfix">transcription</xsl:with-param>
167
						</xsl:call-template>
168
						<xsl:call-template name="commonPropertiesTemplate" />
169
						<entityType>documental</entityType>
170
						<documentalManifestation>
171
							<documentType>transcription</documentType>
172
							<xsl:call-template name="hasArtifactTemplate" />
173
							<xsl:for-each select="//tei:facsimile/tei:graphic">
174
								<xsl:call-template name="hasVisualRepresentationTemplate">
175
									<xsl:with-param name="url" select="./@url" />
176
									<xsl:with-param name="url_md5" select="dnet:md5(./@url)" />
177
								</xsl:call-template>
178
							</xsl:for-each>
179
						    <transcription>
180
						        <xsl:call-template name="textsTemplate" />
181
						        <criticalApparatus>
182
									<!-- <xsl:value-of select="normalize-space(//tei:text/tei:body/tei:div[@type='apparatus']/tei:p)" /> -->
183
									<xsl:value-of select="//tei:text/tei:body/tei:div[@type='apparatus']/tei:p" />
184
						        </criticalApparatus>
185
						        <xsl:call-template name="bibliographyTemplate" />
186
						        <commentary>
187
						        	<xsl:value-of select="//tei:text/tei:body/tei:div[@type='commentary']/tei:p//text()" />
188
						        </commentary>
189
						    </transcription>
190
						</documentalManifestation>
191
					</eagleObject>
192
				</metadata>
193
			</record>
194
			
195
			<!-- VISUAL REPRESENTATION -->
196
			<xsl:for-each select="//tei:facsimile/tei:graphic">
197
				<xsl:variable name="URL" select="./@url" />
198
				<xsl:variable name="URL_MD5" select="dnet:md5($URL)" />
199
				<record>
200
					<header>
201
						<dri:objIdentifier>
202
							<xsl:value-of select="concat($ORIG_OBJ_ID, '_', $URL_MD5, '_visual')" />
203
						</dri:objIdentifier>
204
						<dri:dateOfCollection>
205
							<xsl:value-of select="$NOW" />
206
						</dri:dateOfCollection>
207
						<dri:repositoryId>
208
							<xsl:value-of select="$REPO_ID" />
209
						</dri:repositoryId>
210
						<xsl:call-template name="headerProvenance" />
211
					</header>
212
					<metadata>
213
						<eagleObject>
214
							<xsl:call-template name="idsTemplate">
215
								<xsl:with-param name="postfix">
216
									<xsl:value-of select="concat($URL_MD5, '::visual')" />
217
								</xsl:with-param>
218
							</xsl:call-template>
219
							<xsl:call-template name="commonPropertiesTemplate" />
220
							<entityType>visual</entityType>
221
							<visualRepresentation>
222
							    <url><xsl:value-of select="$URL" /></url>
223
							    <thumbnail><xsl:value-of select="$URL" /></thumbnail>
224
								<visualRepresentationIpr uri="{normalize-space(./tei:desc/tei:ref/@target)}">
225
									<xsl:value-of select="normalize-space(./tei:desc/tei:ref)" />
226
							    </visualRepresentationIpr>
227
							    <xsl:call-template name="hasArtifactTemplate" />
228
								<xsl:call-template name="hasTranscriptionTemplate" />
229
								
230
<!-- 							    These properties down here cannot be initialized for epidoc -->
231
<!-- 							    <representationType>???</representationType> -->
232
<!-- 							    <author>author0</author> -->
233
<!-- 							    <creationDate>creationDate0</creationDate> -->
234
<!-- 							    <quality>quality0</quality> -->
235
<!-- 							    <format>format0</format> -->
236
<!-- 							    <info3D> -->
237
<!-- 							        <acquisitionTechnology>acquisitionTechnology0</acquisitionTechnology> -->
238
<!-- 							        <processingInfo>processingInfo0</processingInfo> -->
239
<!-- 							        <horizontalResolution>horizontalResolution0</horizontalResolution> -->
240
<!-- 							        <verticalResolution>verticalResolution0</verticalResolution> -->
241
<!-- 							        <modelDimensions unit="unit1"> -->
242
<!-- 							            <width>0</width> -->
243
<!-- 							            <height>0</height> -->
244
<!-- 							            <depth>0</depth> -->
245
<!-- 							        </modelDimensions> -->
246
<!-- 							        <modelArea>modelArea0</modelArea> -->
247
<!-- 							        <modelPerimeter>modelPerimeter0</modelPerimeter> -->
248
<!-- 							    </info3D> -->
249
<!-- 							    <infoVideo> -->
250
<!-- 							        <duration>duration0</duration> -->
251
<!-- 							        <resolution>resolution0</resolution> -->
252
<!-- 							        <rate>rate0</rate> -->
253
<!-- 							    </infoVideo> -->
254
								
255
							</visualRepresentation>
256
						</eagleObject>
257
					</metadata>
258
				</record>
259
			</xsl:for-each>
260
		</package>
261
	</xsl:template>
262
	
263
	<!-- ####################### -->
264
	<!-- # RECURRING TEMPLATES # -->
265
	<!-- ####################### -->
266
	<xsl:template name="idsTemplate">
267
		<xsl:param name="postfix" required="yes"/>
268
		<dnetResourceIdentifier>
269
			<xsl:value-of select="concat($REPO_ACRONYM, '::', $LOCAL_ID_MD5, '::', $postfix)" />
270
		</dnetResourceIdentifier>
271
		<recordSourceInfo providerName="{$varOfficialName}" providerAcronym="{$REPO_ACRONYM}" landingPage="{$LANDING_PAGE}">
272
			<xsl:value-of select="$LOCAL_ID" />
273
		</recordSourceInfo>
274
	</xsl:template>
275
	
276
	<xsl:template name="commonPropertiesTemplate">
277
		<editingInfo>
278
			<dateEdited>
279
				<xsl:value-of select="$DATE_EDITED" />
280
			</dateEdited>
281
			<metadataEditor>
282
				<xsl:value-of select="$METADATA_EDITOR" />
283
			</metadataEditor>
284
		</editingInfo>
285
		<metadataIpr uri="{$IPR_URL}">
286
			<xsl:value-of select="$IPR_STATEMENT" />
287
		</metadataIpr>
288
		<title lang="{$LANG}">
289
			<xsl:value-of select="$TITLE" />
290
		</title>
291
		<description lang="{$LANG}">
292
			<xsl:value-of select="$DESCRIPTION" />
293
		</description>
294
	</xsl:template>
295
	
296
	<xsl:template name="textsTemplate">
297
		<textEpidoc lang="{//*[local-name()='div' and @type='edition']/@*[local-name()='lang']}">
298
			<xsl:copy-of copy-namespaces="no" select="//*[local-name()='div' and @type='edition']/node()[name() != 'head']" />
299
		</textEpidoc>
300
		<text lang="{//*[local-name()='div'][@id='edition']/@*[local-name()='lang']}">
301
			<xsl:copy-of copy-namespaces="no" select="//*[local-name()='eagleinlinetext']/text()" />			
302
		</text>
303
		<textHtml lang="{//*[local-name()='div'][@id='edition']/@*[local-name()='lang']}">
304
			<xsl:copy-of copy-namespaces="no" select="//*[local-name()='div' and @id='edition']/node()[name() != 'h3']" />
305
		</textHtml>
306
	</xsl:template>
307
	
308
	<xsl:template name="tmTemplate">
309
		<hasTmId>
310
			<tmId>
311
				<xsl:choose>
312
					<xsl:when test="$TM_ID != ''">
313
						<xsl:value-of select="$TM_ID" />
314
					</xsl:when>
315
					<xsl:otherwise>
316
						<xsl:value-of select="concat('n/a_', $REPO_ACRONYM, '::', $LOCAL_ID_MD5)" />
317
					</xsl:otherwise>
318
				</xsl:choose>
319
			</tmId>
320
		</hasTmId>
321
	</xsl:template>
322
	
323
	<xsl:template name="originDatingTemplate">
324
		<xsl:variable name="actualNotBefore">
325
			<xsl:choose>
326
				<xsl:when test="//tei:origDate/@notBefore-custom">
327
					<xsl:value-of select="//tei:origDate/@notBefore-custom"/>
328
				</xsl:when>
329
				<xsl:otherwise>
330
					<xsl:value-of select="//tei:origDate/@notBefore"/>
331
				</xsl:otherwise>
332
			</xsl:choose>
333
		</xsl:variable>
334
		<xsl:variable name="actualNotAfter">
335
			<xsl:choose>
336
				<xsl:when test="//tei:origDate/@notAfter-custom">
337
					<xsl:value-of select="//tei:origDate/@notAfter-custom"/>
338
				</xsl:when>
339
				<xsl:otherwise>
340
					<xsl:value-of select="//tei:origDate/@notAfter"/>
341
				</xsl:otherwise>
342
			</xsl:choose>
343
		</xsl:variable>
344
		<originDating notBefore="{$actualNotBefore}" notAfter="{$actualNotAfter}" datingMethod="{//tei:origDate/@datingMethod}" evidence="{//tei:origDate/@evidence}" period="{//tei:origDate/@period}">
345
			<xsl:value-of select="//tei:origDate" />
346
		</originDating>
347
	</xsl:template>
348
	
349
	<xsl:template name="inscriptionTypeTemplate">
350
		<xsl:choose>
351
			<xsl:when test="//tei:keywords/tei:term">
352
				<xsl:for-each select="//tei:keywords/tei:term">
353
					<inscriptionType uri="{normalize-space(./@ref)}">
354
						<xsl:value-of select="lower-case(normalize-space(.))" />
355
					</inscriptionType>
356
				</xsl:for-each>
357
			</xsl:when>
358
			<xsl:otherwise>
359
				<inscriptionType uri="http://www.eagle-network.eu/voc/typeins/lod/143">unknown</inscriptionType>
360
			</xsl:otherwise>
361
		</xsl:choose>
362
		
363
	</xsl:template>
364
	
365
	<xsl:template name="materialTemplate">
366
		<xsl:choose>
367
			<xsl:when test="//tei:material">
368
				<xsl:for-each select="//tei:material">
369
					<material uri="{normalize-space(./@ref)}">
370
						<xsl:value-of select="lower-case(normalize-space(.))" />
371
					</material>
372
				</xsl:for-each>
373
			</xsl:when>
374
			<xsl:otherwise>
375
				<material uri="http://www.eagle-network.eu/voc/material/lod/138">unknown</material>
376
			</xsl:otherwise>
377
		</xsl:choose>
378
	</xsl:template>
379
	
380
	<xsl:template name="objectTypeTemplate">
381
		<xsl:choose>
382
			<xsl:when test="tei:objectType">
383
				<xsl:for-each select="//tei:objectType">
384
					<objectType uri="{normalize-space(./@ref)}">
385
						<xsl:value-of select="lower-case(normalize-space(.))" />
386
					</objectType>
387
				</xsl:for-each>
388
			</xsl:when>
389
			<xsl:otherwise>
390
				<objectType uri="http://www.eagle-network.eu/voc/objtyp/lod/2">unknown</objectType>
391
			</xsl:otherwise>
392
		</xsl:choose>
393
		
394
	</xsl:template>
395
	
396
	<xsl:template name="findingSpotTemplate">
397
		<findingSpot>
398
			<romanProvinceItalicRegion uri="{//tei:origPlace/tei:placeName[@type='provinceItalicRegion']/@ref}">
399
				<xsl:value-of select="//tei:origPlace/tei:placeName[@type='provinceItalicRegion']" />
400
			</romanProvinceItalicRegion>
401
			<ancientFindSpot uri="{//tei:origPlace/tei:placeName[not(@type)]/@ref}">
402
				<xsl:value-of select="//tei:origPlace/tei:placeName[not(@type)]" />
403
			</ancientFindSpot>
404
			<modernFindSpot uri="{//tei:provenance[@type='found']/tei:placeName[not(@type)]/@ref}">
405
				<xsl:value-of select="//tei:provenance[@type='found']/tei:placeName[not(@type)]" />
406
			</modernFindSpot>
407
			<modernCountry uri="{//tei:provenance[@type='found']/tei:placeName[@type='modernCountry']/@ref}">
408
				<xsl:value-of select="//tei:provenance[@type='found']/tei:placeName[@type='modernCountry']" />
409
			</modernCountry>
410
			<modernRegion uri="{//tei:provenance[@type='found']/tei:placeName[@type='modernRegion']/@ref}">
411
				<xsl:value-of select="//tei:provenance[@type='found']/tei:placeName[@type='modernRegion']" />
412
			</modernRegion>
413
			<modernProvince uri="{//tei:provenance[@type='found']/tei:placeName[@type='modernProvince']/@ref}">
414
				<xsl:value-of select="//tei:provenance[@type='found']/tei:placeName[@type='modernProvince']" />
415
			</modernProvince>
416
		</findingSpot>
417
	</xsl:template>
418
	
419
	<xsl:template name="conservationPlaceTemplate">
420
		<conservationPlace>
421
			<conservationCountry uri="{//tei:msIdentifier/tei:country/tei:placeName/@ref}">
422
				<xsl:value-of select="//tei:msIdentifier/tei:country/tei:placeName" />
423
			</conservationCountry>
424
			<conservationRegion uri="{//tei:msIdentifier/tei:region/tei:placeName/@ref}">
425
				<xsl:value-of select="//tei:msIdentifier/tei:region/tei:placeName" />
426
			</conservationRegion>
427
			<conservationCity uri="{//tei:msIdentifier/tei:settlement/tei:placeName/@ref}">
428
				<xsl:value-of select="//tei:msIdentifier/tei:settlement/tei:placeName" />
429
			</conservationCity>
430
			<museum uri="{//tei:msIdentifier/tei:repository/@ref}">
431
				<xsl:value-of select="//tei:msIdentifier/tei:repository" />
432
			</museum>
433
			<position>
434
				<xsl:value-of select="//tei:msIdentifier/tei:collection" />
435
			</position>
436
			<inventoryNumber>
437
				<xsl:value-of select="//tei:msIdentifier/tei:idno" />
438
			</inventoryNumber>
439
		</conservationPlace>
440
	</xsl:template>
441
	
442
	<xsl:template name="bibliographyTemplate">
443
		<xsl:for-each select="//tei:div[@type='bibliography']//tei:bibl">
444
			<bibliography uri="{./tei:ref/@target}">
445
				<xsl:value-of select="."></xsl:value-of>					        	
446
			</bibliography>
447
		</xsl:for-each>
448
	</xsl:template>
449
	
450
	<xsl:template name="hasArtifactTemplate">
451
		<hasArtifact>
452
			<xsl:call-template name="idsTemplate">
453
				<xsl:with-param name="postfix">artifact</xsl:with-param>
454
			</xsl:call-template>
455
			<xsl:call-template name="tmTemplate" />
456
			<artifactTitle lang="{$LANG}">
457
				<xsl:value-of select="$TITLE" />
458
			</artifactTitle>
459
			<xsl:call-template name="originDatingTemplate" />
460
			<xsl:call-template name="findingSpotTemplate" />
461
			<xsl:call-template name="inscriptionTypeTemplate" />
462
			<xsl:call-template name="objectTypeTemplate" />
463
			<xsl:call-template name="materialTemplate" />
464
			<xsl:call-template name="conservationPlaceTemplate" />
465
		</hasArtifact>
466
	</xsl:template>
467
	
468
	<xsl:template name="hasTranscriptionTemplate">
469
		<hasTranscription>
470
			<xsl:call-template name="idsTemplate">
471
				<xsl:with-param name="postfix">
472
					<xsl:value-of>transcription</xsl:value-of>
473
				</xsl:with-param>
474
			</xsl:call-template>
475
			<xsl:call-template name="textsTemplate" />
476
			<xsl:call-template name="bibliographyTemplate" />
477
		</hasTranscription>
478
	</xsl:template>
479
	
480
	<xsl:template name="hasVisualRepresentationTemplate">
481
		<xsl:param name="url_md5" />
482
		<xsl:param name="url" />
483
		<hasVisualRepresentation>
484
			<xsl:call-template name="idsTemplate">
485
				<xsl:with-param name="postfix">
486
					<xsl:value-of select="concat($url_md5, '::visual')" />
487
				</xsl:with-param>
488
			</xsl:call-template>
489
			<url><xsl:value-of select="$url" /></url>
490
			<thumbnail><xsl:value-of select="$url" /></thumbnail>
491
		</hasVisualRepresentation>
492
	</xsl:template>
493
	
494
	<xsl:template name="headerProvenance">
495
		<provenance>
496
			<xsl:value-of select="//tei:authority" />
497
		</provenance>
498
	</xsl:template>
499
	
500
</xsl:stylesheet>
501
				]]></CODE>
502
			</SCRIPT>
503
		</CONFIGURATION>
504
		<STATUS />
505
		<SECURITY_PARAMETERS />
506
	</BODY>
507
</RESOURCE_PROFILE>
(3-3/5)