Revision 48139
Added by Alessia Bardi over 6 years ago
rcuk_contexts.xsl | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
<xsl:stylesheet version="1.0" |
3 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/xpath-functions"
|
|
4 |
exclude-result-prefixes="fn">
|
|
3 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/xpath-functions"
|
|
4 |
exclude-result-prefixes="fn">
|
|
5 | 5 |
|
6 |
<xsl:variable name="namespacePrefix" select="string('rcuk________')" />
|
|
7 |
<xsl:variable name="funderID" select="concat($namespacePrefix, '::RCUK')" />
|
|
6 |
<xsl:variable name="namespacePrefix" select="string('rcuk________')"/> |
|
7 |
<xsl:variable name="funderID" select="concat($namespacePrefix, '::RCUK')"/> |
|
8 | 8 |
|
9 | 9 |
<xsl:template match="/"> |
10 | 10 |
<xsl:variable name="funding" select="//funder/name"/> |
11 |
|
|
12 | 11 |
|
12 |
|
|
13 | 13 |
<fundingtree> |
14 | 14 |
<funder> |
15 | 15 |
<id> |
16 |
<xsl:value-of select="$funderID" />
|
|
16 |
<xsl:value-of select="$funderID"/> |
|
17 | 17 |
</id> |
18 | 18 |
<shortname>RCUK</shortname> |
19 | 19 |
<name>Research Council UK</name> |
... | ... | |
21 | 21 |
</funder> |
22 | 22 |
<funding_level_0> |
23 | 23 |
<id> |
24 |
<xsl:value-of select="concat($funderID, '::', $funding)" />
|
|
24 |
<xsl:value-of select="concat($funderID, '::', $funding)"/> |
|
25 | 25 |
</id> |
26 | 26 |
<description> |
27 |
<xsl:value-of select="$funding" />
|
|
27 |
<xsl:value-of select="$funding"/> |
|
28 | 28 |
</description> |
29 | 29 |
<name> |
30 |
<xsl:value-of select="$funding" />
|
|
30 |
<xsl:value-of select="$funding"/> |
|
31 | 31 |
</name> |
32 | 32 |
<parent></parent> |
33 | 33 |
<class>rcuk:fundingStream</class> |
Also available in: Unified diff
integrated (hopefully) all required changes from dnet40