Andreas,

I got it working. 

<xsl:when test="@space = 'preserve'">
                <fo:block xsl:use-attribute-sets="text-10" 
white-space-collapse="false"
wrap-option="wrap" white-space-treatment="preserve">
                                        <xsl:value-of select="."/>
                </fo:block>
</xsl:when>

Thanks,


Andreas Delmelle-2 wrote:
> 
> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/FOP-0.20.5-Preserve-Whitespace-tp18074357p18089016.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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

Reply via email to