Re: displaying carriage return with xsl:fo

Jean-louis,

This is an XSL issue.

You should be able to use either <xsl:text></xsl:text> wrapped around the
text within which you desire to preserve space.

If all *truc* elements require white-space characters to be preserved, you
may specify
<xsl:preserve-space elements="truc"/>

I believe all whitespace chars will be preserved.  No distinction is made
between tabs, CR, an whatnot in XSL.

Mike

----- Original Message -----
From: "Jean-louis GENTINNE" <Jean-louis.GENTINNE@CHU.ULG.AC.BE>
To: <www-xsl-fo@w3.org>
Sent: Wednesday, September 25, 2002 9:29 AM
Subject: displaying carriage return with xsl:fo


> Hi All
>
> How is it possible to display, with xsl-fo, a text containing carriage
> return characters
> without carriage return characters be replaced by a space.
>
> For example, if in a xml file we have:
> <truc>How is it possible to display, with xsl-fo, <CR>a text
> containing</truc>
>
> how to render it with xsl:fo as:
>
> How is it possible to display, with xsl-fo,
> a text containing
>
> As I have experienced it, <fo:block><xsl:value-of
> select="truc"/></fo:block> does not work:
> <CR> is replaced by a space character; it is rendered as
>
> How is it possible to display, with xsl-fo, a text containing
>
> Many thanks
>

Received on Friday, 27 September 2002 09:57:40 UTC