[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSL-FO preformatted text issue

Subject: XSL-FO preformatted text issue
From: <Steve.Wisniewski@xxxxxxxxxxxxxxxxxx>
Date: Fri, 14 Sep 2012 14:20:11 +0000
 XSL-FO preformatted text issue
Hi,

I'm having an issue trying to keep line breaks preformatted text. Here's what
I am wrapping the preformatted text with:

<fo:block font-family="monospace" white-space-collapse="false"
wrap-option="no-wrap">
        <xsl:apply-templates/>
</fo:block>

So, when I get data like this:

<pre>
       Single individual...   Sec. 1(a)(1)...   Sec. 1(a)(2)...  Sec. 1(c).
       Head of a
         household.........   Sec. 1(b)(1)...   Sec. 1(b)(2)...  Sec. 1(b).
       Married individual
         filing a separate
         return............   Sec. 1(a)(1)...   Sec. 1(a)(2)...  Sec. 1(d).
       Estates and
         trusts............   Sec. 1(a)(1)...   Sec. 1(a)(2)...  Sec. 1(d).
</pre>

I want to export it to FO the same way. What I get is this (line breaks not
preserved):

Single individual... Sec. 1(a)(1)... Sec. 1(a)(2)... Sec. 1(c). Head of
ahousehold......... Sec. 1(b)(1)... Sec. 1(b)(2)... Sec. 1(b). Married
individualfiling a separate return............ Sec. 1(a)(1)... Sec. 1(a)(2)...
Sec. 1(d).Estates andtrusts............ Sec. 1(a)(1)... Sec. 1(a)(2)... Sec.
1(d).

I am using Apache FOP 0.95. I am fairly new to FOP so any help would be
greatly appreciated!

-Steve Wisniewski

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.