Project

General

Profile

« Previous | Next » 

Revision 54302

Added CDATA and fixed escaping of & due to the copy from beta

View differences:

rcuk_2_db.xml
13 13
			<SCRIPT>
14 14
				<TITLE>RCUK to DB</TITLE>
15 15
				<CODE>
16

  
16
					<![CDATA[
17 17
					<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
18 18
					                xmlns:xs="http://www.w3.org/2001/XMLSchema"
19 19
					                xmlns:per="http://gtr.ukri.org/gtr/api/person" exclude-result-prefixes="xs"
......
122 122
											</xsl:variable>
123 123

  
124 124
											<xsl:if
125
													test="string-length($principalInvestigators) &amp;gt; 0">
125
													test="string-length($principalInvestigators) &gt; 0">
126 126
												<FIELD name="contactfullname">
127 127
													<xsl:value-of select="$principalInvestigators"/>
128 128
												</FIELD>
......
167 167
													<xsl:value-of select="./name"/>
168 168
												</FIELD>
169 169

  
170
												<xsl:if test="string-length($country) &amp;gt; 0">
170
												<xsl:if test="string-length($country) &gt; 0">
171 171
													<FIELD name="country">
172 172
														<xsl:value-of select="$country"/>
173 173
													</FIELD>
......
214 214
												<xsl:value-of select=".//ld-org/name"/>
215 215
											</FIELD>
216 216
											<xsl:variable name="country" select=".//ld-org/country"/>
217
											<xsl:if test="string-length($country) &amp;gt; 0">
217
											<xsl:if test="string-length($country) &gt; 0">
218 218
												<FIELD name="country">
219 219
													<xsl:value-of select="$country"/>
220 220
												</FIELD>
......
255 255
							<xsl:variable name="contactfullname">
256 256
								<xsl:choose>
257 257
									<xsl:when
258
											test="string-length($personFirstName) &amp;gt; 0 and string-length($personSurname) &amp;gt; 0">
258
											test="string-length($personFirstName) &gt; 0 and string-length($personSurname) &gt; 0">
259 259
										<xsl:value-of
260 260
												select="normalize-space(concat($personSurname, ', ', $personFirstName))"
261 261
										/>
262 262
									</xsl:when>
263
									<xsl:when test="string-length($personFirstName) &amp;gt; 0">
263
									<xsl:when test="string-length($personFirstName) &gt; 0">
264 264
										<xsl:value-of select="$personFirstName"/>
265 265
									</xsl:when>
266
									<xsl:when test="string-length($personSurname) &amp;gt; 0">
266
									<xsl:when test="string-length($personSurname) &gt; 0">
267 267
										<xsl:value-of select="$personSurname"/>
268 268
									</xsl:when>
269 269
									<xsl:otherwise>
......
275 275
						</xsl:template>
276 276
					</xsl:stylesheet>
277 277

  
278

  
278
]]>
279 279
				</CODE>
280 280
			</SCRIPT>
281 281
		</CONFIGURATION>

Also available in: Unified diff