Revision 48139
Added by Alessia Bardi almost 7 years ago
sfi_contexts.xsl | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
|
3 | 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">
|
|
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 | 6 |
|
7 |
<xsl:variable name="namespacePrefix" select="string('sfi_________')" />
|
|
8 |
<xsl:variable name="funderId" select="concat($namespacePrefix, '::SFI')" />
|
|
7 |
<xsl:variable name="namespacePrefix" select="string('sfi_________')"/> |
|
8 |
<xsl:variable name="funderId" select="concat($namespacePrefix, '::SFI')"/> |
|
9 | 9 |
|
10 | 10 |
<xsl:template match="/"> |
11 | 11 |
<fundingtree> |
12 | 12 |
<funder> |
13 |
<id><xsl:value-of select="$funderId" /></id> |
|
13 |
<id> |
|
14 |
<xsl:value-of select="$funderId"/> |
|
15 |
</id> |
|
14 | 16 |
<shortname>SFI</shortname> |
15 |
<name><xsl:value-of select=".//column[@name='Funder Name']" /></name> |
|
17 |
<name> |
|
18 |
<xsl:value-of select=".//column[@name='Funder Name']"/> |
|
19 |
</name> |
|
16 | 20 |
<jurisdiction>IE</jurisdiction> |
17 | 21 |
</funder> |
18 |
<xsl:variable name="funding" select="normalize-space(.//column[@name='Programme'])" />
|
|
22 |
<xsl:variable name="funding" select="normalize-space(.//column[@name='Programme Name'])"/>
|
|
19 | 23 |
<xsl:if test="$funding"> |
20 | 24 |
<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> |
|
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> |
|
24 | 34 |
<parent></parent> |
25 | 35 |
<class>sfi:fundingStream</class> |
26 | 36 |
</funding_level_0> |
Also available in: Unified diff
integrated (hopefully) all required changes from dnet40