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:dri="http://www.driver-repository.eu/namespace/dri"
|
4
|
xmlns:dnet="eu.dnetlib.dli.DLIUtils"
|
5
|
xmlns:scholix="http://www.scholix.org"
|
6
|
version="2.0"
|
7
|
exclude-result-prefixes="xsl datetime exslt dnet">
|
8
|
<xsl:template match="/">
|
9
|
<record>
|
10
|
<xsl:variable name="test">
|
11
|
<xsl:value-of select="dnet:generateDSMap()"/>
|
12
|
</xsl:variable>
|
13
|
<xsl:copy-of select="//*[local-name()='header']"/>
|
14
|
|
15
|
<xsl:variable name="source">
|
16
|
<xsl:value-of select="//dri:datasourceprefix"/>
|
17
|
</xsl:variable>
|
18
|
<metadata>
|
19
|
<scholix:link>
|
20
|
<suca>
|
21
|
<xsl:value-of select="$test"/>
|
22
|
</suca>
|
23
|
|
24
|
<assertion_info>
|
25
|
<source>
|
26
|
<xsl:value-of select="$source"/>
|
27
|
</source>
|
28
|
<relationType scheme="datacite">unknown</relationType>
|
29
|
</assertion_info>
|
30
|
<source>
|
31
|
<pid type="DOI">
|
32
|
<xsl:value-of select="//column[./@name='ArticleID']"/>
|
33
|
</pid>
|
34
|
<type>publication</type>
|
35
|
</source>
|
36
|
|
37
|
<target>
|
38
|
<pid>
|
39
|
<xsl:attribute name="type">
|
40
|
<xsl:value-of select="//column[./@name='db']"/>
|
41
|
</xsl:attribute>
|
42
|
<xsl:value-of select="//column[./@name='datasetID']"/>
|
43
|
</pid>
|
44
|
<type>dataset</type>
|
45
|
</target>
|
46
|
</scholix:link>
|
47
|
</metadata>
|
48
|
<oaf:about>
|
49
|
<oaf:datainfo>
|
50
|
<xsl:variable name="datasourcePrefix">
|
51
|
<xsl:value-of select="//dri:datasourceprefix/text()"/>
|
52
|
</xsl:variable>
|
53
|
|
54
|
<oaf:collectedFrom completionStatus="incomplete">
|
55
|
<xsl:attribute name="id">
|
56
|
<xsl:value-of select="dnet:getIdFromDataSourcePrefix($datasourcePrefix)"/>
|
57
|
</xsl:attribute>
|
58
|
<xsl:attribute name="name">
|
59
|
<xsl:value-of select="dnet:getNameFromDataSourcePrefix($datasourcePrefix)"/>
|
60
|
</xsl:attribute>
|
61
|
</oaf:collectedFrom>
|
62
|
|
63
|
<oaf:completionStatus>incomplete</oaf:completionStatus>
|
64
|
<oaf:provisionMode>collected</oaf:provisionMode>
|
65
|
</oaf:datainfo>
|
66
|
</oaf:about>
|
67
|
</record>
|
68
|
</xsl:template>
|
69
|
</xsl:stylesheet>
|