Subject: Re: [xsl] adding space in xslt and trimming last space in java-problem From: "J.Pietschmann" <j3322ptm@xxxxxxxx> Date: Wed, 16 Jul 2003 22:18:45 +0200 |
<xsl:value-of select="text()"/> </xsl:for-each>
  or U+00A0 is a non-breaking space. Java's trim() routines don't recognize it as a space.
In VIM the transformed file shows not a space but a capital A with a ^ on top, I assume this is the problem.
This is (probably) one of the bytes of an UTF-8 encoded non-breaking space as displayed by a non-UTF-8 aware editor (well, the most common case).
what can I use instead of  ??
Try <xsl:text> </xsl:text>
You might want to read what the XSLT spec says about whitespace stripping, and probably a bit more on XML basics.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] adding space in xslt and trim, remko de knikker | Thread | Re: [xsl] adding space in xslt and , Wendell Piez |
[xsl] whitespace in xsl:copy-of, Zakon, Stuart | Date | Re: [xsl] adding space in xslt and , Wendell Piez |
Month |