how to import styles from xhtml/css

Hi. I have a workflow for producing a report:

XSL transform XML files >
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