Project

General

Profile

1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3
	<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
4
		
5
	<xsl:template match="/">
6
	<RESOURCE_PROFILE>
7
	    <HEADER>
8
		<RESOURCE_IDENTIFIER value=""/>
9
		<RESOURCE_TYPE value="VocabularyDSResourceType"/>
10
		<RESOURCE_KIND value="VocabularyDSResources"/>
11
		<RESOURCE_URI value="String"/>
12
		<DATE_OF_CREATION value="2008-06-25T14:50:49+02:00"/>
13
	    </HEADER>
14
	    <BODY>
15
		<CONFIGURATION>
16
		    <VOCABULARY_NAME>Datasources</VOCABULARY_NAME>
17
		    <VOCABULARY_DESCRIPTION>Datasources Vocabulary</VOCABULARY_DESCRIPTION>
18
			<TERMS>
19

    
20
			<xsl:apply-templates select="/response/results"/>
21
			</TERMS>
22
		</CONFIGURATION> 
23
	     </BODY>
24
	</RESOURCE_PROFILE>
25

    
26

    
27
	</xsl:template>
28

    
29
	<xsl:template match="/response/results">
30
		<xsl:for-each select="result">
31
			<xsl:choose>
32
				<xsl:when test="encoding = 'openaire____::fb98a192f6a055ba495ef414c330834b'">
33
					<TERM native_name="" encoding="openaire____::fb98a192f6a055ba495ef414c330834b" english_name="Other Resources">
34
						<SYNONYMS/>
35
					</TERM>
36
				</xsl:when>
37
				<xsl:otherwise>
38
					<TERM native_name="">
39
						<xsl:attribute name="encoding"><xsl:value-of select="field[@name='encoding']/@value"/></xsl:attribute>
40
						<xsl:attribute name="english_name"><xsl:value-of select="field[@name='value']/@value"/></xsl:attribute>
41
						<SYNONYMS/>
42
		      			  </TERM>
43
				</xsl:otherwise>
44
			</xsl:choose>
45
		 </xsl:for-each>
46

    
47
	</xsl:template>
48
</xsl:stylesheet>
49
	
(16-16/47)