xslt trim function

Hello All,

I have an xslt service and need to trim the element values. I am using inbuilt function fn:normalize-space() and it does not work. Do I need to include any xslt namespace?

I am trying to do the following thing in my xslt service

<xsl:element name=“data”><xsl:value-of select=“fn:normalize-space(data1)”/></xsl:element>


and it does not work. The value is still with the whitespaces.

Can somebody help ?

Thanks in advance,

no worries, I just figured it out how

just need this normalize-space(data1) instead of fn:normalize-space(data1).