This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How do I remove the unnecessary white spaces
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] How do I remove the unnecessary white spaces
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Thu, 18 Oct 2001 17:17:42 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> Here is the invocation of this method and below is the
> variable used here.
>
> <xsl:variable name="singleSpace" select="' '"/>
> --------------------------
> <xsl:template match="TEXT">
> <xsl:if test="@fillcolor"> <xsl:value-of
> select="@fillcolor"/> rg
> </xsl:if>
Having literal text in a stylesheet at the beginning or end of a line is
always bad news. Use <xsl:text> to delimit the text you actually want,
otherwise the end-of-line gets drawn in automatically.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list