1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
3
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exclude-result-prefixes="xsl xsi">
|
4
|
|
5
|
<!-- DO NOT REINDENT THIS FILE: IT IS IMPORTANT THAT EACH PROJECT IS ON ONE SINGLE LINE -->
|
6
|
<xsl:output omit-xml-declaration="yes" standalone="omit" indent="no"/>
|
7
|
|
8
|
<xsl:template match="/">
|
9
|
<xsl:variable name="id" select="//FIELD[@name='grant_agreement_number']" />
|
10
|
<xsl:variable name="title" select="//FIELD[@name='title']" />
|
11
|
<xsl:variable name="acronym" select="//FIELD[@name='acronym']" />
|
12
|
<xsl:variable name="fundingProgramme" select="//FIELD[@name='fundingprogramme']" />
|
13
|
<xsl:choose>
|
14
|
<xsl:when test="$fundingProgramme = 'FP7'"><xsl:value-of select="concat($acronym, ' - ', $title, '	')" /><li style='border-right: solid 50px #30FF30' ><xsl:value-of select="concat($id, ' - ', $acronym, ' - ', $title)" /><ul><li id="for:value:component:_fp7_project_id"><xsl:value-of select="concat('info:eu-repo/grantAgreement/EC/FP7/', $id)" /></li></ul></li><xsl:text>
|
15
|
</xsl:text></xsl:when>
|
16
|
<xsl:when test="$fundingProgramme = 'WT'"><xsl:value-of select="concat($acronym, ' - ', $title, '	')" /><li style='border-right: solid 50px #30FF30' ><xsl:value-of select="concat($id, ' - ', $acronym, ' - ', $title)" /><ul><li id="for:value:component:_wt_project_id"><xsl:value-of select="concat('info:eu-repo/grantAgreement/WT/', $id)" /></li></ul></li><xsl:text>
|
17
|
</xsl:text></xsl:when>
|
18
|
<xsl:otherwise><xsl:value-of select="concat($acronym, ' - ', $title, '	')" /><li style='border-right: solid 50px #30FF30' ><xsl:value-of select="concat($id, ' - ', $acronym, ' - ', $title)" /><ul><li id="for:value:component:_fct_project_id"><xsl:value-of select="concat('info:eu-repo/grantAgreement/PT/FCT/', $id)" /></li></ul></li><xsl:text>
|
19
|
</xsl:text></xsl:otherwise>
|
20
|
</xsl:choose>
|
21
|
</xsl:template>
|
22
|
|
23
|
|
24
|
</xsl:stylesheet>
|