I used to use this to keep the space and other stuff. You may not need
all of them though.

    <xsl:attribute-set name="keepspace">
                <xsl:attribute
name="linefeed-treatment">preserve</xsl:attribute>
                <xsl:attribute
name="white-space-treatment">preserve</xsl:attribute>
                <xsl:attribute
name="white-space-collapse">false</xsl:attribute>
                <xsl:attribute name="language">en</xsl:attribute>
                <xsl:attribute name="hyphenate">true</xsl:attribute>
                <xsl:attribute name="hyphenation-character">"
"</xsl:attribute>
                <xsl:attribute
name="hyphenation-push-character-count">10</xsl:attribute>
                <xsl:attribute
name="hyphenation-remain-character-count">5</xsl:attribute>
    </xsl:attribute-set>

-----Original Message-----
From: The Web Maestro [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 11, 2005 3:41 PM
To: [EMAIL PROTECTED]
Subject: Re: Is it posible to insert a new line in a xml tag to change
the view of a PDF file

On Feb 11, 2005, at 1:27 PM, [EMAIL PROTECTED] wrote:
> Maestro
>
> You mentioned that the use of <fo:block white-space-collapse="false" >

> preserves the line breaks in the text. This is presicely the behavior 
> I actually want in my PDF processing. If this is non-conformant as you

> mentioned what should I do to maintain the linebreaks / newline feed 
> present in the database ?
>
> Thanks
> Manoj

I'm not certain how to handle that... Perhaps another listie might know
more about that. I was including it since it's part of the info on that
page. :-)

But since it 'works' in fop-0.20.5, you can always continue to use
fop-0.20.5 even after fop-1.0 is released. Either that, or there might
be some other solutions in XSL-FO you could find. I think the keyword
you should look at is 'white-space' (white-space-preserve,
white-space-collapse, etc.).

Web Maestro Clay
--
<[EMAIL PROTECTED]> - <http://homepage.mac.com/webmaestro/>
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet


---------------------------------------------------------------------
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]

Reply via email to