Project

General

Profile

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
	<field name="encoding" multiplicity="false" indexId="objIdentifier" label="Object id">
17
		<xsl:attribute name="value">
18
			<xsl:value-of select='./dri:objIdentifier'/>
19
		</xsl:attribute>
20
	</field>
21
</xsl:template>
22

    
23

    
24
<xsl:template match = "oaf:datasource">
25
	<xsl:for-each select = "./officialname">
26
		<field name="value" indexId = "datasourceofficialname" multiplicity="true" label="Official name">
27
			<xsl:attribute name="value">
28
				<xsl:value-of select='.'/>
29
			</xsl:attribute>
30
		</field>
31
	</xsl:for-each>
32
</xsl:template>
33

    
34
</xsl:stylesheet>
35

    
36

    
(7-7/22)