Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2

    
3
<xsl:stylesheet version="1.0"
4
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/xpath-functions"
5
                exclude-result-prefixes="fn">
6

    
7
	<xsl:variable name="namespacePrefix" select="string('sfi_________')"/>
8
	<xsl:variable name="funderId" select="concat($namespacePrefix, '::SFI')"/>
9

    
10
	<xsl:template match="/">
11
		<fundingtree>
12
			<funder>
13
				<id>
14
					<xsl:value-of select="$funderId"/>
15
				</id>
16
				<shortname>SFI</shortname>
17
				<name>
18
					<xsl:value-of select=".//column[@name='Funder Name']"/>
19
				</name>
20
				<jurisdiction>IE</jurisdiction>
21
			</funder>
22
			<xsl:variable name="funding" select="normalize-space(.//column[@name='Programme Name'])"/>
23
			<xsl:if test="$funding">
24
				<funding_level_0>
25
					<id>
26
						<xsl:value-of select="concat($funderId, '::', $funding)"/>
27
					</id>
28
					<description>
29
						<xsl:value-of select="$funding"/>
30
					</description>
31
					<name>
32
						<xsl:value-of select="$funding"/>
33
					</name>
34
					<parent></parent>
35
					<class>sfi:fundingStream</class>
36
				</funding_level_0>
37
			</xsl:if>
38
		</fundingtree>
39
	</xsl:template>
40
</xsl:stylesheet>
41
		
(15-15/19)