Though I am not a Guru in this field, I suggest a small change in the xml
structure
as well as in the xsl.
There may be other solutions. Decide which one would ease your building XML.
XML:
<ColorCode>
<Code>Red</code>
<Code>Blue</code>
<Code>Green</code>
<ColorCode>
XSL:
<xsl:for-each select="ColorCode">
<fo:block>
<xsl:value-of select="Code"/>
</fo:block>
<xsl:for-each>
-----Original Message-----
From: Toufic Nehme [mailto:[EMAIL PROTECTED]
Sent: Friday, January 31, 2003 1:29 AM
To: [EMAIL PROTECTED]
Subject: preserve space
Hi everyone,
I have an element with formatted text inside an xml file.
When I generate my pdf, all spaces, LF and CR are skipped
in the fo:block.
I need to output the text as it is formatted in the xml file.
I tried with <xsl:preserve-space elements="ColorCode"/>
in the xsl file, with space-treatment="preserve" in the
fo:block also, but that didn't resolve the problem.
exemple:
<ColorCode>
Red
Green
Blue
</ColorCode>
my pdf shows:
Red Green Blue
i need to see:
Red
Green
Blue
I would appreciate any help.
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]