1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
3
|
|
4
|
<xsl:output indent="yes"/>
|
5
|
<xsl:variable name="namespacePrefix" select="string('rpf_________')"/>
|
6
|
<xsl:variable name="funderID" select="concat($namespacePrefix, '::RPF')"/>
|
7
|
<xsl:template match="/">
|
8
|
<fundings>
|
9
|
<fundingtree>
|
10
|
<funder>
|
11
|
<id> <xsl:value-of select="$funderID"/></id>
|
12
|
<shortname>RPF</shortname>
|
13
|
<name>Research Promotion Foundation</name>
|
14
|
<originalname>Research Promotion Foundation</originalname>
|
15
|
<jurisdiction>CY</jurisdiction>
|
16
|
</funder>
|
17
|
<xsl:variable name="stream">
|
18
|
<xsl:value-of select="translate(.//column[@name = 'FUNDING STREAM'],' ','')"/>
|
19
|
</xsl:variable>
|
20
|
<funding_level_0>
|
21
|
<id>
|
22
|
<xsl:value-of select="concat($funderID, '::',$stream)"/>
|
23
|
</id>
|
24
|
<name><xsl:value-of select=".//column[@name='FUNDING STREAM']"/></name>
|
25
|
<description><xsl:value-of select=".//column[@name='FUNDING STREAM']"/></description>
|
26
|
<parent/>
|
27
|
<class>
|
28
|
<xsl:value-of select="concat('rpf:',lower-case($stream),'fundings')"/>
|
29
|
</class>
|
30
|
</funding_level_0>
|
31
|
</fundingtree>
|
32
|
</fundings>
|
33
|
</xsl:template>
|
34
|
</xsl:stylesheet>
|
35
|
|