Revision 49160
Added by Miriam Baglioni over 6 years ago
modules/dnet-openaireplus-workflows/trunk/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/xsl/dfg_context.xsl | ||
---|---|---|
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="1.0" |
|
4 |
exclude-result-prefixes="fn" xmlns:utils="eu.dnetlib.data.transform.xml.AbstractDNetXsltFunctions"> |
|
5 |
|
|
6 |
<xsl:variable name="namespacePrefix" select="string('dfgf________')"/> |
|
7 |
<xsl:variable name="funderID" select="concat($namespacePrefix, '::dfgf')"/> |
|
8 |
|
|
9 |
<xsl:template match="/"> |
|
10 |
<fundings> |
|
11 |
<fundingtree> |
|
12 |
<funder> |
|
13 |
<id> |
|
14 |
<xsl:value-of select="$funderID"/> |
|
15 |
</id> |
|
16 |
<shortname>DFG</shortname> |
|
17 |
<name>Deutsche Forschungsgemeinschaft</name> |
|
18 |
<jurisdiction>DE</jurisdiction> |
|
19 |
</funder> |
|
20 |
<xsl:variable name="stream" select ="normalize-space(.//column[@name='Funding Programme'])" /> |
|
21 |
<xsl:variable name="stream_id" select="utils:md5($stream)"/> |
|
22 |
<xsl:if test="string-length($stream_id) > 0"> |
|
23 |
<funding_level_0> |
|
24 |
<id> |
|
25 |
<xsl:value-of select="concat($funderID, '::', $stream_id)"/> |
|
26 |
</id> |
|
27 |
|
|
28 |
<description> |
|
29 |
<xsl:value-of select="$stream"/> |
|
30 |
</description> |
|
31 |
<name> |
|
32 |
<xsl:value-of select="$stream"/> |
|
33 |
</name> |
|
34 |
<parent></parent> |
|
35 |
<class>dfg:fundingStream</class> |
|
36 |
</funding_level_0> |
|
37 |
</xsl:if> |
|
38 |
</fundingtree> |
|
39 |
</fundings> |
|
40 |
</xsl:template> |
|
41 |
|
|
42 |
</xsl:stylesheet> |
Also available in: Unified diff
context for dfg funder