[GeoNetwork-users] Minor editing of keywords string in ISO191139 record

Hi there,

I'm trying to determine how to remove the space after each keyword in a
string of keywords.

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

keyword1 , keyword2 , keyword3 , keyword4

I'd like them to display as:

keyword1, keyword2, keyword3, keyword4

I'd be grateful if someone could direct me to the file for editing - it's
proving hard to track down.

Thanks,
Rich

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Minor-editing-of-keywords-string-in-ISO191139-record-tp6323160p6323160.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Thanks to Sara Soto for suggesting use of the normalize-space() function.

The unwanted space was removed by editing metadata-iso19139.xsl as follows:

<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>

Ref:
http://www.w3schools.com/Xpath/xpath_functions.asp

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Minor-editing-of-keywords-string-in-ISO19139-record-tp6323160p6326471.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.