Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XML to PDF conversio using FOs

843834Dec 27 2002 — edited Jan 10 2003
Hi
I am trying to generate PDFs from XML and XSL using FO (org.apache.fop.*). The conversion is ok except for handling of WHITESPACES present in the xml data.
e.g. <data_element>This__________is__________a________test.</data_elemenet>
, (where _____ are WHITESPACES ) is rendered as "This is a test".
The multiple WHITESPACES present between the text gets truncated to just ONE SINGLE WHITESPACE.

How can this automatic truncation of WHITESPACES, TABS, NEW LINE CHARACTERS can be avoided ?
The data present in the XML should be displayed AS IS.
Is it possible to achive this ? If yes, how ?

Thanks and Regards
Anurag
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 7 2003
Added on Dec 27 2002
2 comments
112 views