But you *do* ask for whitespace-the newline after the # sign and the spaces at 
the start of the following line do that. Use <xsl:text>#</xsl:text> instead.

Eric Amick   Systems Engineer II
Legislative Computer Systems

> -----Original Message-----
> From: Rita Greenberg [mailto:rgreenb...@medata.com]
> Sent: Friday, June 22, 2012 13:57
> 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">&#160;</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


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to