Subject: Re: [xsl] XSL-FO preformatted text issue From: DaveP <davep@xxxxxxxxxxxxx> Date: Sat, 15 Sep 2012 07:08:06 +0100 |
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
<fo:block white-space-treatment="preserve" linefeed-treatment="preserve" whitespace-collapse="false" font-family="monospace"> <!-- YOUR CODE HERE --> <fo:block>
-- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSL-FO preformatted text issu, Steve.Wisniewski | Thread | RE: [xsl] XSL-FO preformatted text , Lynn Hales |
Re: [xsl] Grouping: maximum of n gr, Wendell Piez | Date | [xsl] Why do the XSLT and XML Schem, Costello, Roger L. |
Month |