Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3
                xmlns:fn="http://www.w3.org/2005/xpath-functions" version="1.0"
4
                exclude-result-prefixes="fn">
5

    
6
	<xsl:variable name="namespacePrefix" select="string('fwf_________')"/>
7
	<xsl:variable name="funderID" select="concat($namespacePrefix, '::FWF')"/>
8

    
9
	<xsl:template match="/">
10
		<xsl:variable name="fundingName" select="normalize-space(.//column[@name='promotion category'])"/>
11
		<xsl:variable name="fundingCode" select="normalize-space(substring-before(.//column[@name='project number'],' –'))"/>
12
		<fundingtree>
13
			<funder>
14
				<id>
15
					<xsl:value-of select="$funderID"/>
16
				</id>
17
				<shortname>FWF</shortname>
18
				<name>Austrian Science Fund (FWF)</name>
19
				<originalname>Fonds zur Förderung der Wissenschaftlichen Forschung</originalname>
20
				<jurisdiction>AT</jurisdiction>
21
			</funder>
22
			<xsl:if test="string-length($fundingCode) &gt; 0">
23
				<funding_level_0>
24
					<id>
25
						<xsl:value-of select="concat($funderID, '::', $fundingCode)"/>
26
					</id>
27
					<description>
28
						<xsl:value-of select="$fundingName"/>
29
					</description>
30
					<name>
31
						<xsl:value-of select="$fundingName"/>
32
					</name>
33
					<parent></parent>
34
					<class>fwf:programmes</class>
35
				</funding_level_0>
36
			</xsl:if>
37
		</fundingtree>
38

    
39
	</xsl:template>
40

    
41
</xsl:stylesheet>
(12-12/30)