W3C home > Mailing lists > Public > www-xsl-fo@w3.org > September 2002

Re: displaying carriage return with xsl:fo

From: Mike Haarman <mhaarman@infinitecampus.org>
Date: Fri, 27 Sep 2002 08:48:28 -0500
Message-ID: <006901c2662c$8ee76a00$78027941@infinitecampus.org>
To: "Jean-louis GENTINNE" <Jean-louis.GENTINNE@CHU.ULG.AC.BE>, <www-xsl-fo@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:09 GMT