Project

General

Profile

« Previous | Next » 

Revision 55461

updated for new funding stream information

View differences:

rpf_context.xsl
2 2
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3 3

  
4 4
    <xsl:output indent="yes"/>
5

  
5
    <xsl:variable name="namespacePrefix" select="string('rpf_________')"/>
6
    <xsl:variable name="funderID" select="concat($namespacePrefix, '::RPF')"/>
6 7
    <xsl:template match="/">
7 8
        <fundings>
8 9
            <fundingtree>
9 10
                <funder>
10
                    <id>rpf_________::RPF</id>
11
                    <id> <xsl:value-of select="$funderID"/></id>
11 12
                    <shortname>RPF</shortname>
12 13
                    <name>Research Promotion Foundation</name>
13 14
                    <originalname>Research Promotion Foundation</originalname>
14 15
                    <jurisdiction>CY</jurisdiction>
15 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>
16 31
            </fundingtree>
17 32
        </fundings>
18 33
    </xsl:template>
19
</xsl:stylesheet>
34
</xsl:stylesheet>
35

  

Also available in: Unified diff