Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XSLT normalize-space() removing single spaces!

843834Sep 6 2002 — edited Sep 11 2002
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 9 2002
Added on Sep 6 2002
4 comments
636 views