This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: How do I remove the unnecessary white spaces


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]