From: "Todtenhaupt, Susann" <[EMAIL PROTECTED]>

Hi @ all!

I'm trying to generate TXT from XML through xsl and fop. In my result
txt-file there are several problems I don't understand...
(1) whitespaces between words in one line are stretched
(2) I create several rows and there are always two of them near together and
then there's a line between the next two rows


Can anybody give support?


Hi suse,

FOP and XSL-FO formatters in general are the wrong kind of tool for Text output. This is because text output is character based, but an XSL-FO formatter has precise positioning. That is why you end up with strange whitspace behaviour, its caused by rounding errors when the Text Renderer tries to map FOP's area tree measurements (in precise units) to the nearest character or line.

You can work around this issue to a certain extent by using fixed pitched fonts and setting line-height.

See also;

http://xml.apache.org/fop/output.html#txt

Chris

_________________________________________________________________
Express yourself with cool emoticons - download MSN Messenger today! http://www.msn.co.uk/messenger



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to