1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<RESOURCE_PROFILE>
|
3
|
<HEADER>
|
4
|
<RESOURCE_IDENTIFIER value="754faf14-fe72-46b3-a219-e0423f8bb732_VHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZXMvVHJhbnNmb3JtYXRpb25SdWxlRFNSZXNvdXJjZVR5cGU="/>
|
5
|
<RESOURCE_TYPE value="TransformationRuleDSResourceType"/>
|
6
|
<RESOURCE_KIND value="TransformationRuleDSResources"/>
|
7
|
<RESOURCE_URI value=""/>
|
8
|
<DATE_OF_CREATION value="2014-01-08T23:27:01+01:00"/>
|
9
|
</HEADER>
|
10
|
<BODY>
|
11
|
<CONFIGURATION>
|
12
|
<IMPORTED/>
|
13
|
<SCRIPT>
|
14
|
<TITLE>xslt_cleaning_datacite</TITLE>
|
15
|
<CODE><![CDATA[
|
16
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.1"
|
17
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
18
|
xmlns:dr="http://www.driver-repository.eu/namespace/dr"
|
19
|
xmlns:datacite2_2="http://datacite.org/schema/kernel-2.2"
|
20
|
xmlns:datacite2_1="http://datacite.org/schema/kernel-2.1"
|
21
|
xmlns:datacite3="http://datacite.org/schema/kernel-3"
|
22
|
xmlns:TransformationFunction="xalan://eu.dnetlib.data.collective.transformation.core.xsl.ext.TransformationFunctionProxy"
|
23
|
extension-element-prefixes="TransformationFunction"
|
24
|
exclude-result-prefixes="TransformationFunction">
|
25
|
|
26
|
<xsl:variable name="tf" select="TransformationFunction:getInstance()"/>
|
27
|
|
28
|
<xsl:template match="@*|node()">
|
29
|
<xsl:copy>
|
30
|
<xsl:apply-templates select="@*|node()"/>
|
31
|
</xsl:copy>
|
32
|
</xsl:template>
|
33
|
|
34
|
<xsl:template match="datacite3:language|datacite2_2:language|datacite2_1:language">
|
35
|
<xsl:copy>
|
36
|
<xsl:value-of select="TransformationFunction:convert($tf, node(), 'Languages')"/>
|
37
|
</xsl:copy>
|
38
|
</xsl:template>
|
39
|
|
40
|
<xsl:template match="datacite3:resource|datacite2_2:resource|datacite2_1:resource">
|
41
|
<xsl:copy>
|
42
|
<xsl:apply-templates select="@*|node()"/>
|
43
|
</xsl:copy>
|
44
|
<xsl:element name="dr:CobjCategory">
|
45
|
<xsl:value-of select="TransformationFunction:convert($tf, //*[local-name()='resourceType']/@resourceTypeGeneral, 'TextTypologies')" />
|
46
|
</xsl:element>
|
47
|
|
48
|
|
49
|
</xsl:template>
|
50
|
|
51
|
</xsl:stylesheet>
|
52
|
]]></CODE>
|
53
|
</SCRIPT>
|
54
|
</CONFIGURATION>
|
55
|
<STATUS/>
|
56
|
<SECURITY_PARAMETERS/>
|
57
|
</BODY>
|
58
|
</RESOURCE_PROFILE>
|
59
|
|