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="2.0"
4
                exclude-result-prefixes="fn">
5

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

    
9
    <xsl:template match="/">
10
        <fundings>
11
            <fundingtree>
12
                <funder>
13
                    <id>
14
                        <xsl:value-of select="$funderID"/>
15
                    </id>
16
                    <shortname>INNOVIRIS</shortname>
17
                    <name>INNOVIRIS</name>
18
                    <jurisdiction>BE</jurisdiction>
19
                </funder>
20
                <xsl:variable name="stream">
21
                    <xsl:value-of select="translate(.//column[@name = 'FUNDING_STREAM'],' ','')"/>
22
                </xsl:variable>
23
                <funding_level_0>
24
                    <id>
25
                        <xsl:value-of select="concat($funderID, '::',$stream)"/>
26
                    </id>
27
                    <name><xsl:value-of select=".//column[@name='FUNDING_STREAM']"/></name>
28
                    <description><xsl:value-of select=".//column[@name='FUNDING_STREAM']"/></description>
29
                    <parent/>
30
                    <class>
31
                        <xsl:value-of select="concat('innoviris:',fn:lower-case($stream),'fundings')"/>
32
                    </class>
33
                </funding_level_0>
34
            </fundingtree>
35
        </fundings>
36
    </xsl:template>
37

    
38
</xsl:stylesheet>
(16-16/33)