Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
This is not an urgent matter, but I would like to know how to get rid of whitespaces?
Fx:
<div> <xsl:attribute name="style"> <xsl:if test="$currentPage/bodyColor != ''"> background: <xsl:value-of select="$currentPage/bodyColor"/>; </xsl:if> </xsl:attribute> </div>
Outputs: (notice &#zA;)
<div style="
 background: red;
 "> </div>
try wrapping background with <xsl:text></xsl:text>
Regards
Ismail
Well that acurlly did the trick for this situation.
Cool. Thanks
I use the same method as Ismail said.
An alternative would be to use the concat() function, e.g.
<xsl:value-of select="concat('background: ', $currentPage/bodyColor, ';')"/>
Cheers, Lee.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to get rid of whitespace
This is not an urgent matter, but I would like to know how to get rid of whitespaces?
Fx:
Outputs: (notice &#zA;)
try wrapping background with <xsl:text></xsl:text>
Regards
Ismail
Well that acurlly did the trick for this situation.
Cool. Thanks
I use the same method as Ismail said.
An alternative would be to use the concat() function, e.g.
Cheers, Lee.
is working on a reply...