On Jun 23, 2008, at 19:43, bonekrusher wrote:

I am using FOP 0.20.5 - I am trying to preserve whitespace but it's not
working. I tried both examples below with no luck.

Ouch! Is there a chance of upgrading to 0.95? 0.95 is much more compliant when it comes to those particular properties...

<fo:block xsl:use-attribute-sets="text-10" linefeed- treatment="preserve"
white-space-collapse="false" wrap-option="wrap" white-space="pre">
        <xsl:apply-templates/>
</fo:block>

Note: 'white-space' is a shorthand property retained in XSL-FO for compatibility reasons with CSS. As such, white-space="pre" means the exact same thing as the other three specified property-values /plus/ white-space-treatment="preserve".

see: http://www.w3.org/TR/xsl/#white-space

As a matter of best practice, either use the shorthand or use the native properties, but specifying both is a (tiny bit) wasteful.

I'm not sure if there's a workaround for you if you're stuck with 0.20.5... :/


Cheers

Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to