Revision 48957
Added by Claudio Atzori over 6 years ago
corda_h2020_2_db.xsl | ||
---|---|---|
72 | 72 |
<FIELD name="optional2"> |
73 | 73 |
<xsl:value-of select="./ProjectTopicDescr"/> |
74 | 74 |
</FIELD> |
75 |
<xsl:variable name="personSurname" select="./CoordinatorContactPerson/PersonLastName"/>
|
|
76 |
<xsl:variable name="personFirstName" select="./CoordinatorContactPerson/PersonFirstName"/>
|
|
75 |
<xsl:variable name="personSurname" select="normalize-space(./CoordinatorContactPerson/PersonLastName)"/>
|
|
76 |
<xsl:variable name="personFirstName" select="normalize-space(./CoordinatorContactPerson/PersonFirstName)"/>
|
|
77 | 77 |
<xsl:variable name="contactfullname"> |
78 | 78 |
<xsl:choose> |
79 | 79 |
<xsl:when test="string-length($personFirstName) > 0 and string-length($personSurname) > 0"> |
80 | 80 |
<xsl:value-of select="normalize-space(concat($personSurname, ', ', $personFirstName))"/> |
81 | 81 |
</xsl:when> |
82 | 82 |
<xsl:when test="string-length($personFirstName) > 0"> |
83 |
<xsl:value-of select="normalize-space($personFirstName)"/>
|
|
83 |
<xsl:value-of select="$personFirstName"/>
|
|
84 | 84 |
</xsl:when> |
85 | 85 |
<xsl:when test="string-length($personSurname) > 0"> |
86 |
<xsl:value-of select="normalize-space($personSurname)"/>
|
|
86 |
<xsl:value-of select="$personSurname"/>
|
|
87 | 87 |
</xsl:when> |
88 | 88 |
<xsl:otherwise> |
89 | 89 |
<xsl:value-of select="''"/> |
Also available in: Unified diff
normalise spaces when extract project contact info