how to import styles from xhtml/css

asked 2017-07-21 12:00:23 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi. I have a workflow for producing a report:

XSL transform XML files > XHTML > import chapters into ODM master document > [import master stylesheet] > add contents/bookmarks > export to PDF

I want to import styles I've set in the XHTML with CSS as named styles. I need to programmatically set tables to width=100%; and import <span> tags e.g. <p><span class="key">Type: </span>INTEGER</p> to get character level styles.


PS I tried using the writer8 and star_writer filters with a headless conversion, but they don't import styles. I can't find any documentation on these scripts and what they do. I'd rather stick to the master document method above.

PSS The platinum award would be for an XSLT straight to ODT

edit retag flag offensive close merge delete