XML to PDF conversio using FOs
843834Dec 27 2002 — edited Jan 10 2003Hi
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