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><xsl:value-of select="$funderId" /></id>
14
				<shortname>SFI</shortname>
15
				<name><xsl:value-of select=".//column[@name='Funder Name']" /></name>
16
				<jurisdiction>IE</jurisdiction>
17
			</funder>
18
			<xsl:variable name="funding" select="normalize-space(.//column[@name='Programme'])" />
19
			<xsl:if test="$funding">
20
				<funding_level_0>
21
					<id><xsl:value-of select="concat($funderId, '::', $funding)" /></id>
22
					<description><xsl:value-of select="$funding" /></description>
23
					<name><xsl:value-of select="$funding" /></name>
24
					<parent></parent>
25
					<class>sfi:fundingStream</class>
26
				</funding_level_0>
27
			</xsl:if>
28
		</fundingtree>
29
	</xsl:template>
30
</xsl:stylesheet>
31
		
(9-9/10)