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:project"/>
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

    
23
<xsl:template match = "oaf:project">
24
	<xsl:choose>
25
		<xsl:when test="./acronym != '' and ./acronym != 'UNKNOWN'">
26
			<value>
27
				<xsl:value-of select="./acronym"/>
28
			</value>
29
		</xsl:when>
30
		<xsl:otherwise>
31
				<value>
32
					<xsl:value-of select="./title"/>
33
				</value>
34
		</xsl:otherwise>
35
	</xsl:choose>				
36
</xsl:template>
37

    
38
</xsl:stylesheet>
39

    
40

    
(26-26/40)