1
|
<?xml version="1.0" encoding="UTF-8"?>
|
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
|
<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
|
7
|
|
8
|
<xsl:template match = "/">
|
9
|
<result type ="result">
|
10
|
<xsl:apply-templates select="//header"/>
|
11
|
<xsl:apply-templates select="//oaf:datasource"/>
|
12
|
</result>
|
13
|
</xsl:template>
|
14
|
|
15
|
<xsl:template match = "header">
|
16
|
<encoding>
|
17
|
<xsl:value-of select='./dri:objIdentifier'/>
|
18
|
</encoding>
|
19
|
</xsl:template>
|
20
|
|
21
|
|
22
|
<xsl:template match = "oaf:datasource">
|
23
|
<xsl:for-each select = "./officialname">
|
24
|
<value>
|
25
|
<xsl:value-of select='.'/>
|
26
|
</value>
|
27
|
</xsl:for-each>
|
28
|
</xsl:template>
|
29
|
|
30
|
</xsl:stylesheet>
|
31
|
|
32
|
|