[GeoNetwork-devel] Multiple keywords inserted into a record are appearing with a space on either side of the comma

At the moment, multiple keywords inserted into a record are appearing with a
space on either side of the comma:

keyword1 , keyword2 , keyword3 , keyword4

rather than

keyword1, keyword2, keyword3, keyword4

To remove the space I did the following.
Insert at line 840 in ~web/geonetwork/xsl/metadata-iso.xsl

From

<xsl:for-each select="gmd:MD_Keywords/gmd:keyword">
<xsl:if test="position() &gt; 1"><xsl:text>, </xsl:text></xsl:if>
<xsl:value-of select="."/>
</xsl:for-each>

to

<xsl:for-each select="gmd:MD_Keywords/gmd:keyword">
<xsl:if test="position() &gt; 1"><xsl:text>, </xsl:text></xsl:if>
<xsl:value-of select="normalize-space(.)"/>
</xsl:for-each>

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Multiple-keywords-inserted-into-a-record-are-appearing-with-a-space-on-either-side-of-the-comma-tp6485755p6485755.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.