RE: [xsl] How do I remove the unnecessary white spaces

Subject: RE: [xsl] How do I remove the unnecessary white spaces
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 18 Oct 2001 17:17:42 +0100
> 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


Current Thread