disappearing spaces
Hi,
one strange behavior that I have not found an explanation for. From my xml address data I output the data in a more human readable form. The single fields for parts of the name FN, MN, LN I want to output in a single line separated by spaces like this
<xsl:value-of select="TI"/>
<xsl:value-of select="FN"/>
<xsl:value-of select="MN"/>
<xsl:value-of select="LN"/>
Whatever I do I cant get spaces between the different elements.
for example <xsl:value-of select="TI"/> <xsl:value-of select="FN"/>
does not show the spaces between TI and FN. If I put any other character in there like a comma, that shows.
I have managed to solve the problem by writing
<xsl:value-of select="TI"/><xsl:if test="TI">#160;</xsl:if>
<xsl:value-of select="FN"/><xsl:if test="FN">#160;</xsl:if>
<xsl:value-of select="MN"/><xsl:if test="MN">#160;</xsl:if>
<xsl:value-of select="LN"/><xsl:if test="LN">#160;</xsl:if>
but it's kind of dissatisfying not to know why that strange behavior.
Can anybody explain this for me?
Thanks
Gunter
|