1
|
|
2
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
3
|
xmlns:dri="http://www.driver-repository.eu/namespace/dri"
|
4
|
xmlns:oaf="http://namespace.openaire.eu/oaf"
|
5
|
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
6
|
|
7
|
<!-- Turn off auto-insertion of <?xml> tag and set indenting on -->
|
8
|
<xsl:output method="text" encoding="utf-8" omit-xml-declaration="yes" media-type="text/csv" />
|
9
|
|
10
|
<!-- strip whitespace from whitespace-only nodes -->
|
11
|
<xsl:strip-space elements="*"/>
|
12
|
|
13
|
<xsl:template match = "/">
|
14
|
<xsl:apply-templates select="//oaf:datasource"/>
|
15
|
</xsl:template>
|
16
|
|
17
|
<!-- Name, Type, Compatibility, OAI-PMH, website -->
|
18
|
<xsl:template match="oaf:datasource">
|
19
|
|
20
|
<!-- Name -->
|
21
|
<xsl:text>"</xsl:text>
|
22
|
<xsl:value-of select="officialname"/>
|
23
|
<xsl:text>",</xsl:text>
|
24
|
|
25
|
<!-- Type -->
|
26
|
<xsl:value-of select="datasourcetype/@classname"/>
|
27
|
<xsl:text>,</xsl:text>
|
28
|
|
29
|
<!-- Compatibility -->
|
30
|
<xsl:value-of select="openairecompatibility/@classname"/>
|
31
|
<xsl:text>,</xsl:text>
|
32
|
|
33
|
<!-- OAI-PMH -->
|
34
|
<xsl:value-of select="accessinfopackage"/>
|
35
|
<xsl:text>,</xsl:text>
|
36
|
|
37
|
<!-- website -->
|
38
|
<xsl:value-of select="websiteurl"/>
|
39
|
<xsl:text>
</xsl:text>
|
40
|
|
41
|
</xsl:template>
|
42
|
|
43
|
</xsl:stylesheet>
|