RE: [xsl] Fwd: Over/under trimming of whitespace

Subject: RE: [xsl] Fwd: Over/under trimming of whitespace
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 25 Apr 2002 23:29:07 +0100
> The bigger problem is that specifying the following 
> on a template rule that matches an element with whitespace
>   
> <fo:inline white-space-collapse="false"> </fo:inline>
> 
> becomes
> 
> <fo:inline white-space-collapse="false"/>
> 
> rendering this solution completely useless.
> 
> I tried adding:
> 
> <xsl:preserve-space elements="fo:inline" />
> 

Try 
<fo:inline white-space-collapse="false" xml:space="preserve"> </fo:inline>

or
<fo:inline white-space-collapse="false">
  <xsl:text> </xsl:text>
</fo:inline>

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread