1
|
<RESOURCE_PROFILE>
|
2
|
<HEADER>
|
3
|
<RESOURCE_IDENTIFIER
|
4
|
value="a0244e3b-8068-40e0-aa07-6a0c3c5b7e68_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>WDS:EarthData transformation</TITLE>
|
15
|
<CODE><![CDATA[<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
16
|
xmlns:datetime="http://exslt.org/dates-and-times" xmlns:exslt="http://exslt.org/common"
|
17
|
xmlns:oai="http://www.openarchives.org/OAI/2.0/"
|
18
|
xmlns:dnet="eu.dnetlib.wds.utils.WDSUtils"
|
19
|
exclude-result-prefixes="xsl datetime exslt dnet">
|
20
|
<xsl:template match="/">
|
21
|
<xsl:apply-templates mode="wds"></xsl:apply-templates>
|
22
|
|
23
|
|
24
|
</xsl:template>
|
25
|
<xsl:template match="@*|node()" mode="wds">
|
26
|
<xsl:copy>
|
27
|
<xsl:apply-templates select="@*|node()" mode="wds"/>
|
28
|
</xsl:copy>
|
29
|
</xsl:template>
|
30
|
|
31
|
|
32
|
<xsl:template match="*[local-name()='about']" mode="wds">
|
33
|
<oai:about>
|
34
|
<xsl:copy-of select="*"/>
|
35
|
|
36
|
<xsl:for-each select="//*[local-name()='publisher']">
|
37
|
|
38
|
|
39
|
<xsl:if test="string-length(dnet:getDatasourceName(.)) > 0 ">
|
40
|
|
41
|
<oaf:hostedBy xmlns:oaf="http://namespace.openaire.eu/oaf">
|
42
|
<xsl:attribute name="id">
|
43
|
<xsl:value-of select="dnet:getDatasourceId(.)"/></xsl:attribute>
|
44
|
<xsl:attribute name="name">
|
45
|
<xsl:value-of select="dnet:getDatasourceName(.)"/></xsl:attribute>
|
46
|
</oaf:hostedBy>
|
47
|
</xsl:if>
|
48
|
</xsl:for-each>
|
49
|
</oai:about>
|
50
|
</xsl:template>
|
51
|
</xsl:stylesheet>
|
52
|
]]></CODE>
|
53
|
</SCRIPT>
|
54
|
</CONFIGURATION>
|
55
|
<STATUS/>
|
56
|
<SECURITY_PARAMETERS/>
|
57
|
</BODY>
|
58
|
</RESOURCE_PROFILE>
|