Revision 48957
Added by Claudio Atzori about 6 years ago
corda_2_db.xsl | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
|
3 |
> |
|
2 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
|
4 | 3 |
|
5 | 4 |
<xsl:param name="parentDatasourceId"/> |
6 | 5 |
|
... | ... | |
138 | 137 |
<FIELD name="optional2"> |
139 | 138 |
<xsl:value-of select="./ProjectCallWebpageUrl"/> |
140 | 139 |
</FIELD> |
141 |
<xsl:variable name="personSurname" select="./CoordinatorContactPerson/PersonLastName"/>
|
|
142 |
<xsl:variable name="personFirstName" select="./CoordinatorContactPerson/PersonFirstName"/>
|
|
140 |
<xsl:variable name="personSurname" select="normalize-space(./CoordinatorContactPerson/PersonLastName)"/>
|
|
141 |
<xsl:variable name="personFirstName" select="normalize-space(./CoordinatorContactPerson/PersonFirstName)"/>
|
|
143 | 142 |
<xsl:variable name="contactfullname"> |
144 | 143 |
<xsl:choose> |
145 | 144 |
<xsl:when test="string-length($personFirstName) > 0 and string-length($personSurname) > 0"> |
146 | 145 |
<xsl:value-of select="normalize-space(concat($personSurname, ', ', $personFirstName))"/> |
147 | 146 |
</xsl:when> |
148 | 147 |
<xsl:when test="string-length($personFirstName) > 0"> |
149 |
<xsl:value-of select="normalize-space($personFirstName)"/>
|
|
148 |
<xsl:value-of select="$personFirstName"/>
|
|
150 | 149 |
</xsl:when> |
151 | 150 |
<xsl:when test="string-length($personSurname) > 0"> |
152 |
<xsl:value-of select="normalize-space($personSurname)"/>
|
|
151 |
<xsl:value-of select="$personSurname"/>
|
|
153 | 152 |
</xsl:when> |
154 | 153 |
<xsl:otherwise> |
155 | 154 |
<xsl:value-of select="''"/> |
Also available in: Unified diff
normalise spaces when extract project contact info