1
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:datetime="http://exslt.org/dates-and-times"
|
2
|
xmlns:exslt="http://exslt.org/common" xmlns:oaf="http://namespace.dnet.eu/oaf"
|
3
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
4
|
xmlns:dri="http://www.driver-repository.eu/namespace/dri"
|
5
|
xmlns:dnet="eu.dnetlib.dli.DLIUtils"
|
6
|
version="2.0"
|
7
|
xmlns="http://www.scholix.org"
|
8
|
exclude-result-prefixes="xsl datetime exslt dnet">
|
9
|
<xsl:template match="/">
|
10
|
<record>
|
11
|
<xsl:variable name="test">
|
12
|
<xsl:value-of select="dnet:generateDSMap()"/>
|
13
|
</xsl:variable>
|
14
|
<xsl:copy-of select="//*[local-name()='header']"/>
|
15
|
|
16
|
<xsl:variable name="source">
|
17
|
<xsl:value-of select="//dri:datasourceprefix"/>
|
18
|
</xsl:variable>
|
19
|
<metadata>
|
20
|
<link xmlns="http://www.scholix.org">
|
21
|
<linkProvider>
|
22
|
<name>
|
23
|
<xsl:value-of select="dnet:getNameFromDataSourcePrefix($source)"/>
|
24
|
</name>
|
25
|
<identifiers>
|
26
|
<identifier>
|
27
|
<xsl:value-of select="dnet:getIdFromDataSourcePrefix($source)"/>
|
28
|
</identifier>
|
29
|
<schema>DNet-identifier</schema>
|
30
|
</identifiers>
|
31
|
</linkProvider>
|
32
|
<relashionship>
|
33
|
<name>unknown</name>
|
34
|
<schema>datacite</schema>
|
35
|
<inverseRelashionship>unknown</inverseRelashionship>
|
36
|
</relashionship>
|
37
|
<source>
|
38
|
<identifier>
|
39
|
<identifier>
|
40
|
<xsl:value-of select="//column[./@name='ArticleID']"/>
|
41
|
</identifier>
|
42
|
<schema>doi</schema>
|
43
|
</identifier>
|
44
|
<objectType>
|
45
|
<type>publication</type>
|
46
|
</objectType>
|
47
|
</source>
|
48
|
<target>
|
49
|
<identifier>
|
50
|
<identifier>
|
51
|
<xsl:value-of select="//column[./@name='datasetID']"/>
|
52
|
</identifier>
|
53
|
<schema>
|
54
|
<xsl:value-of select="//column[./@name='db']"/>
|
55
|
</schema>
|
56
|
</identifier>
|
57
|
<objectType>
|
58
|
<type>dataset</type>
|
59
|
</objectType>
|
60
|
</target>
|
61
|
</link>
|
62
|
</metadata>
|
63
|
<oaf:about>
|
64
|
<oaf:datainfo>
|
65
|
<xsl:variable name="datasourcePrefix">
|
66
|
<xsl:value-of select="//dri:datasourceprefix/text()"/>
|
67
|
</xsl:variable>
|
68
|
|
69
|
<oaf:collectedFrom completionStatus="incomplete">
|
70
|
<xsl:attribute name="id">
|
71
|
<xsl:value-of select="dnet:getIdFromDataSourcePrefix($datasourcePrefix)"/>
|
72
|
</xsl:attribute>
|
73
|
<xsl:attribute name="name">
|
74
|
<xsl:value-of select="dnet:getNameFromDataSourcePrefix($datasourcePrefix)"/>
|
75
|
</xsl:attribute>
|
76
|
</oaf:collectedFrom>
|
77
|
|
78
|
<oaf:completionStatus>incomplete</oaf:completionStatus>
|
79
|
<oaf:provisionMode>collected</oaf:provisionMode>
|
80
|
</oaf:datainfo>
|
81
|
</oaf:about>
|
82
|
</record>
|
83
|
</xsl:template>
|
84
|
</xsl:stylesheet>
|