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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.