Does anyone know how I can display preformatted html text like:
<ol>
<li>item 1</li>
<li>item 2</li>
<li>item 3</li>
</ol>
inside a pdf generated with fop?
Thanks
Does anyone know how I can display preformatted html text like:
<ol>
<li>item 1</li>
<li>item 2</li>
<li>item 3</li>
</ol>
inside a pdf generated with fop?
Thanks
This XSLT 1.0:
applied to your input will produce the following XSL-FO:
which will produce a PDF that contains the following (tested with FOP 1.0):
Use the attributes
linefeed-treatment="preserve"
andwhite-space-collapse="false"
Either escape the HTML:
Or use CDATA: