xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rita Greenberg <rgreenb...@medata.com>
Subject White Space Added but Not Needed
Date Fri, 22 Jun 2012 17:57:11 GMT
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-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message