Rita, There are a couple of different techniques you can use better to control the whitespace.
First, you could use an <xsl:choose> which would allow you to construct an if-then-else so you can specify completely either a "28" or #28 without dealing with the whitespace problem. Second, the concat() function in this situation might very well be a good friend, when used with normalize-space. Con Best regards, Tom Morrison Senior Manager, Systems Software Projects Micro Focus -----Original Message----- From: Rita Greenberg [mailto:rgreenb...@medata.com] Sent: Friday, June 22, 2012 12:57 PM To: fop-users@xmlgraphics.apache.org Subject: White Space Added but Not Needed Hello. In my xsl:fo stylesheet I'm using wrap-option="wrap" on a fo:cell level. I'm printing a hash (#) sign before an xml element if a cetain condition is met. So, my element has, for example, a value of "28" and if the condition is met I want to print #28. The problem is that I get # 28. A space is being added that I never asked for! I've tried using strip-space, and normalize-space but niether of them worked. The interesting thing is that when I wrap the # within a fo:inline, I don;t get the space but then I don't get the wrapping either. Here's my code. [code] <xsl:if test="RC[.!=''] and RCOVERRIDE[.!='Y']"> <xsl:if test="RCMODIFIED[.='Y']"># </xsl:if> <xsl:value-of select="RC"/> <fo:inline font-size="4pt"> </fo:inline> </xsl:if> [code] Thanks, Rita --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org This message has been scanned by MailController - portal1.mailcontroller.co.uk --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org