Preserve text structure with XSL-FO

Aino Andriessen
0 0
Read Time:49 Second

XSL-FO is all about the formatting of a document. For the interpretation of spaces and other special characters many options are available. To preserve the whitespaces and new lines in a text at least the property white-space-collapse should be set to false (the default setting is true). In my opinion does the name of this property not completely cover its meaning, because it also involves special characters like linefeeds and tabs, but alas it’s close enough. Since the described setting was succesful I did not investigate other properties, like linefeed-treatment and white-space-treatment. Also, the property white-space should specify a set of properties, but this did not seem to work.

Remarks: Do not always trust the console and the logging messages, because the printed output may differ from the actual content. Our java printXML method converted the carriage return control character into the entity but retained and used the linefeed. This resulted in some major confusion :-(.

About Post Author

Aino Andriessen

Aino Andriessen is principal consultant and expertise lead 'Continuous Delivery'. His focus is on Oracle Fusion Middleware ADF and SOA development, Continuous Delivery, architecture, improving the software development proces and quality management. He is a frequent presenter at Oracle Open World, ODTUG Kaleidoscope, UKOUG Technology Conference and OUGN Vårseminar. He writes articles and publishes at the AMIS technology blog (http://technology.amis.nl/blog/).
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %
Next Post

Book Review: Oracle Database 10g A Beginner's Guide

Title: Oracle Database 10g A Beginner’s Guide Authors: Ian Abramson; Michael Abbey; Michael Corey Publisher: McGraw-Hill Osborne Media ISBN: 0072230789 Publication Date: March 31, 2004 Website: http://shop.osborne.com/cgi-bin/osborne/0072230789.html The setup of the book is nice, with progress checks to monitor how well you understand the chapter you just read and sample […]
%d bloggers like this: