I'm trying to use the normalize-space() function to tidy up my XSLT output. However, it seems to randomly remove single spaces between two words in text nodes. Does anyone know why this might be happening? The words are just on a single line and I can't see any pattern as to where it is removing the spaces and where it is not. The code I am using is the standard:
<xsl:template match="text()">
<xsl:value-of select="normalize-space()"/>
</xsl:template>
Thanks.