Project

General

Profile

« Previous | Next » 

Revision 48957

normalise spaces when extract project contact info

View differences:

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) &gt; 0 and string-length($personSurname) &gt; 0">
80 80
										<xsl:value-of select="normalize-space(concat($personSurname, ', ', $personFirstName))"/>
81 81
									</xsl:when>
82 82
									<xsl:when test="string-length($personFirstName) &gt; 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) &gt; 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