Revision 38522
Added by Michele Artini almost 9 years ago
sfi_contexts.xsl | ||
---|---|---|
9 | 9 |
|
10 | 10 |
<xsl:template match="/"> |
11 | 11 |
<xsl:variable name="funding" select=".//column[@name='Programme']" /> |
12 |
|
|
13 |
<fundingtree> |
|
14 |
<funder> |
|
15 |
<id><xsl:value-of select="$funderId" /></id> |
|
16 |
<shortname>SFI</shortname> |
|
17 |
<name><xsl:value-of select=".//column[@name='Funder Name']" /></name> |
|
18 |
<jurisdiction></jurisdiction> |
|
19 |
</funder> |
|
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 |
</fundingtree> |
|
12 |
<xsl:if test="$funding"> |
|
13 |
<fundingtree> |
|
14 |
<funder> |
|
15 |
<id><xsl:value-of select="$funderId" /></id> |
|
16 |
<shortname>SFI</shortname> |
|
17 |
<name><xsl:value-of select=".//column[@name='Funder Name']" /></name> |
|
18 |
<jurisdiction></jurisdiction> |
|
19 |
</funder> |
|
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 |
</fundingtree> |
|
28 |
</xsl:if> |
|
28 | 29 |
</xsl:template> |
29 | 30 |
</xsl:stylesheet> |
30 |
|
|
31 |
|
|
32 | 31 |
|
Also available in: Unified diff
added some controls on sfi xslts